oggm.global_tasks.compile_fixed_geometry_mass_balance

oggm.global_tasks.compile_fixed_geometry_mass_balance#

oggm.global_tasks.compile_fixed_geometry_mass_balance(gdirs, settings_filesuffix='', filesuffix='', path=True, csv=False, use_inversion_flowlines=True, ys=None, ye=None, years=None, climate_filename='climate_historical', climate_input_filesuffix='', temperature_bias=None, precipitation_factor=None, mb_model_class=None)[source]#

Compiles a table of specific mass balance timeseries for all glaciers.

By default, the file is stored in a parquet file (not csv) per default. Use pd.read_parquet to open it.

Parameters:
gdirslist of oggm.GlacierDirectory objects

the glacier directories to process

settings_filesuffix: str

You can use a different set of settings by providing a filesuffix. This is useful for sensitivity experiments.

filesuffixstr

add suffix to output file

pathstr, bool

Set to “True” in order to store the info in the working directory Set to a path to store the file to your chosen location (file extension matters)

csvbool

Set to store the data in csv instead of parquet.

use_inversion_flowlinesbool

whether to use the inversion flowlines or the model flowlines

ysint

start year of the model run (default: from the climate file) date)

yeint

end year of the model run (default: from the climate file)

yearsarray of ints

override ys and ye with the years of your choice

climate_filenamestr

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

climate_input_filesuffix: str

filesuffix for the input climate file

temperature_biasfloat

add a bias to the temperature timeseries

precipitation_factor: float

multiply a factor to the precipitation time series default is None and means that the precipitation factor from the calibration is applied which is cfg.PARAMS[‘prcp_fac’]

mb_model_classMassBalanceModel, defaults to MonthlyTIModel

The MassBalanceModel class to use.