oggm.tasks.apparent_mb_from_linear_mb(gdir, 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: gdir : oggm.GlacierDirectory the glacier directory to process

Notes

Files writen 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.