- oggm.tasks.rasterio_glacier_mask(gdir, source=None, no_nunataks=False, overwrite=True)#
Writes a 1-0 glacier mask GeoTiff with the same dimensions as dem.tif
If no_nunataks, does the same but without nunataks. Writes a file with the suffix “_no_nunataks” appended.
the glacier in question
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
compute even if the file is already there
- Files written to the glacier directory:
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.