oggm.tasks.catchment_width_correction#

oggm.tasks.catchment_width_correction(gdir)[source]#

Corrects for NaNs and inconsistencies in the geometrical widths.

Interpolates missing values, ensures consistency of the surface-area distribution AND with the geometrical area of the glacier polygon, avoiding errors due to gridded representation.

Updates the ‘inversion_flowlines’ save file.

Parameters
gdiroggm.GlacierDirectory

where to write the data

Notes

Files written to the glacier directory:
inversion_flowlines.pkl

A “better” version of the centerlines, now on a regular spacing i.e., not on the gridded (i, j) indices. The tails of the tributaries are cut out to make more realistic junctions. They are now “1.5D” i.e., with a width.