Skip to content

Commit

Permalink
Clarify COM directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Jan 10, 2025
1 parent 5265d98 commit 8905bfa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jobs/JGFS_ATMOS_GEMPAK_NCDC_UPAPGIF
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ export COMPONENT="atmos"
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_OBS:COM_OBS_TMPL
GRID=1p00 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMIN_ATMOS_GEMPAK_1p00:COM_ATMOS_GEMPAK_TMPL"

# Declare COMOUT_ATMOS_GEMPAK_GIF and COMOUT_ATMOS_GEMPAK_UPPER_AIR
for grid in gif upper_air; do
# This job reads and writes to the GEMPAK directories
gempak_dir="COMIN_ATMOS_GEMPAK_${grid^^}"
gempak_out_dir="COMOUT_ATMOS_GEMPAK_${grid^^}"
_GRID="${grid^^}"
gempak_dir="COMOUT_ATMOS_GEMPAK_${_GRID}"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "${gempak_dir}:COM_ATMOS_GEMPAK_TMPL"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "${gempak_out_dir}:COM_ATMOS_GEMPAK_TMPL"
if [[ ! -d "${!gempak_dir}" ]]; then mkdir -m 775 -p "${!gempak_dir}"; fi
done

Expand Down

0 comments on commit 8905bfa

Please sign in to comment.