This PR introduces a new way for the mass balance to handle changes in the temperature bias (or ELA changes). This is now done via the new attribute MassBalance.temp_bias_series which hold the historical and possible future values of the temperature bias of the mass balance. Future values are added to this series through either the methods add_temp_bias or add_random_climate. It is also possible for the user to assign a completely custom temperature bias series to the attribute. The mass balance model then reads from this series during runtime. This has the added benefit that it greatly simplifies Glacier.run_to... methods.
This also includes ways to visualise the temp_bias_series via plot_history via the show_bias argument. It is also possible to smooth the bias data for plotting via the smooth arg. Finally time_range enables the user to select a data period to plot.
This PR introduces a new way for the mass balance to handle changes in the temperature bias (or ELA changes). This is now done via the new attribute
MassBalance.temp_bias_series
which hold the historical and possible future values of the temperature bias of the mass balance. Future values are added to this series through either the methodsadd_temp_bias
oradd_random_climate
. It is also possible for the user to assign a completely custom temperature bias series to the attribute. The mass balance model then reads from this series during runtime. This has the added benefit that it greatly simplifiesGlacier.run_to...
methods.This also includes ways to visualise the
temp_bias_series
viaplot_history
via theshow_bias
argument. It is also possible to smooth the bias data for plotting via thesmooth
arg. Finallytime_range
enables the user to select a data period to plot.QoL updates:
Glacier
andGlacierCollection
, returning a dataframe with some statistics of the glacier. Closes https://github.com/OGGM/oggm-edu-notebooks/issues/63