oggm.tasks.rasterio_glacier_mask#
- oggm.tasks.rasterio_glacier_mask(gdir, source=None)[source]#
Writes a 1-0 glacier mask GeoTiff with the same dimensions as dem.tif
- Parameters
- gdir
oggm.GlacierDirectory
the glacier in question
- sourcestr
None (default): the task reads dem.tif from the GDir root
‘ALL’: try to open any folder from utils.DEM_SOURCE and use first
any of utils.DEM_SOURCE: try only that one
- gdir
Notes
- Files written to the glacier directory:
- glacier_mask.tif
A glacier mask geotiff file with the same extend and projection as the dem.tif. This geotiff has value 1 at glaciated grid points and value 0 at unglaciated points.