oggm.tasks.simple_glacier_masks

oggm.tasks.simple_glacier_masks(gdir, write_hypsometry=False)[source]

Compute glacier masks based on much simpler rules than OGGM’s default.

This is therefore more robust: we use this function to compute glacier hypsometries.

Parameters:
gdir : oggm.GlacierDirectory

where to write the data

write_hypsometry : bool

whether to write out the hypsometry file or not - it is used by e.g, rgitools

Notes

Files writen to the glacier directory:
gridded_data.nc
A netcdf file containing several gridded data variables such as topography, the glacier masks, the interpolated 2D glacier bed, and more.
hypsometry.csv
A hypsometry file computed by OGGM and provided in the same format as the RGI (useful for diagnostics).