oggm.tasks.random_glacier_evolution

oggm.tasks.random_glacier_evolution(gdir, nyears=1000, y0=None, halfsize=15, bias=None, seed=None, temperature_bias=None, filename='climate_monthly', input_filesuffix='', filesuffix='', init_model_fls=None, zero_initial_glacier=False, **kwargs)[source]

Random glacier dynamics for benchmarking purposes.

This runs the random mass-balance model for a certain number of years.
Parameters:

nyears : int

length of the simulation

y0 : int, optional

central year of the random climate period. The default is to be centred on t*.

halfsize : int, optional

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

bias : float

bias of the mb model. Default is to use the calibrated one, which is often a better idea. For t* experiments it can be useful to set it to zero

seed : int

seed for the random generator. If you ignore this, the runs will be different each time. Setting it to a fixed seed accross glaciers can be usefull if you want to have the same climate years for all of them

temperature_bias : float

add a bias to the temperature timeseries

filename : str

name of the climate file, e.g. ‘climate_monthly’ (default) or ‘cesm_data’

input_filesuffix: str

filesuffix for the input climate file

filesuffix : str

this add a suffix to the output file (useful to avoid overwriting previous experiments)

init_model_fls : []

list of flowlines to use to initialise the model (the default is the present_time_glacier file from the glacier directory)

zero_initial_glacier : bool

if true, the ice thickness is set to zero before the simulation

kwargs : dict

kwargs to pass to the FluxBasedModel instance

Returns:

Files writen to the glacier directory: