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. If ‘RGI’, we assume that there is a dem_source attribute in the RGI file. If ‘BY_RES’, we use COPDEM30 for all gdirs with resolution smaller than 60m

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.