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.

Parameters: gdir : oggm.GlacierDirectory where to write the data