From c31c5cb5940313c53a782314b5729466d1db6ff9 Mon Sep 17 00:00:00 2001 From: AntonMFernando Date: Sat, 11 Jan 2025 20:09:03 -0500 Subject: [PATCH] changed com var in exscript and JJob --- jobs/JGLOBAL_ARCHIVE | 6 ++++-- scripts/exglobal_archive.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jobs/JGLOBAL_ARCHIVE b/jobs/JGLOBAL_ARCHIVE index a35ec92ab8..382d742300 100755 --- a/jobs/JGLOBAL_ARCHIVE +++ b/jobs/JGLOBAL_ARCHIVE @@ -50,18 +50,20 @@ for grid in "0p25" "0p50" "1p00"; do "COMIN_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_GRID_TMPL" done - +############################################################### +# Create an array of output wave grids to process if [[ -n "${wavepostGRD}" || -n "${waveinterpGRD}" ]]; then for grdID in ${wavepostGRD} ${waveinterpGRD}; do source "${USHgfs}/wave_domain_grid.sh" process_grdID "${grdID}" YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \ "COMIN_WAVE_GRID_${GRDNAME}_${GRDRES}:COM_WAVE_GRID_RES_TMPL" + gCOM+="${GRDNAME}.${GRDRES}" done else echo "Both wavepostGRD and waveinterpGRD are empty. No grids to process." fi - +export gCOM="${gCOM[*]}" ############################################################### # Run archive script ############################################################### diff --git a/scripts/exglobal_archive.py b/scripts/exglobal_archive.py index ae613fb39c..6dfa1b4740 100755 --- a/scripts/exglobal_archive.py +++ b/scripts/exglobal_archive.py @@ -40,7 +40,7 @@ def main(): 'NMEM_ENS', 'DO_JEDIATMVAR', 'DO_VRFY_OCEANDA', 'FHMAX_FITS', 'waveGRD', 'IAUFHRS', 'DO_FIT2OBS', 'NET', 'FHOUT_HF_GFS', 'FHMAX_HF_GFS', 'REPLAY_ICS', 'OFFSET_START_HOUR', 'ARCH_EXPDIR', 'EXPDIR', 'ARCH_EXPDIR_FREQ', 'ARCH_HASHES', - 'ARCH_DIFFS', 'SDATE', 'EDATE', 'HOMEgfs'] + 'ARCH_DIFFS', 'SDATE', 'EDATE', 'HOMEgfs', 'gCOM'] archive_dict = AttrDict() for key in keys: