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, centerlines=False, override_params=None, mb_calibration_strategy='informed_threestep', add_consensus_thickness=False, add_itslive_velocity=False, add_millan_thickness=False, add_millan_velocity=False, add_hugonnet_dhdt=False, start_level=None, start_base_url=None, max_level=5, logging_level='WORKFLOW', dynamic_spinup=False, err_dmdtda_scaling_factor=0.2, dynamic_spinup_start_year=1979, continue_on_error=True, store_fl_diagnostics=False)[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

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 & Farinotti 2012 method.

centerlinesbool

compute all flowlines based on the OGGM centerline(s) method.

mb_calibration_strategystr

how to calibrate the massbalance. Currently one of: - ‘informed_threestep’ (default) - ‘melt_temp’ - ‘temp_melt’

add_consensus_thicknessbool

adds (reprojects) the consensus estimates thickness to the glacier directories. With elev_bands=True, the data will also be binned.

add_itslive_velocitybool

adds (reprojects) the ITS_LIVE velocity to the glacier directories. With elev_bands=True, the data will also be binned.

add_millan_thicknessbool

adds (reprojects) the millan thickness to the glacier directories. With elev_bands=True, the data will also be binned.

add_millan_velocitybool

adds (reprojects) the millan velocity to the glacier directories. With elev_bands=True, the data will also be binned.

add_hugonnet_dhdtbool

adds (reprojects) the hugonnet dhdt maps 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.

dynamic_spinupstr

include a dynamic spinup matching ‘area/dmdtda’ OR ‘volume/dmdtda’ at the RGI-date

err_dmdtda_scaling_factorfloat

scaling factor to reduce individual geodetic mass balance uncertainty

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.

continue_on_errorbool

if True the workflow continues if a task raises an error. For operational runs it should be set to True (the default).

store_fl_diagnosticsbool

if True, also compute and store flowline diagnostics during preprocessing. This can increase data usage quite a bit.