oggm.tasks.prepare_for_inversion#

oggm.tasks.prepare_for_inversion(gdir, invert_with_rectangular=True, invert_all_rectangular=False, invert_with_trapezoid=True, invert_all_trapezoid=False)[source]#

Prepares the data needed for the inversion.

Mostly the mass flux and slope angle, the rest (width, height) was already computed. It is then stored in a list of dicts in order to be faster.

Parameters
gdiroggm.GlacierDirectory

the glacier directory to process

Notes

Files written to the glacier directory:
inversion_input.pkl

List of dicts containing the data needed for the inversion.