oggm.tasks.glacier_masks¶
- oggm.tasks.glacier_masks(gdir, **kwargs)¶
Converts the glacier vector geometries to grids.
Parameters: gdir : oggm.GlacierDirectory
Returns: Files writen to the glacier directory:
- geometries.pkl
A dict containing the shapely.Polygons of a divide. 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 (it is needed because the divides will have their own area which is not obtained from the RGI file).
- gridded_data.nc
A netcdf file containing several gridded data variables such as topography, the glacier masks and more (see the netCDF file metadata).