From e24c5eb6f62d4f008698e74ab47fe91aa4b7cf8a Mon Sep 17 00:00:00 2001 From: Fabien Maussion Date: Sat, 24 Aug 2024 13:49:31 +0100 Subject: [PATCH] Add rgi7 to prepro (#1736) * Add rgi7 to prepro * whats new --- docs/whats-new.rst | 3 +++ oggm/cli/prepro_levels.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/whats-new.rst b/docs/whats-new.rst index e16f038d9..bdd24639e 100644 --- a/docs/whats-new.rst +++ b/docs/whats-new.rst @@ -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 `_ +- Added the rgi7g_to_complex task which adds a mask of glacier + entities in the glacier complex glacier dirs (:pull:`1736`). + By `Fabien Maussion `_ Bug fixes ~~~~~~~~~ diff --git a/oggm/cli/prepro_levels.py b/oggm/cli/prepro_levels.py index 01b77993f..d53e69b69 100644 --- a/oggm/cli/prepro_levels.py +++ b/oggm/cli/prepro_levels.py @@ -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,