oggm.core.massbalance.ConstantMassBalance

class oggm.core.massbalance.ConstantMassBalance(gdir, mu_star=None, bias=None, y0=None, halfsize=15, filename='climate_monthly', input_filesuffix='')[source]

Constant mass-balance during a chosen period.

This is useful for equilibrium experiments.

__init__(self, gdir, mu_star=None, bias=None, y0=None, halfsize=15, filename='climate_monthly', input_filesuffix='')[source]

Initialize

Parameters
gdirGlacierDirectory

the glacier directory

mu_starfloat, optional

set to the alternative value of mu* you want to use (the default is to use the calibrated value)

biasfloat, optional

set to the alternative value of the annual bias [mm we yr-1] you want to use (the default is to use the calibrated value)

y0int, optional, default: tstar

the year at the center of the period of interest. The default is to use tstar as center.

halfsizeint, optional

the half-size of the time window (window size = 2 * halfsize + 1)

filenamestr, optional

set to a different BASENAME if you want to use alternative climate data.

input_filesuffixstr

the file suffix of the input climate file

Methods

__init__(self, gdir[, mu_star, bias, y0, …])

Initialize

get_annual_mb(self, heights[, year, fl_id])

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

get_climate(self, heights[, year])

Average climate information at given heights.

get_ela(self[, year])

Compute the equilibrium line altitude for this year

get_monthly_mb(self, heights[, year, fl_id])

Monthly mass-balance at given altitude(s) for a moment in time.

get_specific_mb(self[, heights, widths, …])

Specific mb for this year and a specific glacier geometry.

Attributes

bias

Residual bias to apply to the original series.

interp_m

interp_yr

prcp_bias

Precipitation factor to apply to the original series.

temp_bias

Temperature bias to add to the original series.