Skip to content

Commit

Permalink
Merge f0a02b0 into bcc40b7
Browse files Browse the repository at this point in the history
  • Loading branch information
nchampollion committed Mar 4, 2021
2 parents bcc40b7 + f0a02b0 commit 97a552d
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 65 deletions.
2 changes: 1 addition & 1 deletion docs/assets.rst
@@ -1,6 +1,6 @@
.. _assets:

Assets & downloads
Assets and downloads
==================

This page lists some datasets that are either generated or used by OGGM and
Expand Down
20 changes: 13 additions & 7 deletions docs/faq.rst
Expand Up @@ -50,13 +50,13 @@ reasonable global estimates of glacier mass-balance and glacier change: this
is a result of the law of large numbers, assuming that the uncertainty for
each single glacier can be large but random and Gaussian.

If you use OGGM for a single or and handful of glaciers, chances are that the
If you use OGGM for a single or a handful of glaciers, chances are that the
outcome is disappointing. For these kind of applications, you'll probably
need to re-calibrate OGGM using local data, for example of mass-balance
or observations of past glacier change.


Can I use OGGM to simulate long term glacier evolution?
Can I use OGGM to simulate long-term glacier evolution?
-------------------------------------------------------

It depends what you mean by "long-term": at centennial time scales, probably,
Expand All @@ -71,6 +71,12 @@ flowline assumption becomes much less valid than for typical valley glaciers
found today. For these situations, fully distributed models like PISM
are more appropriate.

In addition, there is some issues about glacier growth: you have to be sure the
limit border you have defined is large enough to allow a large growth of glaciers ;
secondly, you need to authorize the merge of glaciers which is not yet implemented
into OGGM ; last, there might be not negligible changes in the landscape around
the glacier as well as evolution of the glacier bed for long-term simulations.

We are currently in the process of testing and tuning OGGM for post-LIA
simulations in the Alps. Reach out if you would like to know more about our
progress.
Expand Down Expand Up @@ -149,11 +155,11 @@ We recommend to increase the glacier map in this case, by setting
`cfg.PARAMS['border']` to a larger value, e.g. 100 or 200. The larger this
value, the larger the glacier can grow (the drawback is that simulations
become slower and hungrier in memory because the number of grid points
increases as well). We do not recommend to go larger than 250, however:
increases as well). We do not recommend to go larger than 250. However,
for these cases it is likely that something else is wrong in your workflow
or OGGM itself.

What does the "CFL error" mean?
What does the "`CFL error`" mean?
--------------------------------

This happens when the ice dynamics simulation is unstable. In OGGM we use an
Expand All @@ -167,14 +173,14 @@ or set your own thresholds for small time steps (at the cost of computation time
Can I use my own Glacier inventory and outlines in OGGM?
--------------------------------------------------------

You will be able to include your own inventory and outlines in OGGM,
Yes! You will be able to include your own inventory and glacier outlines in OGGM
as long as the format of your `shapefile <https://en.wikipedia.org/wiki/Shapefile>`_
is the same as the RGI file (v5 and v6 are supported). The attribute table should match
the RGI format with the same amount of columns and variable names. See
:ref:`outlines` for more information about the list of glacier attributes
needed by OGGM.
If you decide to use your own inventory (e.g. maybe because it has a better glacier outline) we
encourage you to contact the `GLIMPS core team <https://www.glims.org/maps/contact_info.html>`_
encourage you to contact the `GLIMS core team <https://www.glims.org/maps/contact_info.html>`_
to let them know how your inventory improves the glacier digitalization compared to the
current RGI version. If you want to see an example on how to give OGGM a different shapefile than RGI,
have a look at our :ref:`tutorials`!
have a look to this `tutorial https://oggm.org/tutorials/notebooks/use_your_own_inventory.html`_!
73 changes: 39 additions & 34 deletions docs/input-data.rst
Expand Up @@ -17,7 +17,7 @@ This page describes the various products you will find in the shop.

.. important::

Don't forget to set-up or check your :ref:`system-settings` before
Don't forget to set-up or check your system (:ref:`system-settings`) before
downloading new data! (you'll need to
do this only once per computer)

Expand All @@ -37,7 +37,7 @@ If you want to change some of these parameters, you *may* have to start a
run from a lower processing level and re-run the processing tasks.
Whether or not this is necessary depends on the stage of the workflow
you'd like your computations to diverge from the
defaults (this will become more clear a we provide example use cases below).
defaults (this will become more clear as we provide an example below).

To start from a pre-processed state, simply use the
:py:func:`workflow.init_glacier_directories` function with the
Expand All @@ -59,30 +59,35 @@ Currently, there are six available levels of pre-processing:
to the directories. Adding all necessary pre-processing tasks
for a dynamical run, including the mass-balance calibration, bed inversion,
up to the :py:func:`tasks.init_present_time_glacier` task included.
These directories still contain all data that was necessary for the processing,
i.e. they are the largest in size. They are also the most flexible since
These directories still contain all data that were necessary for the processing,
i.e. the largest in size but also the most flexible since
the processing chain can be re-run from any stage in them.
- **Level 4**: same as level 3 but with all intermediate output files removed.
The strong advantage of level 4 files is that their size is considerably
reduced, at the cost that certain operations (like plotting on maps or
running the bed inversion algorithm again) are not possible anymore.
- **Level 5**: on top of level 4, an additional historical simulation is run
from the RGI date to the last possible date of the baseline climate file
(for example end of 2019 for CRU and ERA5).
The state of the glacier as month 01, (hydrological) year 2020 can then be
(currently January 1st 2020 at 00H for CRU and ERA5).
The state of the glacier (currently set as month 01 in hydrological year 2020) can then be
used for future projections.

In practice, most users are going to use level 2, level 3 or level 5 files. Here
are some example use cases:

1. *Running OGGM from GCM / RCM data with the default settings*: start at level 5
1. *Running OGGM from GCM / RCM data with the default settings*: **start at level 5**
2. *Using OGGM's flowlines but running your own baseline climate,
mass-balance or ice thickness inversion models*: start at level 2 (and maybe
use OGGM's workflow again for the ice dynamics?). This is the workflow used
mass-balance or ice thickness inversion models*: **start at level 2** (and maybe
use OGGM's workflow again for glacier dynamic evolution?). This is the workflow used
by associated model `PyGEM <https://github.com/drounce/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.

Here is the command to choose the pre-processing level (using Hintereisferner glacier here):

gdir = workflow.init_glacier_directories('RGI60-11.00897',
from_prepro_level=1)


Glacier map size: the prepro_border argument
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -175,16 +180,16 @@ Available pre-processed configurations
for an example.


Default
^^^^^^^
A. Default
^^^^^^^^^^

If not provided with a specific ``prepro_base_url`` argument,
:py:func:`workflow.init_glacier_directories` will download the glacier
directories from the default urls. Here is a summary of the default configuration:

- model parameters as of the ``oggm/params.cfg`` file at the published model version
- flowline glaciers computed from the geometrical centerlines (including tributaries)
- baseline climate from CRU (i.e. not available for Antarctica)
- baseline climate from CRU (not available for Antarctica)
- baseline climate quality checked with :py:func:`tasks.historical_climate_qc` with ``N=3``
- mass-balance parameters calibrated with the standard OGGM procedure. No calibration
against geodetic MB (see options below for regional calibration)
Expand All @@ -197,23 +202,23 @@ To see the code that generated these directories (for example if you want to
make your own, visit :py:func:`cli.prepro_levels.run_prepro_levels`
or this `file on github <https://github.com/OGGM/oggm/blob/master/oggm/cli/prepro_levels.py>`_).

The urls used by OGGM per default are listed here:
The urls used by OGGM per default are in the following ftp servor:

`https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/ <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/>`_ + :
`https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/ <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/>`_ :

- `L1-L2_files/centerlines <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L1-L2_files/centerlines/>`_ for level 1 and level 2
- `L3-L5_files/CRU/centerlines/qc3/pcp2.5/no_match <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L3-L5_files/CRU/centerlines/qc3/pcp2.5/no_match/>`_ for level 3 to 5

If you are new to this, I recommend to explore these directories to familiarize yourself
If you are new to this, we recommend to explore these directories to familiarize yourself
to their content. Of course, when provided with an url such as above,
OGGM will know where to find the respective files
automatically, but is is good to understand how they are structured. The `summary` folder
automatically, but is is good to understand how they are structured. The `summary folder`
(`example <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L1-L2_files/centerlines/RGI62/b_080/L2/summary/>`_)
folder contains diagnostic files which can be useful as well.
contains diagnostic files which can be useful as well.


Option: Geometrical centerlines or elevation band flowlines
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
B. Option: Geometrical centerlines or elevation band flowlines
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The type of flowline to use (see :ref:`flowlines`) can be decided at level 2 already.
Therefore, the two configurations available at level 2 from these urls:
Expand All @@ -227,8 +232,8 @@ flowline types. For example with CRU:
- `L3-L5_files/CRU/centerlines/qc3/pcp2.5/no_match <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L3-L5_files/CRU/centerlines/qc3/pcp2.5/no_match/>`_ for centerlines
- `L3-L5_files/CRU/elev_bands/qc3/pcp2.5/no_match <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L3-L5_files/CRU/elev_bands/qc3/pcp2.5/no_match/>`_ for elevation bands

Baseline climate data
^^^^^^^^^^^^^^^^^^^^^
C. Option: Baseline climate data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For the two most important default configurations (CRU or ERA5 as baseline climate),
we provide all levels for both the geometrical centerlines or the elevation band
Expand All @@ -239,8 +244,8 @@ flowlines:
- `L3-L5_files/ERA5/centerlines/qc3/pcp1.6/no_match <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L3-L5_files/ERA5/centerlines/qc3/pcp1.6/no_match/>`_ for ERA5 + centerlines
- `L3-L5_files/ERA5/elev_bands/qc3/pcp1.6/no_match <https://cluster.klima.uni-bremen.de/~oggm/gdirs/oggm_v1.4/L3-L5_files/ERA5/elev_bands/qc3/pcp1.6/no_match/>`_ for ERA5 + elevation bands

Further set-ups
^^^^^^^^^^^^^^^
D. Further set-ups
^^^^^^^^^^^^^^^^^^

Here is the current list of available configurations at the time of writing (explore the server for more!):

Expand All @@ -261,7 +266,7 @@ RGI-TOPO
The `RGI-TOPO <https://rgitools.readthedocs.io/en/latest/dems.html>`_ dataset
provides a local topography map for each single glacier in the RGI. It was
generated with OGGM, and can be used very easily from the OGGM-Shop (visit
our :ref:`tutorials` if you are interested!).
our `tutorials <https://oggm.org/tutorials/notebooks/welcome.html>`_ if you are interested!).

.. figure:: _static/malaspina_topo.png
:width: 100%
Expand All @@ -274,7 +279,7 @@ ITS_LIVE

The `ITS_LIVE <https://its-live.jpl.nasa.gov/>`_ ice velocity products
can be downloaded and reprojected to the glacier directory
(visit our :ref:`tutorials` if you are interested!).
(visit our `tutorials <https://oggm.org/tutorials/notebooks/welcome.html>`_ if you are interested!).

.. figure:: _static/malaspina_itslive.png
:width: 80%
Expand All @@ -286,7 +291,7 @@ Ice thickness

The `Farinotti et al., 2019 <https://www.nature.com/articles/s41561-019-0300-3>`_
ice thickness products can be downloaded and reprojected to the glacier directory
(visit our :ref:`tutorials` if you are interested!).
(visit our `tutorials <https://oggm.org/tutorials/notebooks/welcome.html>`_ if you are interested!).

.. figure:: _static/malaspina_thick.png
:width: 80%
Expand Down Expand Up @@ -327,7 +332,7 @@ determine which bed shape should be used (rectangular or parabolic). See the
`rgi tools <https://rgitools.readthedocs.io/en/latest/tools.html#glacier-intersects>`_
documentation for more information about the intersects.

The following table summarizes the attributes from the RGI used by OGGM. It
The following table summarizes the RGI attributes used by OGGM. It
can be useful to refer to this list if you use your own glacier outlines
with OGGM.

Expand Down Expand Up @@ -358,7 +363,7 @@ Linkages not included
EndDate not included
================== =========================== ======================

For Greenland and Antarctica, OGGM does not take into account the
For Greenland and Antarctica peripheral glaciers, OGGM does not take into account the
connectivity level between the Glaciers and the Ice sheets.
We recommend to the users to think about this before they
run the task: ``workflow.init_glacier_directories``.
Expand Down Expand Up @@ -395,7 +400,7 @@ run the task: ``workflow.init_glacier_directories``.
Topography data
~~~~~~~~~~~~~~~

When creating a :ref:`glacierdir` a suitable topographical data source is
When creating a :ref:`glacierdir`, a suitable topographical data source is
chosen automatically, depending on the glacier's location. OGGM supports
a large number of datasets (almost all of the freely available ones, we
hope). They are listed on the
Expand All @@ -414,7 +419,7 @@ the next on the list will be tested: if the tested dataset covers
75% of the glacier area, it is selected. In practice, NASADEM and COPDEM
are sufficient for all but about 300 of the world's glaciers.

These data are downloaded only when needed (i.e.: during an OGGM run)
These data are downloaded only when needed (i.e. during an OGGM run)
and they are stored in the ``dl_cache_dir``
directory. The gridded topography is then reprojected and resampled to the local
glacier map. The local grid is defined on a Transverse Mercator projection centered over
Expand Down Expand Up @@ -461,13 +466,13 @@ reproduce this information

`In this blogpost <https://oggm.org/2019/10/08/dems/>`_ we talk about which
requirements a DEM must fulfill to be helpful to OGGM. And we also explain
why and how we preprocess certain DEMs before we make them available to the
why and how we preprocess some DEMs before we make them available to the
OGGM workflow.

Climate data
~~~~~~~~~~~~

The MB model implemented in OGGM needs monthly time series of temperature and
The mass-balance model implemented in OGGM needs monthly time series of temperature and
precipitation. The current default is to download and use the `CRU TS`_
data provided by the Climatic Research Unit of the University of East Anglia.

Expand All @@ -493,7 +498,7 @@ following convenience functions:
While each downloaded zip file is ~200mb in size, they are ~2.9Gb large
after decompression!

The raw, coarse (0.5°) dataset is then downscaled to a higher resolution grid
The raw, coarse (0.5°) dataset (CRU TS v4.04 at 0.5° resolution) is then downscaled to a higher resolution grid
(CRU CL v2.0 at 10' resolution) following the anomaly mapping approach
described by Tim Mitchell in his `CRU faq`_ (Q25). Note that we don't expect
this downscaling to add any new information than already available at the
Expand Down Expand Up @@ -555,7 +560,7 @@ project (see :py:func:`tasks.process_cesm_data`), and CMIP5/CMIP6
Mass-balance data
~~~~~~~~~~~~~~~~~

In-situ mass-balance data is used by OGGM to calibrate and validate the
In-situ mass-balance data are used by OGGM to calibrate and validate the
mass-balance model. We rely on mass-balance observations provided by the
World Glacier Monitoring Service (`WGMS`_).
The `Fluctuations of Glaciers (FoG)`_ database contains annual mass-balance
Expand Down

0 comments on commit 97a552d

Please sign in to comment.