oggm.tasks.rasterio_glacier_mask#

oggm.tasks.rasterio_glacier_mask(gdir, source=None, no_nunataks=False, overwrite=True)[source]#

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.

Parameters
gdiroggm.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

overwritebool

compute even if the file is already there

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.