oggm.tasks.process_dem

On this page

oggm.tasks.process_dem#

oggm.tasks.process_dem(gdir=None, grid=None, fpath=None, output_filename=None)[source]#

Reads the DEM from the tiff, attempts to fill voids and apply smooth.

The data is then written to gridded_data.nc.

Parameters:
gdiroggm.GlacierDirectory

Where to write the data. If set it overrules grid and fpath.

gridsalem.gis.Grid

Grid of the DEM file. Needed if gdir is not provided.

fpathstr

The filepath of the DEM file. Needed if gdir is not provided.

output_filenamestr

The filename of the nc file to add the DEM to. Defaults to gridded_data

Notes

Files written 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. This is for static, non time-dependant data.