oggm.tasks.run_from_climate_data(gdir, ys=None, ye=None, min_ys=None, store_monthly_step=False, climate_filename='climate_monthly', climate_input_filesuffix='', output_filesuffix='', init_model_filesuffix=None, init_model_yr=None, init_model_fls=None, zero_initial_glacier=False, **kwargs)[source]

Runs a glacier with climate input from e.g. CRU or a GCM.

This will initialize a oggm.core.massbalance.MultipleFlowlineMassBalance, and run a oggm.core.flowline.robust_model_run().

Parameters
gdiroggm.GlacierDirectory

the glacier directory to process

ysint

start year of the model run (default: from the glacier geometry date)

yeint

end year of the model run (no default: needs to be set)

min_ysint

if you want to impose a minimum start year, regardless if the glacier inventory date is later.

store_monthly_stepbool

whether to store the diagnostic data at a monthly time step or not (default is yearly)

climate_filenamestr

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

climate_input_filesuffix: str

filesuffix for the input climate file

output_filesuffixstr

for the output file

init_model_filesuffixstr

if you want to start from a previous model run state. Can be combined with init_model_yr

init_model_yrint

the year of the initial run you want to starte from. The default is to take the last year of the simulation.

init_model_fls[]

list of flowlines to use to initialise the model (the default is the present_time_glacier file from the glacier directory). Ignored if init_model_filesuffix is set

zero_initial_glacierbool

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

kwargsdict

kwargs to pass to the FluxBasedModel instance

Notes

Files writen to the glacier directory: