Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rgi7g_to_complex to prepro #1736

Merged
merged 2 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading