oggm.cli.prepro_levels.run_prepro_levels
oggm.cli.prepro_levels.run_prepro_levels¶
- oggm.cli.prepro_levels.run_prepro_levels(rgi_version=None, rgi_reg=None, border=None, output_folder='', working_dir='', dem_source='', is_test=False, test_ids=None, demo=False, test_rgidf=None, test_intersects_file=None, test_topofile=None, disable_mp=False, params_file=None, elev_bands=False, match_regional_geodetic_mb=False, match_geodetic_mb_per_glacier=False, evolution_model='fl_sia', centerlines_only=False, override_params=None, add_consensus=False, start_level=None, start_base_url=None, max_level=5, ref_tstars_base_url='', logging_level='WORKFLOW', disable_dl_verify=False, dynamic_spinup=False, dynamic_spinup_start_year=1979, continue_on_error=True)[source]¶
Generate the preprocessed OGGM glacier directories for this OGGM version
- Parameters
- rgi_versionstr
the RGI version to use (defaults to cfg.PARAMS)
- rgi_regstr
the RGI region to process
- borderint
the number of pixels at the maps border
- output_folderstr
path to the output folder (where to put the preprocessed tar files)
- dem_sourcestr
which DEM source to use: default, SOURCE_NAME or ALL
- working_dirstr
path to the OGGM working directory
- ref_tstars_base_urlstr
url where to find the pre-calibrated reference tstar list. Required as of v1.4.
- params_filestr
path to the OGGM parameter file (to override defaults)
- is_testbool
to test on a couple of glaciers only!
- test_idslist
if is_test: list of ids to process
- demobool
to run the prepro for the list of demo glaciers
- test_rgidfshapefile
for testing purposes only
- test_intersects_fileshapefile
for testing purposes only
- test_topofilestr
for testing purposes only
- test_crudirstr
for testing purposes only
- disable_mpbool
disable multiprocessing
- elev_bandsbool
compute all flowlines based on the Huss&Hock 2015 method instead of the OGGM default, which is a mix of elev_bands and centerlines.
- centerlines_onlybool
compute all flowlines based on the OGGM centerline(s) method instead of the OGGM default, which is a mix of elev_bands and centerlines.
- match_regional_geodetic_mbstr
match the regional mass balance estimates at the regional level (‘hugonnet’: Hugonnet et al., 2020 or ‘zemp’: Zemp et al., 2019).
- match_geodetic_mb_per_glacierstr
match the mass balance estimates at the glacier level (currently only ‘hugonnet’: Hugonnet et al., 2020).
- evolution_modelstr
which geometry evolution model to use: fl_sia (default), or massredis (mass redistribution curve).
- add_consensusbool
adds (reprojects) the consensus estimates thickness to the glacier directories. With elev_bands=True, the data will also be binned.
- start_levelint
the pre-processed level to start from (default is to start from scratch). If set, you’ll need to indicate start_base_url as well.
- start_base_urlstr
the pre-processed base-url to fetch the data from.
- max_levelint
the maximum pre-processing level before stopping
- logging_levelstr
the logging level to use (DEBUG, INFO, WARNING, WORKFLOW)
- override_paramsdict
a dict of parameters to override.
- disable_dl_verifybool
disable the hash verification of OGGM downloads
- dynamic_spinup: str
include a dynamic spinup matching ‘area’ OR ‘volume’ at the RGI-date
- dynamic_spinup_start_yearint
if dynamic_spinup is set, define the starting year for the simulation. The default is 1979, unless the climate data starts later.