oggm.tasks.apparent_mb_from_linear_mb

oggm.tasks.apparent_mb_from_linear_mb#

oggm.tasks.apparent_mb_from_linear_mb(gdir, settings_filesuffix: str = '', mb_gradient=3.0, ela_h=None)[source]#

Compute apparent mb from a linear mass balance assumption (for testing).

This is for testing currently, but could be used as alternative method for the inversion quite easily.

Parameters:
gdirGlacierDirectory

The glacier directory to process.

settings_filesuffixstr, optional

You can use a different set of settings by providing a filesuffix. This is useful for sensitivity experiments. If not given, settings_filesuffix is set by the @entity-task decorator.

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.

linear_mb_params.pkl

When using a linear mass balance for the inversion, this dict stores the optimal ela_h and grad.