oggm.tasks.apparent_mb_from_any_mb

oggm.tasks.apparent_mb_from_any_mb#

oggm.tasks.apparent_mb_from_any_mb(gdir, settings_filesuffix='', input_filesuffix='', output_filesuffix=None, mb_model=None, mb_model_class=None, mb_years=None, include_mb_model_heights=True)[source]#

Compute apparent mb from an arbitrary mass balance profile.

This searches for a mass balance residual to add to the mass balance profile so that the average specific MB is zero.

Parameters:
gdiroggm.GlacierDirectory

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.

input_filesuffix: str

the filesuffix of the inversion flowlines which should be used (useful for conducting multiple experiments in the same gdir). By default we use ‘’, to start the workflow after geometrically constructing the inversion flowlines.

output_filesuffix: str

the filesuffix of the final inversion flowlines which are saved back into the gdir (useful for conducting multiple experiments in the same gdir)

mb_modeloggm.core.massbalance.MassBalanceModel

the mass balance model to use - if None, will use the one given by mb_model_class.

mb_model_classMassBalanceModel, default MonthlyTIModel

The MassBalanceModel class to use.

mb_yearsarray_like or tuple, default None

The array of years over which you want to average the mass balance. This argument has little effect on the final result, but it should be a period long enough to have a representative mass balance gradient. If an array of length 2 is given, the method uses all years between this range, excluding the last one. If None, the method will use all the years from the reference geodetic mass balance period gdir.settings['geodetic_mb_period'].

include_mb_model_heightsbool, default True

If True we add the snow/firn height of the current mb_model (if available) to include this in the elevation feedback of the mb calculation.

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.