Skip to content

Commit

Permalink
Add rgi7 to prepro (#1736)
Browse files Browse the repository at this point in the history
* Add rgi7 to prepro

* whats new
  • Loading branch information
fmaussion authored Aug 24, 2024
1 parent 11e64ed commit e24c5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Enhancements
instead of glacier-per-glacier values. This is useful to trick
RGI7 into being calibrated or other things (:pull:`1692`).
By `Fabien Maussion <https://github.com/fmaussion>`_
- Added the rgi7g_to_complex task which adds a mask of glacier
entities in the glacier complex glacier dirs (:pull:`1736`).
By `Fabien Maussion <https://github.com/fmaussion>`_

Bug fixes
~~~~~~~~~
Expand Down
3 changes: 3 additions & 0 deletions oggm/cli/prepro_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ def _time_log():
if add_glathida:
from oggm.shop.glathida import glathida_to_gdir
workflow.execute_entity_task(glathida_to_gdir, gdirs)
if rgi_version == '70C':
# Some additional data for the 70C glaciers
workflow.execute_entity_task(tasks.rgi7g_to_complex, gdirs)

if bin_variables and gdirs_band:
workflow.execute_entity_task(tasks.elevation_band_flowline,
Expand Down

0 comments on commit e24c5eb

Please sign in to comment.