oggm.tasks.prepare_for_inversion#
- oggm.tasks.prepare_for_inversion(gdir, settings_filesuffix='', input_filesuffix='', output_filesuffix='', 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:
- gdir
oggm.GlacierDirectory the glacier directory to process
- settings_filesuffix: str
You can use a different set of settings by providing a filesuffix. This is useful for sensitivity experiments. Code-wise the settings_filesuffix is set in the @entity-task decorater.
- input_filesuffix: str
the filesuffix of the input inversion flowlines (useful for conducting multiple experiments in the same gdir)
- output_filesuffixstr
this add a suffix to the output file (useful to avoid overwriting previous experiments)
- gdir
Notes
- Files written to the glacier directory:
- inversion_input.pkl
List of dicts containing the data needed for the inversion.