From 8deaa9168cce0907ff7e188d6a55a1048afcb3bf Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Thu, 14 Mar 2024 09:49:39 -0400 Subject: [PATCH 1/2] The jjob for ocean and ice pp, only defines the component specific history and grib directory. This causes an error in the exscript trying to pull keys for both ocean and ice. Fix this. Surprised this has not caused failures before today --- scripts/exglobal_oceanice_products.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/exglobal_oceanice_products.py b/scripts/exglobal_oceanice_products.py index 0f8e2e0d6d..2e6c345114 100755 --- a/scripts/exglobal_oceanice_products.py +++ b/scripts/exglobal_oceanice_products.py @@ -19,8 +19,7 @@ def main(): # Pull out all the configuration keys needed to run the rest of steps keys = ['HOMEgfs', 'DATA', 'current_cycle', 'RUN', 'NET', - 'COM_OCEAN_HISTORY', 'COM_OCEAN_GRIB', - 'COM_ICE_HISTORY', 'COM_ICE_GRIB', + f'COM_{component.upper()}_HISTORY', f'COM_{component.upper()}_GRIB' 'APRUN_OCNICEPOST', 'component', 'forecast_hour', 'valid_datetime', 'avg_period', 'model_grid', 'product_grids', 'oceanice_yaml'] From d8b40fe753cc3aa8b029a520b0fa15ce74400cee Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Thu, 14 Mar 2024 10:34:58 -0400 Subject: [PATCH 2/2] Update scripts/exglobal_oceanice_products.py Co-authored-by: David Huber <69919478+DavidHuber-NOAA@users.noreply.github.com> --- scripts/exglobal_oceanice_products.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/exglobal_oceanice_products.py b/scripts/exglobal_oceanice_products.py index 2e6c345114..9e4d00189b 100755 --- a/scripts/exglobal_oceanice_products.py +++ b/scripts/exglobal_oceanice_products.py @@ -19,7 +19,7 @@ def main(): # Pull out all the configuration keys needed to run the rest of steps keys = ['HOMEgfs', 'DATA', 'current_cycle', 'RUN', 'NET', - f'COM_{component.upper()}_HISTORY', f'COM_{component.upper()}_GRIB' + f'COM_{oceanice.task_config.component.upper()}_HISTORY', f'COM_{oceanice.task_config.component.upper()}_GRIB' 'APRUN_OCNICEPOST', 'component', 'forecast_hour', 'valid_datetime', 'avg_period', 'model_grid', 'product_grids', 'oceanice_yaml']