oggm.core.massbalance.MonthlyTIModel

oggm.core.massbalance.MonthlyTIModel#

class oggm.core.massbalance.MonthlyTIModel(gdir, filename='climate_historical', input_filesuffix='', mb_params_filesuffix='', fl_id=None, melt_f=None, temp_bias=None, prcp_fac=None, bias=0, ys=None, ye=None, repeat=False, check_calib_params=True)[source]#

Monthly temperature index model.

__init__(gdir, filename='climate_historical', input_filesuffix='', mb_params_filesuffix='', fl_id=None, melt_f=None, temp_bias=None, prcp_fac=None, bias=0, ys=None, ye=None, repeat=False, check_calib_params=True)[source]#

Initialize.

Parameters:
gdirGlacierDirectory

the glacier directory

filenamestr, optional

set to a different BASENAME if you want to use alternative climate data. Default is ‘climate_historical’

input_filesuffixstr, optional

append a suffix to the climate input filename (useful for GCM runs).

mb_params_filesuffixstr, optional

append a suffix to the mb params calibration file (useful for sensitivity runs).

fl_idint, optional

if this flowline has been calibrated alone and has specific model parameters.

melt_ffloat, optional

set to the value of the melt factor you want to use, here the unit is kg m-2 day-1 K-1 (the default is to use the calibrated value).

temp_biasfloat, optional

set to the value of the temperature bias you want to use (the default is to use the calibrated value).

prcp_facfloat, optional

set to the value of the precipitation factor you want to use (the default is to use the calibrated value).

biasfloat, optional

set to the alternative value of the calibration bias [mm we yr-1] you want to use (the default is to use the calibrated value) Note that this bias is substracted from the computed MB. Indeed: BIAS = MODEL_MB - REFERENCE_MB.

ysint

The start of the climate period where the MB model is valid (default: the period with available data)

yeint

The end of the climate period where the MB model is valid (default: the period with available data)

repeatbool

Whether the climate period given by [ys, ye] should be repeated indefinitely in a circular way

check_calib_paramsbool

OGGM will try hard not to use wrongly calibrated parameters by checking the global parameters used during calibration and the ones you are using at run time. If they don’t match, it will raise an error. Set to “False” to suppress this check.

Methods

__init__(gdir[, filename, input_filesuffix, ...])

Initialize.

get_annual_climate(heights[, year])

Annual climate information at given heights.

get_annual_mb(heights[, year, add_climate])

Like self.get_monthly_mb(), but for annual MB.

get_ela([year])

Compute the equilibrium line altitude for a given year.

get_monthly_climate(heights[, year])

Monthly climate information at given heights.

get_monthly_mb(heights[, year, add_climate])

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

calib_params

monthly_melt_f

prcp_fac

Precipitation factor (default: cfg.PARAMS['prcp_fac'])

temp_bias

Add a temperature bias to the time series