Skip to content

Commit

Permalink
doc overload
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Aug 23, 2024
1 parent a09728e commit d73a004
Show file tree
Hide file tree
Showing 25 changed files with 174 additions and 98 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ About
:target: https://www.geosci-model-dev.net/12/909/2019/
:alt: GMD Paper

.. image:: https://zenodo.org/badge/43965645.svg
:target: https://zenodo.org/badge/latestdoi/43965645
.. image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.597193-blue.svg
:target: https://zenodo.org/doi/10.5281/zenodo.597193
:alt: Zenodo

:Tests:
Expand Down
30 changes: 22 additions & 8 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################
List of OGGM functions and tasks
################################
######################
List of OGGM functions
######################

.. currentmodule:: oggm

Expand Down Expand Up @@ -73,28 +73,42 @@ Input/Output
global_tasks.compile_climate_statistics
global_tasks.compile_ela

.. _apishop:

OGGM Shop
=========

.. autosummary::
:toctree: generated/
:nosignatures:

shop.bedtopo.add_consensus_thickness
shop.bedtopo.compile_consensus_statistics
shop.cook23.cook23_to_gdir
shop.cook23.compile_cook23_statistics
shop.cru.get_cru_file
shop.cru.process_cru_data
shop.cru.process_dummy_cru_file
shop.ecmwf.get_ecmwf_file
shop.ecmwf.process_ecmwf_data
shop.histalp.get_histalp_file
shop.histalp.process_histalp_data
shop.gcm_climate.process_gcm_data
shop.gcm_climate.process_cesm_data
shop.gcm_climate.process_cmip_data
shop.bedtopo.add_consensus_thickness
shop.hugonnet_maps.hugonnet_to_gdir
shop.hugonnet_maps.compile_hugonnet_statistics
shop.its_live.velocity_to_gdir
shop.its_live.compile_itslive_statistics
shop.millan22.thickness_to_gdir
shop.millan22.velocity_to_gdir
shop.millan22.compile_millan_statistics
shop.rgitopo.init_glacier_directories_from_rgitopo
shop.rgitopo.select_dem_from_dir
shop.rgitopo.dem_quality_check
shop.gcm_climate.process_gcm_data
shop.gcm_climate.process_monthly_isimip_data
shop.gcm_climate.process_cesm_data
shop.gcm_climate.process_cmip_data
shop.gcm_climate.process_lmr_data
shop.gcm_climate.process_modera_data

.. _apientitytasks:

Expand Down Expand Up @@ -305,7 +319,7 @@ folder won't erase its content:
os.listdir(gdir.dir) # the directory still contains the data
For more information about how to use GlacierDirectories, visit our
`tutorial on the topic <https://oggm.org/tutorials/master/notebooks/store_and_compress_glacierdirs.html>`_.
`tutorial on the topic <https://tutorials.oggm.org/master/notebooks/tutorials/store_and_compress_glacierdirs.html>`_.


.. include:: _generated/basenames.txt
Expand Down
2 changes: 1 addition & 1 deletion docs/citing-oggm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ the `Zenodo citation`_ for this purpose. An example BibTeX entry::
url = {https://doi.org/10.5281/zenodo.5327634}
}

.. _Zenodo citation: https://zenodo.org/badge/latestdoi/43965645
.. _Zenodo citation: https://zenodo.org/doi/10.5281/zenodo.597193

Logo
----
Expand Down
29 changes: 17 additions & 12 deletions docs/climate-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ and Implications for Our Perception of the Land Surface. Bulletin of the America
https://doi:10.5194/gmd-12-3055-2019
GCM data
~~~~~~~~

On of the main applications is to use climate model output to drive the mass balance model. In
this case we still rely on gridded observations (e.g. W5E5) for the reference
climatology and apply the GCM anomalies computed from a preselected reference
period. This method is often called the
`delta method <http://www.ciesin.org/documents/Downscaling_CLEARED_000.pdf>`_.

Visit our online tutorials to see how this can be done
(`OGGM run with GCM tutorial <https://tutorials.oggm.org/master/notebooks/10minutes/run_with_gcm.html>`_).

Paleo data
~~~~~~~~~~

Check out :ref:`apishop` for the latest fancy datasets.

CRU
~~~

Expand Down Expand Up @@ -174,15 +191,3 @@ Any other climate dataset
It is fairly easy to force OGGM with other datasets too. Recent publications have used
plenty of options, from ERA5-Land to regional reanalyses or more.


GCM data
~~~~~~~~

OGGM can also use climate model output to drive the mass balance model. In
this case we still rely on gridded observations (e.g. W5E5) for the reference
climatology and apply the GCM anomalies computed from a preselected reference
period. This method is often called the
`delta method <http://www.ciesin.org/documents/Downscaling_CLEARED_000.pdf>`_.

Visit our online tutorials to see how this can be done
(`OGGM run with GCM tutorial <https://oggm.org/tutorials/master/notebooks/run_with_gcm.html>`_).
4 changes: 2 additions & 2 deletions docs/download-projections.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
OGGM global glacier projections
===============================

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8286065.svg
:target: https://doi.org/10.5281/zenodo.8286065
.. image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.8286064-blue.svg
:target: https://doi.org/10.5281/zenodo.8286064

|
Expand Down
4 changes: 2 additions & 2 deletions docs/dynamic-spinup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ following schematic for a description of the standard steps in the spinup.
Default dynamic calibration workflow (adapted from Aguayo et al. 2023, in prep.)

We offer pre-processed directories including a dynamic spinup run. You can
check out this `10 minute tutorial <https://oggm.org/tutorials/stable/notebooks/10minutes/dynamical_spinup.html>`_
check out this `10 minute tutorial <https://tutorials.oggm.org/stable/notebooks/10minutes/dynamical_spinup.html>`_
for a short introduction to the spinup functions and how to use the
pre-processed directories.

If you are looking for an in-depth explanation of the dynamic functions you
should check out this
`advanced tutorial <https://oggm.org/tutorials/stable/notebooks/advanced/dynamical_spinup.html>`_.
`advanced tutorial <https://tutorials.oggm.org/master/notebooks/tutorials/dynamical_spinup.html>`_.
10 changes: 5 additions & 5 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ progress.
I have a question about OGGM, can we talk about it per email/phone?
-------------------------------------------------------------------

Thanks for your interest in OGGM! Usually, we prefer to keep
Thanks for your interest in OGGM! Usually, we prefer to keep
usage questions on `github issues <https://github.com/OGGM/oggm/issues>`_
so that everybody can learn from all questions and their answers.
You can also join our Slack discussion channel if you want a
more interactive forum. Keep in touch with us per email if you'd
You can also join our Slack discussion channel if you want a
more interactive forum. Keep in touch with us per email if you'd
like to join, we are a very open community!


Expand Down Expand Up @@ -227,7 +227,7 @@ 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.

Expand Down Expand Up @@ -256,7 +256,7 @@ encourage you to contact the `GLIMS core team <https://www.glims.org/maps/contac
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 to this
`tutorial <https://oggm.org/tutorials/stable/notebooks/use_your_own_inventory.html>`_!
`tutorial <https://tutorials.oggm.org/master/notebooks/tutorials/use_your_own_inventory.html>`_!

.. _pitfalls.numerics:

Expand Down
2 changes: 1 addition & 1 deletion docs/flowlines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ elevation-band and geometrical flowlines.

Both flowline types are available for download and for use in the OGGM
framework. The plot below has been obtained from the
`centerlines versus elevation-band flowlines comparison tutorial <https://oggm.org/tutorials/stable/notebooks/10minutes/elevation_bands_vs_centerlines.html>`_.
`centerlines versus elevation-band flowlines comparison tutorial <https://tutorials.oggm.org/master/notebooks/tutorials/elevation_bands_vs_centerlines.html>`_.


.. figure:: _static/eb_vs_cl.png
Expand Down
2 changes: 1 addition & 1 deletion docs/frontal-ablation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OGGM has a simple parameterisation for frontal ablation that can be used
during the ice volume estimation and for dynamical runs. These features
are still in the testing phase and are switched off per default.

Visit our `tutorials <https://oggm.org/tutorials>`_
Visit our `tutorials <https://tutorials.oggm.org>`_
if you are interested and would like to give them a go.

.. figure:: https://oggm.org/img/blog/calving_param/calving_ex.png
Expand Down
23 changes: 7 additions & 16 deletions docs/geometry-evolution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,19 @@ forcing computed with the :doc:`mass-balance`. They are also in charge of report
diagnostic variables such as length, area, volume. Depending on the model's complexity,
they can also report about ice velocity, ice thickness, etc.

Currently, OGGM has three operational geometry evolution models:
Currently, OGGM has four geometry evolution models:

.. toctree::
:maxdepth: 1
:hidden:

ice-dynamics.rst
igm.rst
mass-redistribution.rst
OGGM-VAS (volume-area scaling) <https://github.com/OGGM/oggm-vas>

`OGGM-VAS <https://github.com/OGGM/oggm-vas>`_ is a complete python re-write of
`Ben Marzeion's 2012 model <https://tc.copernicus.org/articles/6/1295/2012/>`_.
It should be equivalent to the original matlab model,
but follows the OGGM syntax very closely (and uses OGGM for data pre- and
post-processing). See Moritz Oberrauch's
`thesis <https://diglib.uibk.ac.at/ulbtirolhs/content/titleinfo/5878449>`_
for more information.

The :doc:`mass-redistribution` is an implementation of the "delta-h" model
by `Huss & Hock (2015) <https://www.frontiersin.org/articles/10.3389/feart.2015.00054/full>`_
and `Rounce et al., (2020) <https://doi.org/10.3389/feart.2019.00331>`_.
It works quite well for short simulations of the glacier retreat phase.

The default geometry evolution model in OGGM is the :doc:`ice-dynamics`.
We also have a `distributed SIA model <https://github.com/OGGM/oggm/blob/master/oggm/core/sia2d.py>`_
to play around, but nothing operational yet.
* :doc:`ice-dynamics`: the default!
* :doc:`igm`: the future!
* :doc:`mass-redistribution`: an implementation of the "delta-h" model by `Huss & Hock (2015) <https://www.frontiersin.org/articles/10.3389/feart.2015.00054/full>`_. It works quite well for short simulations of the glacier retreat phase.
* `OGGM-VAS (volume-area scaling) <https://github.com/OGGM/oggm-vas>`_: a python re-write of `Ben Marzeion's 2012 model <https://tc.copernicus.org/articles/6/1295/2012/>`_. See Moritz Oberrauch's `thesis <https://diglib.uibk.ac.at/ulbtirolhs/content/titleinfo/5878449>`_ for more information.
6 changes: 5 additions & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ through several examples to get you started.
Did you know that you can try OGGM in your browser before installing it
on your computer? Visit :doc:`cloud` for more information.

Did you know that we provide standard projections for all glaciers in the
world, and that you may not have to run OGGM for your use case?
Visit :doc:`download-projections` for more information.

.. _system-settings:

First step: system settings for input data
Expand Down Expand Up @@ -144,4 +148,4 @@ OGGM tutorials

Refer to our `tutorials`_ for real-world applications!

.. _tutorials: https://oggm.org/tutorials
.. _tutorials: https://tutorials.oggm.org
10 changes: 10 additions & 0 deletions docs/igm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Instructed Glacier Model (IGM)
==============================

Since v1.6.2, OGGM comes with a new interface able to call the
`Instructed Glacier Model (IGM) <https://github.com/jouvetg/igm>`_
while keeping your familiar OGGM workflow. This is still very
much experimental and under development, but we are excited to
see where this will lead us!

See `this tutorial <https://tutorials.oggm.org/master/notebooks/tutorials/ioggm.html>`_ for a sneak peak!
8 changes: 4 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ How to use the model, with concrete code examples and links to the tutorials.
* :doc:`cloud`
* :doc:`installing-oggm`
* :doc:`getting-started`
* `Tutorials <https://oggm.org/tutorials/stable>`_
* `Tutorials <https://tutorials.oggm.org/stable>`_
* :doc:`api`
* :doc:`practicalities`
* :doc:`faq`
Expand All @@ -92,7 +92,7 @@ How to use the model, with concrete code examples and links to the tutorials.
cloud.rst
installing-oggm.rst
getting-started.rst
Tutorials <https://oggm.org/tutorials/stable>
Tutorials <https://tutorials.oggm.org/stable>
api.rst
practicalities.rst
faq.rst
Expand Down Expand Up @@ -207,8 +207,8 @@ About
:target: https://www.geosci-model-dev.net/12/909/2019/
:alt: GMD Paper

.. image:: https://zenodo.org/badge/43965645.svg
:target: https://zenodo.org/badge/latestdoi/43965645
.. image:: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.597193-blue.svg
:target: https://zenodo.org/doi/10.5281/zenodo.597193
:alt: Zenodo

:Tests:
Expand Down
4 changes: 4 additions & 0 deletions docs/installing-oggm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Installing OGGM
Did you know that you can try OGGM in your browser before installing it
on your computer? Visit :doc:`cloud` for more information.

Did you know that we provide standard projections for all glaciers in the
world, and that you may not have to run OGGM for your use case?
Visit :doc:`download-projections` for more information.

OGGM itself is a pure python package, but it has several dependencies which
are not trivial to install. The instructions below provide all the required
details and should work on Linux and Mac OS. See :ref:`install-troubleshooting`
Expand Down
6 changes: 3 additions & 3 deletions docs/mass-balance-16guide.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. currentmodule:: oggm

Transitioning from OGGM 1.5 to 1.6
==================================
Transitioning from v1.5 to 1.6
==============================

OGGM version 1.6 and above have considerably improved how the calibration is done
in OGGM. At the same time, we changed a few other aspects of the mass-balance
Expand All @@ -18,5 +18,5 @@ Furthermore, the results will probably change quite a lot (depending on your use

**We recommend all users to transition to OGGM 1.6 when they are ready to.** It's totally fine to continue using
OGGM 1.5.3 as long as you need to. For transitioning, we recommend to have a look at our brand new
`tutorials <https://oggm.org/tutorials>`_.
`tutorials <https://tutorials.oggm.org>`_.

2 changes: 1 addition & 1 deletion docs/mass-balance-monthly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Calibration
spend some time in getting familiar with the calibration procedure in
order to adapt it for their own purposes.

Visit the new `mass balance calibration tutorial <https://oggm.org/tutorials/master/notebooks/advanced/massbalance_calibration.html>`_
Visit the new `mass balance calibration tutorial <https://tutorials.oggm.org/master/notebooks/tutorials/massbalance_calibration.html>`_
for an overview.

Notes
Expand Down
41 changes: 24 additions & 17 deletions docs/mass-balance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,16 @@ Mass balance models

OGGM allows to mix and compare many different implementations
of climatic mass balance (MB) models. These models all follow a predefined
"interface" (programming jargon for *naming conventions*) so that they can
communicate with the :doc:`geometry-evolution`.
"interface" so that they can communicate with the :doc:`geometry-evolution`.

**In fact, what OGGM calls a "mass balance model" is any function that provides
surface mass balance information to the geometry evolution model for the
run**. Therefore, while some mass balance models can be quite complex and take
**In fact, what OGGM calls a "mass balance model" is any python function that
is able to provide annual surface mass balance information to the geometry evolution
model for the duration of the run**.

Therefore, while some mass balance models can be quite complex and take
many physical processes into account, other model classes can implement idealized
concepts, random samples or simplifications of the more realistic ones.

Here are some of the options available to our users to compute the mass balance:

.. toctree::
:maxdepth: 1

mass-balance-monthly.rst
mass-balance-16guide.rst
mass-balance-toys.rst
PyGEM <https://github.com/drounce/PyGEM>
massbalance-sandbox <https://github.com/OGGM/massbalance-sandbox>

.. admonition:: **Check out these recent developments!**

PyGEM is a standalone model that has been applied to High Mountain Asia
Expand All @@ -33,11 +23,28 @@ Here are some of the options available to our users to compute the mass balance:
`2020b <https://doi.org/10.3389/feart.2019.00331>`_). David and the
OGGM team have worked extensively to make PyGEM's MB model
compatible with the OGGM workflow, resulting in this
`global PyGEM-OGGM study published in Science <https://doi.org/10.1126/science.abo1324>`_
`global PyGEM-OGGM study published in Science <https://doi.org/10.1126/science.abo1324>`_.
The capacity to run OGGM with PyGEM as mass balance model is now available
on the PyGEM repository.

`OGGM's massbalance-sandbox <https://github.com/OGGM/massbalance-sandbox>`_
is the future generation of OGGM's climatic MB models. They are currently
in the development and testing phase, but they can readily be used with
a recent OGGM version.

Check out the following resources for more information:

* :doc:`mass-balance-monthly`
* :doc:`mass-balance-16guide`
* :doc:`mass-balance-toys`
* The `massbalance-sandbox <https://github.com/OGGM/massbalance-sandbox>`_ repository


.. toctree::
:maxdepth: 1
:hidden:

mass-balance-monthly.rst
mass-balance-16guide.rst
mass-balance-toys.rst
massbalance-sandbox <https://github.com/OGGM/massbalance-sandbox>
Loading

0 comments on commit d73a004

Please sign in to comment.