oggm.shop.rgitopo.select_dem_from_dir#

oggm.shop.rgitopo.select_dem_from_dir(gdir, dem_source=None, keep_dem_folders=False)[source]#

Select a DEM from the ones available in an RGI-TOPO glacier directory.

Parameters
gdiroggm.GlacierDirectory

the glacier directory

dem_sourcestr

the source to pick from (default: NASADEM and COPDEM90)

keep_dem_foldersbool

the default is to delete the other DEM directories to save space. Set this to True to prevent that (e.g. for sensitivity tests)

Notes

Files written to the glacier directory:
dem.tif

A geotiff file containing the DEM (reprojected into the local grid).This DEM is not smoothed or gap files, and is the closest to the original DEM source.