Skip to content

Commit

Permalink
modified jobs\JGLOBAL_ARCHIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Jan 10, 2025
1 parent ae45df6 commit 8528a8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion jobs/JGLOBAL_ARCHIVE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "arch" -c "base arch"
source "${HOMEgfs}/ush/jjob_header.sh" -e "arch" -c "base arch wave"


##############################################
Expand Down Expand Up @@ -50,6 +50,18 @@ for grid in "0p25" "0p50" "1p00"; do
"COMIN_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_GRID_TMPL"
done


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"
done
else
echo "Both wavepostGRD and waveinterpGRD are empty. No grids to process."
fi

###############################################################
# Run archive script
###############################################################
Expand Down

0 comments on commit 8528a8f

Please sign in to comment.