- oggm.tasks.define_glacier_region(gdir, entity=None, source=None)¶
Very first task after initialization: define the glacier’s local grid.
Defines the local projection (Transverse Mercator), centered on the glacier. There is some options to set the resolution of the local grid. It can be adapted depending on the size of the glacier with:
dx (m) = d1 * AREA (km) + d2 ; clipped to dmax
or be set to a fixed value. See
params.cfgfor setting these options. Default values of the adapted mode lead to a resolution of 50 m for Hintereisferner, which is approx. 8 km2 large. After defining the grid, the topography and the outlines of the glacier are transformed into the local projection. The default interpolation for the topography is cubic.
where to write the data
the glacier geometry to process - DEPRECATED. It is now ignored
- sourcestr or list of str, optional
- If you want to force the use of a certain DEM source. Available are:
‘USER’ : file set in cfg.PATHS[‘dem_file’]
‘SRTM’ : http://srtm.csi.cgiar.org/
‘REMA’ : https://www.pgc.umn.edu/data/rema/
‘DEM3’ : http://viewfinderpanoramas.org/
‘ARCTICDEM’ : https://www.pgc.umn.edu/data/arcticdem/
‘AW3D30’ : https://www.eorc.jaxa.jp/ALOS/en/aw3d30
‘MAPZEN’ : https://registry.opendata.aws/terrain-tiles/
‘ALASKA’ : https://www.the-cryosphere.net/8/503/2014/
‘COPDEM’ : Copernicus DEM GLO-90 https://bit.ly/2T98qqs
- Files written to the glacier directory:
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.
salem.Gridhandling the georeferencing of the local grid.
The glacier outlines in the local map projection (Transverse Mercator).