Preprocessed Glacier Directories#

The simplest way to run OGGM is to use Glacier directories prepared by the OGGM developers. Depending on your use case, you can start from different stages of the processing chain, map sizes, and model setups.

These directories were generated using the standard parameters of the corresponding OGGM version (and a few alternative configurations). If you need to modify some parameters, you may have to start from an earlier processing level and re-run parts of the workflow. Whether this is necessary depends on where you want your workflow to diverge from the default settings (this will become clearer in the examples below).

To initialize pre-processed directories, use workflow.init_glacier_directories() with the prepro_base_url, from_prepro_level and prepro_border arguments. This will download the requested directories. Additional options are described below.

If you prefer to get started immediately, see the 10 minutes to… a preprocessed directory tutorial.

Processing levels#

There are six available levels of pre-processing:

  • Level 0: the lowest level, with directories containing the glacier outlines only.

  • Level 1: directories now contain the glacier topography data as well.

  • Level 2: at this stage, the glacier flowlines and their downstream lines are computed and ready to be used.

  • Level 3: has the baseline climate timeseries (e.g. W5E5 or ERA5) added to the directories. It also contains all necessary pre-processing tasks for a dynamical run, including the mass balance calibration, bed inversion, up to the tasks.init_present_time_glacier() task. These directories still contain all data that were necessary for the processing. Therefore they are large in size but also the most flexible since the processing chain can be re-run from them.

  • Level 4: includes a historical simulation from the RGI date to the last possible date of the baseline climate file (currently January 1st 2020 at 00H for W5E5, and January 1st 2026 at 00H for ERA5), stored with the file suffix _historical. Moreover, most configurations (those that include spinup in their url) may include a simulation running a spinup from 1979 to the last possible date of the baseline climate file, stored with the file suffix _spinup_historical. This spinup attempts to conduct a dynamic temperature sensitivity (“melt factor”) calibration and a dynamic spinup matching the RGI area. If this fails, only a dynamic spinup is carried out. If this also fails, a fixed geometry spinup is conducted. To learn more about these different spinup types, check out Dynamic spinup.

  • Level 5: is same as level 4 but with all intermediate output files removed. The strong advantage of level 5 directories is that their size is considerably reduced, at the cost that certain operations (like plotting on maps or re-running the bed inversion algorithm) are not possible anymore.

In practice, most users are going to use level 2, level 4 or level 5 files. To save space on our servers, level 3 data might be unavailable for some experiments (but are easily recovered if needed). For each level, there are also summary files (e.g. in this OGGM cluster folder) which can be used for regional analyses of the glacier statistics, climate statistics, fixed geometry mass-balance (without dynamical area changes), and historical run outputs with and without spinup.

Here are some example use cases for glacier directories, and recommendations on which level to pick:

  1. Running OGGM from climate model (GCM / RCM /ESM) data with the default settings: start from level 5

  2. Using OGGM’s flowlines but running your own baseline climate, mass balance or ice thickness inversion models: start at level 2. When using an own module, for instance for the mass balance, one can still decide to use OGGM again further on in the workflow, for instance for the glacier dynamics. This is the workflow used by associated model PyGEM for example.

  3. Run sensitivity experiments for the ice thickness inversion: start at level 3 (with climate data available) and re-run the inversion steps.

Glacier map size: the prepro_border argument#

The size of the local glacier map is given in number of grid points outside the glacier boundaries. The larger the domain, the larger the glacier can become. Here is an example with Hintereisferner in the Alps:

base_url = 'https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.6'
base_url += '/L1-L2_files/elev_bands'
f, axs = plt.subplots(2, 2, figsize=(8, 6))
for ax, border in zip(np.array(axs).flatten(), [10, 80, 160, 240]):
    gdir = workflow.init_glacier_directories('RGI60-11.00897',
                                             from_prepro_level=1,
                                             prepro_base_url=base_url,
                                             prepro_border=border)
    graphics.plot_domain(gdir, ax=ax, title='Border: {}'.format(border),
                         add_colorbar=False,
                         lonlat_contours_kwargs={'add_tick_labels':False})
_images/plot_border_size.png

Users should choose the border parameter depending on the expected glacier growth in their simulations. For simulations into the 21 st century, a border value of 80 is often sufficient. However, for the OGGM global glacier projections until 2100 or 2300, and most level 5 preprocessed glacier directories we use a border value of 160. For runs including the Little Ice Age, a border value of 160 or even 240 is recommended. Newer OGGM preprocessed glacier directories (since OGGM v1.6.3) do not have border 240 available, but you could ask us to create it if you need it.

Users should be aware that the amount of data to download isn’t small, especially for full directories at processing level 3 and 4. It is recommended to always pick the smallest border value suitable for your research question, and to start your runs from level 5 if possible. Here is an indicative table for the total amount of data for the default configuration (elev_bands/W5E5/per_glacier_spinup/RGI62) as of 1.6.3 for all 19 RGI regions:

Level

B 10

B 80

B 160

L0

909M

909M

909M

L1

3.8G

22G

66G

L2

9.7G

63G

188G

L3

69G

195G

L4

96G

224G

L5

34G

36G

L4 and L5 data are not available for border 10 (the domain is too small for the downstream lines).

Certain regions are much smaller than others of course. As an indication, with prepro level 3 and a map border of 160, the Alps are ~3.4G large, Greenland ~19G, and Iceland ~596M.

Note

The data download of the preprocessed directories will occur one single time only: after the first download, the data will be cached in OGGM’s dl_cache_dir folder (see First step: system settings for input data).

Available pre-processed configurations#

OGGM has several configurations and directories to choose from, and the list is getting larger regularly. Don’t hesitate to ask us if you are unsure about which to use, or if you’d like to have more configurations to choose from!

To choose from a specific preprocessed configuration, use the prepro_base_url argument in your call to workflow.init_glacier_directories(), and set it to the url of your choice.

The recommended prepro_base_url for a standard OGGM run is:

In [1]: from oggm import DEFAULT_BASE_URL

In [2]: DEFAULT_BASE_URL
Out[2]: 'https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.6/L3-L5_files/2025.6/elev_bands/W5E5/per_glacier_spinup/'

This is the URL that was used to generate the OGGM 1.6.3 standard projections (OGGM global glacier projections) with the following basic set-up:

Directory structure and naming conventions for all levels#

Within cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.6, there are multiple options to choose from and we describe the folder structure in the following:

  • Step 1:
    • L1_L2_files: here the directories with pre-processing level 1 and 2 can be found.

    • L3_L5_files: here the directories with pre-processing level 3 to 5 can be found.

  • Step 2: select a version of the directories (e.g. 2025.6 since OGGM v1.6.3) or 2023.3 (old)

  • Step 3: select the flowline type, centerlines or elevation band flowlines (elev_bands), optionally with the extension of your choice when using L1_L2_files.

  • Step 4: this is only needed when taking the L3_L5_files route. The folder name starts with the name of the baseline climate (e.g. W5E5) that has been used. For the 2023.3 glacier directories, additional folder name extensions exist.

  • Step 5 (only for the 2025.6 glacier directories within the L3_L5_files route): select the calibration option choice per_glacier, i.e. matching Hugonnet et al., 2021 for every glacier individually (approach used for the 2023.3 gdirs) or regional, i.e. calibrating every glacier to the regional mass-balance estimate and additional folder name extensions exist.

  • Step 6: select the Randolph Glacier Inventory (RGI) version. In OGGM v1.6.1, only RGI62 was available. In OGGM v1.6.3, for some directories also RGI70G or RGI70C available.

  • Step 7: select the border option (see Glacier map size: the prepro_border argument)

Explanation of the naming convention for the folder name extensions:

  • _spinup indicates that the dynamic spin-up has been used for the calibration, if left out the calibration was done without the dynamic spin-up.

  • _w_data indicates that additional data has been added to the directories: ITS-LIVE, Millan et al. ice velocity product and the consensus ice thickness estimate (all described in more detail later).