oggm.core.massbalance.DailyTIModel#
- class oggm.core.massbalance.DailyTIModel(gdir, filename: str = 'climate_historical', input_filesuffix: str = '_daily', settings_filesuffix: str = '', fl_id: int = None, melt_f: float = None, temp_bias: float = None, prcp_fac: float = None, bias: float = 0.0, temp_melt: float = 0.0, ys: int = None, ye: int = None, repeat: bool = False, check_calib_params: bool = True, check_climate_data: bool = True, use_leap_years: bool = True)[source]#
Daily temperature index model.
- __init__(gdir, filename: str = 'climate_historical', input_filesuffix: str = '_daily', settings_filesuffix: str = '', fl_id: int = None, melt_f: float = None, temp_bias: float = None, prcp_fac: float = None, bias: float = 0.0, temp_melt: float = 0.0, ys: int = None, ye: int = None, repeat: bool = False, check_calib_params: bool = True, check_climate_data: bool = True, use_leap_years: bool = True)[source]#
Inherits from MonthlyTIModel.
- Parameters:
- gdirGlacierDirectory
The glacier directory.
- filenamestr, default ‘climate_historical’
Set to a different BASENAME if you want to use alternative climate data.
- input_filesuffixstr, default ‘_daily’
Append a suffix to the climate input filename (useful for GCM runs).
- settings_filesuffixstr, optional
Append a suffix to the settings file (useful for sensitivity runs).
- fl_idint, optional
If this flowline has been calibrated alone and has specific model parameters.
- melt_ffloat, optional
The value of the melt factor you want to use, here the unit is kg m-2 day-1 K-1. Defaults to the calibrated value.
- temp_biasfloat, optional
The value of the temperature bias. Defaults to the calibrated value.
- prcp_facfloat, optional
The value of the precipitation factor. Defaults to the calibrated value.
- biasfloat, default 0.0
The value of the calibration bias [mm we yr-1]. Defaults to the calibrated value. Note that this bias is subtracted from the computed MB. Indeed: BIAS = MODEL_MB - REFERENCE_MB.
- temp_meltfloat, default 0.0
The threshold for the air temperature above which ice melt is assumed to occur (0°C the default for daily mb models).
- ysint, optional
The end of the climate period where the MB model is valid. Defaults to the period with available data.
- yeint, optional
The end of the climate period where the MB model is valid. Defaults to the period with available data.
- repeatbool, default False
Whether the climate period given by [ys, ye] should be repeated indefinitely in a circular way.
- check_calib_paramsbool, default True
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
Falseto suppress this check.- check_climate_databool, default True
If True, check the climate input data is provided in total years and that the length matches.
- use_leap_yearsbool, default True
If the calendar should use leap years.
Methods
__init__(gdir[, filename, input_filesuffix, ...])Inherits from MonthlyTIModel.
days_in_month(year)Get the number of days of a month, with or without leap years, depending on self.use_leap_years.
days_in_year(year)Get the number of days of a year, with or without leap years, depending on self.use_leap_years.
get_annual_climate(heights[, year])Annual climate information at given heights.
get_annual_mb(heights[, year, add_climate])Get annual mass balance.
get_daily_climate(heights[, year])Daily climate information at given heights.
get_daily_mb(heights[, year, add_climate])Get daily mass balance.
get_ela([year])Get 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])Get monthly mass balance.
get_specific_mb([heights, widths, fls, ...])Specific mass balance for a given glacier geometry.
is_year_valid(year)Check if a year is within the climate period.
reset_state()Reset any internal state of the model.
sec_in_month(year)Get the seconds of the month, with or without leap years, depending on self.use_leap_years.
sec_in_year(year)Get the seconds of the year, with or without leap years, depending on self.use_leap_years.
validate_year(year)Get and validate if a year is outside the data's time range.
Attributes
calib_paramsprcp_facPrecipitation factor (default: gdir.settings['prcp_fac'])
temp_biasAdd a temperature bias to the time series