oggm.tasks.glacier_masks¶
-
oggm.tasks.
glacier_masks
(gdir)[source]¶ Makes a gridded mask of the glacier outlines.
Parameters: gdir :
oggm.GlacierDirectory
where to write the data
Returns: Files writen to the glacier directory:
- geometries.pkl
A
dict
containing the shapely.Polygons of a glacier. The “polygon_hr” entry contains the geometry transformed to the local grid in (i, j) coordinates, while the “polygon_pix” entry contains the geometries transformed into the coarse grid (the i, j elements are integers). The “polygon_area” entry contains the area of the polygon as computed by Shapely.- gridded_data.nc
A netcdf file containing several gridded data variables such as topography, the glacier masks and more (see the netCDF file metadata).