Skip to content

Commit

Permalink
Replace COM with COMIN/COMOUT in gempak meta jjob
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Jan 14, 2025
1 parent 26a6b03 commit ba344ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions jobs/JGDAS_ATMOS_GEMPAK_META_NCDC
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
##############################################
# Define COM directories
##############################################
GRID=1p00 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COM_ATMOS_GEMPAK_1p00:COM_ATMOS_GEMPAK_TMPL"
GRID=1p00 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMIN_ATMOS_GEMPAK_1p00:COM_ATMOS_GEMPAK_TMPL"

GRID="meta" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COM_ATMOS_GEMPAK_META:COM_ATMOS_GEMPAK_TMPL"
if [[ ! -d "${COM_ATMOS_GEMPAK_META}" ]]; then
mkdir -m 775 -p "${COM_ATMOS_GEMPAK_META}"
GRID="meta" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_META:COM_ATMOS_GEMPAK_TMPL"
if [[ ! -d "${COMOUT_ATMOS_GEMPAK_META}" ]]; then
mkdir -m 775 -p "${COMOUT_ATMOS_GEMPAK_META}"
fi

if (( cyc%12 == 0 )); then
GRID="gif" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COM_ATMOS_GEMPAK_GIF:COM_ATMOS_GEMPAK_TMPL"
if [[ ! -d "${COM_ATMOS_GEMPAK_GIF}" ]]; then
mkdir -m 775 -p "${COM_ATMOS_GEMPAK_GIF}"
GRID="gif" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_GIF:COM_ATMOS_GEMPAK_TMPL"
if [[ ! -d "${COMOUT_ATMOS_GEMPAK_GIF}" ]]; then
mkdir -m 775 -p "${COMOUT_ATMOS_GEMPAK_GIF}"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/exgdas_atmos_gempak_gif_ncdc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ ${MODEL} == GDAS ]]; then
max_tries=180
export fhr3
for fhr3 in ${fcsthrs}; do
gempak_file="${COM_ATMOS_GEMPAK_1p00}/${RUN}_1p00_${PDY}${cyc}f${fhr3}"
gempak_file="${COMIN_ATMOS_GEMPAK_1p00}/${RUN}_1p00_${PDY}${cyc}f${fhr3}"
if ! wait_for_file "${gempak_file}" "${sleep_interval}" "${max_tries}" ; then
echo "FATAL ERROR: ${gempak_file} not found after ${max_tries} iterations"
exit 10
Expand Down

0 comments on commit ba344ec

Please sign in to comment.