oggm.tasks.run_with_hydro#
- oggm.tasks.run_with_hydro(gdir, run_task=None, store_monthly_hydro=False, fixed_geometry_spinup_yr=None, ref_area_from_y0=False, ref_area_yr=None, ref_geometry_filesuffix=None, **kwargs)[source]#
Run the flowline model and add hydro diagnostics.
- TODOs:
Add the possibility to record MB during run to improve performance (requires change in API)
…
- Parameters:
- run_taskfunc
any of the run_*` tasks in the oggm.flowline module. The mass balance model used needs to have the add_climate output kwarg available though.
- store_monthly_hydrobool
also compute monthly hydrological diagnostics. The monthly outputs are stored in 2D fields (years, months)
- ref_area_yrint
the hydrological output is computed over a reference area, which per default is the largest area covered by the glacier in the simulation period. Use this kwarg to force a specific area to the state of the glacier at the provided simulation year.
- ref_area_from_y0bool
overwrite ref_area_yr to the first year of the timeseries
- ref_geometry_filesuffixstr
this kwarg allows to copy the reference area from a previous simulation (useful for projections with historical spinup for example). Set to a model_geometry file filesuffix that is present in the current directory (e.g. _historical for pre-processed gdirs). If set, ref_area_yr and ref_area_from_y0 refer to this file instead.
- fixed_geometry_spinup_yrint
if set to an integer, the model will artificially prolongate all outputs of run_until_and_store to encompass all time stamps starting from the chosen year. The only output affected are the glacier wide diagnostic files - all other outputs are set to constants during “spinup”
- **kwargsall valid kwargs for
run_task
Notes
Files written to the glacier directory: