oggm.tasks.define_glacier_region#
- oggm.tasks.define_glacier_region(gdir, entity=None, source=None)[source]#
Very first task after initialization: define the glacier’s local grid.
Defines the local projection (Transverse Mercator or UTM depending on user choice), 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. See
params.cfg
for 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.
- Parameters:
- gdir
oggm.GlacierDirectory
where to write the data
- entitygeopandas.GeoSeries
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/
‘RAMP’ : https://nsidc.org/data/nsidc-0082/versions/2/documentation
‘REMA’ : https://www.pgc.umn.edu/data/rema/
‘DEM3’ : http://viewfinderpanoramas.org/
‘ASTER’ : https://asterweb.jpl.nasa.gov/gdem.asp
‘ARCTICDEM’ : https://www.pgc.umn.edu/data/arcticdem/
‘AW3D30’ : https://www.eorc.jaxa.jp
‘MAPZEN’ : https://registry.opendata.aws/terrain-tiles/
‘ALASKA’ : https://www.the-cryosphere.net/8/503/2014/
‘COPDEM30’ : Copernicus DEM GLO30 https://spacedata.copernicus.eu/web/cscda/cop-dem-faq
‘COPDEM90’ : Copernicus DEM GLO90 https://spacedata.copernicus.eu/web/cscda/cop-dem-faq
‘NASADEM’: https://doi.org/10.5069/G93T9FD9
- gdir
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.
- glacier_grid.json
A
salem.Grid
handling the georeferencing of the local grid.- outlines.shp
The glacier outlines in the local map projection (Transverse Mercator or UTM).