oggm.core.massbalance.MultipleFlowlineMassBalance#
- class oggm.core.massbalance.MultipleFlowlineMassBalance(gdir, fls=None, mb_model_class=<class 'oggm.core.massbalance.MonthlyTIModel'>, use_inversion_flowlines=False, input_filesuffix='', **kwargs)[source]#
Handle mass balance at the glacier level instead of flowline level.
Convenience class doing not much more than wrapping a list of mass balance models, one for each flowline.
This is useful for real-case studies, where each flowline might have different model parameters.
- Attributes:
- flslist
list of flowline objects
- __init__(gdir, fls=None, mb_model_class=<class 'oggm.core.massbalance.MonthlyTIModel'>, use_inversion_flowlines=False, input_filesuffix='', **kwargs)[source]#
Initialize.
- Parameters:
- gdirGlacierDirectory
the glacier directory
- flslist, optional
list of flowline objects to use (defaults to ‘model_flowlines’)
- mb_model_classMassBalanceModel class
the MassBalanceModel to use (default is MonthlyTIModel, alternatives are e.g. ConstantMassBalance…)
- use_inversion_flowlines: bool, optional
use ‘inversion_flowlines’ instead of ‘model_flowlines’
- kwargskwargs to pass to mb_model_class
Methods
__init__
(gdir[, fls, mb_model_class, ...])Initialize.
get_annual_mb
(heights[, year, fl_id])Like self.get_monthly_mb(), but for annual MB.
get_annual_mb_on_flowlines
([fls, year])Get the MB on all points of the glacier at once.
get_ela
([year])Compute the equilibrium line altitude for a given year.
get_monthly_mb
(heights[, year, fl_id])Monthly mass balance at given altitude(s) for a moment in time.
get_specific_mb
([heights, widths, fls, year])Specific mb for this year and a specific glacier geometry.
is_year_valid
(year)Checks if a given date year be simulated by this model.
Attributes
bias
Residual bias to apply to the original series.
prcp_fac
Precipitation factor to apply to the original series.
temp_bias
Temperature bias to add to the original series.