Skip to content
Open
Show file tree
Hide file tree
Changes from 74 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
1e2df95
Step 1, declare_from_tmpl once per line
DavidHuber-NOAA Feb 13, 2026
68673fe
Make de_template_com.sh work on all template cases
DavidHuber-NOAA Feb 13, 2026
d715ca7
Bit of prep work to help de_template_com
DavidHuber-NOAA Feb 13, 2026
1db595e
Don't write anything to stdout when sourcing in de_template_com
DavidHuber-NOAA Feb 13, 2026
cc7fc95
More prep work
DavidHuber-NOAA Feb 13, 2026
9847646
More prep work
DavidHuber-NOAA Feb 13, 2026
c6f8c85
More still
DavidHuber-NOAA Feb 13, 2026
3e14003
Should be the last of the prep work
DavidHuber-NOAA Feb 13, 2026
ce2538e
Un-declare from template on J-Jobs
DavidHuber-NOAA Feb 13, 2026
13ecd55
Un-declare from template on scripts
DavidHuber-NOAA Feb 13, 2026
ff685c3
Add new script to CODEOWNERS
DavidHuber-NOAA Feb 13, 2026
d16ea3e
Add double quotes
DavidHuber-NOAA Feb 13, 2026
43e89fa
Add more double-quotes
DavidHuber-NOAA Feb 13, 2026
586eb00
Fix declaration
DavidHuber-NOAA Feb 13, 2026
6bfe173
Apply shfmt
DavidHuber-NOAA Feb 13, 2026
8b9176a
More double-quotes
DavidHuber-NOAA Feb 13, 2026
432e789
Address review-dog comments
DavidHuber-NOAA Feb 13, 2026
7f47858
Last of review dog (i hope)
DavidHuber-NOAA Feb 13, 2026
573409c
Just kidding
DavidHuber-NOAA Feb 13, 2026
548b11d
Last try
DavidHuber-NOAA Feb 13, 2026
e6c9ad5
Only run set_trace if it exists
DavidHuber-NOAA Feb 13, 2026
688f7da
Remove extraneous comments
DavidHuber-NOAA Feb 13, 2026
0a80c25
De-template prep.sh
DavidHuber-NOAA Feb 13, 2026
21a5322
Make NCO/EMC dirs where appropriate
DavidHuber-NOAA Feb 13, 2026
0b531ca
Fix review-dog's fix
DavidHuber-NOAA Feb 13, 2026
eceb75f
Ignore shellcheck
DavidHuber-NOAA Feb 13, 2026
7a3a0d5
Ignore 2155
DavidHuber-NOAA Feb 13, 2026
73ec978
Remove extra whitespace
DavidHuber-NOAA Feb 17, 2026
27966b8
De-template snowens_analysis
DavidHuber-NOAA Feb 17, 2026
49a1355
Add declarations for COMINrtofs
DavidHuber-NOAA Feb 17, 2026
0fd19d9
Ignore sc2155
DavidHuber-NOAA Feb 17, 2026
1cbc0f9
Merge remote-tracking branch 'origin/develop' into feature/de-templat…
DavidHuber-NOAA Feb 17, 2026
ba93007
Revert permissions on prep.sh
DavidHuber-NOAA Feb 18, 2026
0330d0b
Update COMINobsproc naming
DavidHuber-NOAA Feb 18, 2026
83c5b66
Inherit member when constructing COMIN/OUT
DavidHuber-NOAA Feb 18, 2026
646cc14
Declare COMs in a loop to align with other GEMPAK jobs
DavidHuber-NOAA Feb 19, 2026
2de737d
Remove TODO that won't be tackled
DavidHuber-NOAA Feb 19, 2026
b270c8d
Merge develop
DavidHuber-NOAA Feb 19, 2026
5b71dd0
Correct COMOUT->COMIN naming
DavidHuber-NOAA Feb 19, 2026
c6b1375
De-template tropcy-qc j-job
DavidHuber-NOAA Feb 19, 2026
0cb6dfd
De-template atmos_ensstat
DavidHuber-NOAA Feb 19, 2026
39c8b6b
Disable declare_from_tmpl
DavidHuber-NOAA Feb 19, 2026
488ed69
Remove no-longer-valid comment
DavidHuber-NOAA Feb 19, 2026
215b657
De-template regrid ush script
DavidHuber-NOAA Feb 19, 2026
2f3cb67
Remove dead code
DavidHuber-NOAA Feb 19, 2026
a3d00eb
Fix and clarify forecast COM directories
DavidHuber-NOAA Feb 19, 2026
408f7f4
Make product J-Jobs work with ensembles
DavidHuber-NOAA Feb 19, 2026
37fa12f
Fix DUMP RUNs
DavidHuber-NOAA Feb 19, 2026
c9ba903
Make prod_dir re-declarable
DavidHuber-NOAA Feb 19, 2026
f7320c4
Update codeowners
DavidHuber-NOAA Feb 20, 2026
e5ce1ce
Update issue templates
DavidHuber-NOAA Feb 20, 2026
622f0db
Add memdir declaration for jobs that also run on GEFS control member …
DavidHuber-NOAA Feb 23, 2026
2094bfc
Add gefs declaration for forecast
DavidHuber-NOAA Feb 23, 2026
a08c4a5
Consolidate COM declaration for ocean/ice components
DavidHuber-NOAA Feb 23, 2026
b308f26
switch atmos->snow for esnowanl JJob
DavidHuber-NOAA Feb 23, 2026
87895fa
Finish disabling declare_from_tmpl
DavidHuber-NOAA Feb 23, 2026
6691d3c
Ignore new wxflow link
DavidHuber-NOAA Feb 23, 2026
e98a956
Ignore 2309
DavidHuber-NOAA Feb 23, 2026
85573af
Apply suggestions from shfmt
DavidHuber-NOAA Feb 23, 2026
c2c20fc
Remove declare_from_tmpl
DavidHuber-NOAA Feb 23, 2026
da7a8f8
Add one more 2309 ignore
DavidHuber-NOAA Feb 23, 2026
3d7fd3f
Merge branch 'feature/de-template_com' of github.com:davidhuber-noaa/…
DavidHuber-NOAA Feb 23, 2026
cd29776
Trap mpmd errors
DavidHuber-NOAA Feb 25, 2026
b923a0b
Correct the path to member directories
DavidHuber-NOAA Feb 25, 2026
e7be017
Add a COMIN_ensstat declaration
DavidHuber-NOAA Feb 25, 2026
3039479
Make wave post sbs job work for GEFS
DavidHuber-NOAA Feb 25, 2026
fcf198b
Merge develop
DavidHuber-NOAA Feb 25, 2026
3c7bac0
De-template enkf-only additions
DavidHuber-NOAA Feb 26, 2026
0c67c09
De-template gempak jobs
DavidHuber-NOAA Feb 26, 2026
599b629
Update dev/jobs/JGLOBAL_ATMOS_TROPCY_QC_RELOC
DavidHuber-NOAA Feb 26, 2026
af3d1f2
Do not source config.com
DavidHuber-NOAA Feb 26, 2026
45b12e6
COMIN -> COMOUT
DavidHuber-NOAA Feb 26, 2026
70d7073
Merge branch 'feature/de-template_com' of github.com:davidhuber-noaa/…
DavidHuber-NOAA Feb 26, 2026
fcc1a2d
Merge remote-tracking branch 'emc/develop' into feature/de-template_com
DavidHuber-NOAA Feb 26, 2026
c64123b
Disable shellcheck in config.com
DavidHuber-NOAA Feb 26, 2026
ae9e134
Reinstate config.com
DavidHuber-NOAA Feb 26, 2026
60b6cfe
Tell bash to treat ensmem as a decimal
DavidHuber-NOAA Feb 26, 2026
7fb3441
Add shellcheck ignores
DavidHuber-NOAA Feb 26, 2026
2d54711
Remove extra double-quote
DavidHuber-NOAA Feb 26, 2026
79f507a
ignore, disable, same thing
DavidHuber-NOAA Feb 26, 2026
62f0bf4
COMOUT -> COMIN
DavidHuber-NOAA Feb 26, 2026
3173cfe
Apply suggestions from code review
DavidHuber-NOAA Feb 27, 2026
ae0fd12
Apply suggestions from code review
DavidHuber-NOAA Feb 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ ush/python/soca
ush/python/gen_bufr2ioda_json.py
ush/python/gen_bufr2ioda_yaml.py
ush/python/run_bufr2ioda.py
ush/python/wxflow
ush/spoc
# ush log file
ush/fetch-fix-data.log
Expand Down
32 changes: 15 additions & 17 deletions dev/job_cards/rocoto/prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,16 @@ GDUMP="gdas"

export OPREFIX="${RUN_local}.t${cyc}z."

RUN=${RUN_local} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_OBS:COM_OBS_TMPL \
COMOUT_OBS:COM_OBS_TMPL \
COMINobsproc:COM_OBSPROC_TMPL \
COMINobsforge:COM_OBSFORGE_TMPL \
COMIN_TCVITAL:COM_TCVITAL_TMPL \
COMOUT_ATMOS_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL

RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \
COMOUT_OBS_PREV:COM_OBS_TMPL \
COMINobsproc_PREV:COM_OBSPROC_TMPL \
COMOUT_ATMOS_ANALYSIS_PREV:COM_ATMOS_ANALYSIS_TMPL
declare -rx COMIN_OBS="${ROTDIR}/${RUN_local}.${PDY}/${cyc}/obs"
declare -rx COMOUT_OBS="${ROTDIR}/${RUN_local}.${PDY}/${cyc}/obs"
declare -rx COMINobsproc="${DMPDIR}/${RUN}.${PDY}/${cyc}/atmos"
declare -rx COMINobsforge="${IODADIR}/${RUN_local}.${PDY}/${cyc}"
declare -rx COMIN_TCVITAL="${DMPDIR}/${RUN_local}.${PDY}/${cyc}/atmos"
declare -rx COMOUT_ATMOS_ANALYSIS="${ROTDIR}/${RUN_local}.${PDY}/${cyc}/analysis/atmos"

declare -rx COMOUT_OBS_PREV="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/obs"
declare -rx COMINobsproc_PREV="${DMPDIR}/${GDUMP}.${gPDY}/${gcyc}/atmos"
declare -rx COMOUT_ATMOS_ANALYSIS_PREV="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/analysis/atmos"

mkdir -p "${COMOUT_OBS}"

Expand Down Expand Up @@ -136,8 +134,8 @@ rm -f "${COMOUT_OBS}/${OPREFIX}prepbufr"
rm -f "${COMOUT_OBS}/${OPREFIX}prepbufr.acft_profiles"
rm -f "${COMOUT_OBS}/${OPREFIX}nsstbufr"

RUN="gdas" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_ATMOS_HISTORY_GDAS:COM_ATMOS_HISTORY_TMPL
RUN="gfs" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_ATMOS_HISTORY_GFS:COM_ATMOS_HISTORY_TMPL
declare -rx COMIN_ATMOS_HISTORY_GDAS="${ROTDIR}/gdas.${PDY}/${cyc}/model/atmos/history"
declare -rx COMIN_ATMOS_HISTORY_GFS="${ROTDIR}/gfs.${PDY}/${cyc}/model/atmos/history"

export job="j${RUN_local}_prep_${cyc}"

Expand All @@ -151,9 +149,9 @@ export COMINgfs=${COMIN_ATMOS_HISTORY_GFS}
export COMSP=${COMSP:-"${COMIN_OBS}/${RUN_local}.t${cyc}z."}

if [[ ${DOENKFONLY_ATM:-"NO"} == "YES" ]]; then
MEMDIR="ensstat" RUN="enkf${GDUMP}" YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx COMIN_ATMOS_HISTORY_ENS_STAT_PREV:COM_ATMOS_HISTORY_TMPL
MEMDIR="mem001" RUN="enkf${GDUMP}" YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx COMIN_ATMOS_HISTORY_ENS_MEM001_PREV:COM_ATMOS_HISTORY_TMPL
RUN="gdas" YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx COMOUT_ATMOS_HISTORY_DET_PREV:COM_ATMOS_HISTORY_TMPL
declare -rx COMIN_ATMOS_HISTORY_ENS_STAT_PREV="${ROTDIR}/enkf${GDUMP}.${gPDY}/${gcyc}/ensstat/model/atmos/history"
declare -rx COMIN_ATMOS_HISTORY_ENS_MEM001_PREV="${ROTDIR}/enkf${GDUMP}.${gPDY}/${gcyc}/mem001/model/atmos/history"
declare -rx COMOUT_ATMOS_HISTORY_DET_PREV="${ROTDIR}/gdas.${gPDY}/${gcyc}/model/atmos/history"
mkdir -p "${COMOUT_ATMOS_HISTORY_DET_PREV}"
ln -sf "${COMIN_ATMOS_HISTORY_ENS_MEM001_PREV}/enkfgdas.t${gcyc}z.log.f003.txt" "${COMOUT_ATMOS_HISTORY_DET_PREV}/gdas.t${gcyc}z.log.f003.txt"
ln -sf "${COMIN_ATMOS_HISTORY_ENS_MEM001_PREV}/enkfgdas.t${gcyc}z.log.f006.txt" "${COMOUT_ATMOS_HISTORY_DET_PREV}/gdas.t${gcyc}z.log.f006.txt"
Expand Down
8 changes: 4 additions & 4 deletions dev/jobs/JGDAS_AERO_ANALYSIS_GENERATE_BMATRIX
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export PYTHONPATH
##############################################

# Generate COM variables from templates
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_OBS:COM_OBS_TMPL \
COMOUT_CHEM_BMAT:COM_CHEM_BMAT_TMPL \
COMIN_ATMOS_RESTART:COM_ATMOS_RESTART_TMPL \
COMOUT_CONF:COM_CONF_TMPL
declare -rx COMIN_OBS="${ROTDIR}/${RUN}.${PDY}/${cyc}/obs"
declare -rx COMOUT_CHEM_BMAT="${ROTDIR}/${RUN}.${PDY}/${cyc}/analysis/chem/bmatrix"
declare -rx COMIN_ATMOS_RESTART="${ROTDIR}/${RUN}.${PDY}/${cyc}/model/atmos/restart"
declare -rx COMOUT_CONF="${ROTDIR}/${RUN}.${PDY}/${cyc}/conf"

mkdir -p "${COMOUT_CHEM_BMAT}"
mkdir -p "${COMOUT_CONF}"
Expand Down
8 changes: 3 additions & 5 deletions dev/jobs/JGDAS_ATMOS_CHGRES_FORENKF
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ export DO_CALC_ANALYSIS=${DO_CALC_ANALYSIS:-"YES"}
export APREFIX="${RUN/enkf/}.t${cyc}z."
export APREFIX_ENS="${RUN}.t${cyc}z."

RUN=${RUN/enkf/} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_HISTORY:COM_ATMOS_HISTORY_TMPL \
COMOUT_ATMOS_HISTORY:COM_ATMOS_HISTORY_TMPL
declare -rx COMIN_ATMOS_HISTORY="${ROTDIR}/${RUN/enkf/}.${PDY}/${cyc}/model/atmos/history"
declare -rx COMOUT_ATMOS_HISTORY="${ROTDIR}/${RUN/enkf/}.${PDY}/${cyc}/model/atmos/history"

MEMDIR="mem001" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_HISTORY_MEM:COM_ATMOS_HISTORY_TMPL
declare -rx COMIN_ATMOS_HISTORY_MEM="${ROTDIR}/${RUN}.${PDY}/${cyc}/mem001/model/atmos/history"

###############################################################
# Run relevant script
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGDAS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export DBN_ALERT_TYPE=${DBN_ALERT_TYPE:-GDAS_GEMPAK}
# Define COM directories
##############################################
for grid in 0p25 1p00; do
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_GRID_TMPL"
declare -rx "COMIN_ATMOS_GRIB_${grid}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/${grid}"
done

for grid in 0p25 1p00; do
prod_dir="COMOUT_ATMOS_GEMPAK_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_${grid}:COM_ATMOS_GEMPAK_TMPL"
declare -rx "COMOUT_ATMOS_GEMPAK_${grid}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/${grid}"

if [[ ! -d "${!prod_dir}" ]]; then
mkdir -m 775 -p "${!prod_dir}"
Expand Down
6 changes: 3 additions & 3 deletions dev/jobs/JGDAS_ATMOS_GEMPAK_META_NCDC
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export DBN_ALERT_TYPE=GDAS_METAFILE
##############################################
# Define COM directories
##############################################
GRID=1p00 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMIN_ATMOS_GEMPAK_1p00:COM_ATMOS_GEMPAK_TMPL"
declare -rx COMIN_ATMOS_GEMPAK_1p00="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/1p00"

GRID="meta" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_META:COM_ATMOS_GEMPAK_TMPL"
declare -rx COMOUT_ATMOS_GEMPAK_META="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/meta"
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 "COMOUT_ATMOS_GEMPAK_GIF:COM_ATMOS_GEMPAK_TMPL"
declare -rx COMOUT_ATMOS_GEMPAK_GIF="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/gif"
if [[ ! -d "${COMOUT_ATMOS_GEMPAK_GIF}" ]]; then
mkdir -m 775 -p "${COMOUT_ATMOS_GEMPAK_GIF}"
fi
Expand Down
6 changes: 2 additions & 4 deletions dev/jobs/JGDAS_ATMOS_VERFOZN
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ export gcyc=${GDATE:8:2}
#---------------------------------------------
# OZN_TANKDIR - WHERE OUTPUT DATA WILL RESIDE
#
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_ATMOS_OZNMON:COM_ATMOS_OZNMON_TMPL
declare -rx COMIN_ATMOS_ANALYSIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/analysis/atmos"
declare -rx COMOUT_ATMOS_OZNMON="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/oznmon"

export oznstat="${COMIN_ATMOS_ANALYSIS}/gdas.t${cyc}z.oznstat.tar"
export TANKverf_ozn=${TANKverf_ozn:-${COMOUT_ATMOS_OZNMON}}
Expand Down
9 changes: 3 additions & 6 deletions dev/jobs/JGDAS_ATMOS_VERFRAD
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ export gcyc=${GDATE:8:2}
# COMOUT - WHERE GSI OUTPUT RESIDES
# TANKverf - WHERE OUTPUT DATA WILL RESIDE
#############################################
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_ATMOS_RADMON:COM_ATMOS_RADMON_TMPL
YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \
COMIN_ATMOS_RADMON_PREV:COM_ATMOS_RADMON_TMPL
declare -rx COMIN_ATMOS_ANALYSIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/analysis/atmos"
declare -rx COMOUT_ATMOS_RADMON="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/radmon"
declare -rx COMIN_ATMOS_RADMON_PREV="${ROTDIR}/${RUN}.${gPDY}/${gcyc}/products/atmos/radmon"

export biascr="${COMIN_ATMOS_ANALYSIS}/gdas.t${cyc}z.abias.txt"
export radstat="${COMIN_ATMOS_ANALYSIS}/gdas.t${cyc}z.radstat.tar"
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGDAS_FIT2OBS
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ vcyc=${CDATE:8:2}

# These are used by fit2obs, so we can't change them to the standard COM variable names
# shellcheck disable=SC2153
YMD=${vday} HH=${vcyc} declare_from_tmpl -rx COMIN_ANALYSIS:COM_ATMOS_ANALYSIS_TMPL
RUN=${RUN/enkf/} YMD=${vday} HH=${vcyc} declare_from_tmpl -rx COMIN_OBS:COM_OBS_TMPL
declare -rx COMIN_ANALYSIS="${ROTDIR}/${RUN}.${vday}/${vcyc}/analysis/atmos"
declare -rx COMIN_OBS="${ROTDIR}/${RUN/enkf/}.${vday}/${vcyc}/obs"

export COM_VRFYARCH=${COM_VRFYARCH:-${ROTDIR}/vrfyarch}

Expand Down
6 changes: 2 additions & 4 deletions dev/jobs/JGEFS_WAVE_STAT
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ source "${USHgfs}/wave_domain_grid.sh"
for grid in ${wavepostGRD}; do
process_grdID "${grid}"
prod_dir_grid="COMOUT_WAVE_GRID_${grid}"
MEMDIR="ensstat" GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
"${prod_dir_grid}:COM_WAVE_GRID_TMPL"
declare -rx "${prod_dir_grid}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/ensstat/products/wave/gridded"
if [[ ! -d "${!prod_dir_grid}" ]]; then
mkdir -m 775 -p "${!prod_dir_grid}"
fi
done
MEMDIR="ensstat" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_WAVE_STATION_ENS:COM_WAVE_STATION_TMPL
declare -rx COMOUT_WAVE_STATION_ENS="${ROTDIR}/${RUN}.${PDY}/${cyc}/ensstat/products/wave/station"
if [[ ! -d "${COMOUT_WAVE_STATION_ENS}" ]]; then
mkdir -m 775 -p "${COMOUT_WAVE_STATION_ENS}"
fi
Expand Down
3 changes: 1 addition & 2 deletions dev/jobs/JGEFS_WAVE_STAT_PNT
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "wave_stat_pnt" -c "base wave wave_sta

# Set COM Paths

MEMDIR="ensstat" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_WAVE_STATION_ENS:COM_WAVE_STATION_TMPL
declare -rx COMOUT_WAVE_STATION_ENS="${ROTDIR}/${RUN}.${PDY}/${cyc}/ensstat/products/wave/station"
if [[ ! -d "${COMOUT_WAVE_STATION_ENS}" ]]; then
mkdir -m 775 -p "${COMOUT_WAVE_STATION_ENS}"
fi
Expand Down
6 changes: 2 additions & 4 deletions dev/jobs/JGFS_ATMOS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ export COMPONENT="atmos"
# Define COM directories
##############################################

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_ATMOS_WMO:COM_ATMOS_WMO_TMPL
GRID="0p25" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
declare -rx COMOUT_ATMOS_WMO="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/wmo"
declare -rx COMIN_ATMOS_GRIB_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p25"

if [[ ! -d "${COMOUT_ATMOS_WMO}" ]]; then
mkdir -m 775 -p "${COMOUT_ATMOS_WMO}"
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGFS_ATMOS_CYCLONE_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export cmodel=${RUN}
##############################################
# Define COM directories
##############################################
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT_ATMOS_GENESIS:COM_ATMOS_GENESIS_TMPL
YMD=${PDY} HH=${cyc} GRID="0p25" declare_from_tmpl -rx COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
declare -rx COMOUT_ATMOS_GENESIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/cyclone/genesis_vital"
declare -rx COMIN_ATMOS_GRIB_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p25"

# The following variables are used by the tracker scripts which are outside
# of global-workflow and therefore can't be standardized at this time
Expand Down
8 changes: 3 additions & 5 deletions dev/jobs/JGFS_ATMOS_CYCLONE_TRACKER
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ export COMPONENT="atmos"
##############################################
# Define COM and Data directories
##############################################
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_ATMOS_TRACK:COM_ATMOS_TRACK_TMPL \
COMIN_ATMOS_GENESIS:COM_ATMOS_GENESIS_TMPL
YMD=${PDY} HH=${cyc} GRID="0p25" declare_from_tmpl -rx \
COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
declare -rx COMOUT_ATMOS_TRACK="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/cyclone/tracks"
declare -rx COMIN_ATMOS_GENESIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/cyclone/genesis_vital"
declare -rx COMIN_ATMOS_GRIB_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p25"

if [[ ! -d "${COMOUT_ATMOS_TRACK}" ]]; then mkdir -p "${COMOUT_ATMOS_TRACK}"; fi

Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGFS_ATMOS_FBWIND
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export COMPONENT="atmos"
# Define COM directories
##############################################

GRID="0p25" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT:COM_ATMOS_WMO_TMPL
declare -rx COMIN_ATMOS_GRIB_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p25"
declare -rx COMOUT="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/wmo"
if [[ ! -d "${COMOUT}" ]]; then
mkdir -m 775 -p "${COMOUT}"
fi
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGFS_ATMOS_FSU_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "genesis_fsu" -c "base genesis_fsu"
##############################################
# Define COM and Data directories
##############################################
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT_ATMOS_GENESIS:COM_ATMOS_GENESIS_TMPL
YMD=${PDY} HH=${cyc} GRID="0p25" declare_from_tmpl -rx COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
declare -rx COMOUT_ATMOS_GENESIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/cyclone/genesis_vital"
declare -rx COMIN_ATMOS_GRIB_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p25"

# The following variables are used by the tracker scripts which are outside
# of global-workflow and therefore can't be standardized at this time
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGFS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export DO_HD_PGRB=${DO_HD_PGRB:-YES}
# Define COM directories
##############################################
for grid in 0p25 0p50 1p00; do
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMIN_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_GRID_TMPL"
declare -rx "COMIN_ATMOS_GRIB_${grid}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/${grid}"
done

for grid in 1p00 0p50 0p25 40km 35km_atl 35km_pac; do
prod_dir="COMOUT_ATMOS_GEMPAK_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_${grid}:COM_ATMOS_GEMPAK_TMPL"
declare -rx "COMOUT_ATMOS_GEMPAK_${grid}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/${grid}"

if [[ ! -d "${!prod_dir}" ]]; then
mkdir -m 775 -p "${!prod_dir}"
Expand Down
4 changes: 2 additions & 2 deletions dev/jobs/JGFS_ATMOS_GEMPAK_META
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export COMINukmet=${COMINukmet:-$(compath.py "${envir}/ukmet/${ukmet_ver}")/ukme
export COMINecmwf=${COMINecmwf:-$(compath.py "${envir}/ecmwf/${ecmwf_ver}")/ecmwf}
export COMINnam=${COMINnam:-$(compath.py "${envir}/nam/${nam_ver}")/nam}

GRID=1p00 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMIN_ATMOS_GEMPAK_1p00:COM_ATMOS_GEMPAK_TMPL"
declare -rx COMIN_ATMOS_GEMPAK_1p00="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/1p00"

GRID="meta" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_META:COM_ATMOS_GEMPAK_TMPL"
declare -rx COMOUT_ATMOS_GEMPAK_META="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/meta"
mkdir -m 775 -p "${COMOUT_ATMOS_GEMPAK_META}"

########################################################
Expand Down
8 changes: 4 additions & 4 deletions dev/jobs/JGFS_ATMOS_GEMPAK_NCDC_UPAPGIF
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ export COMPONENT="atmos"
##############################################
# Define COM directories
##############################################
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 -rx COMIN_OBS="${ROTDIR}/${RUN}.${PDY}/${cyc}/obs"
declare -rx COMIN_ATMOS_GEMPAK_1p00="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/1p00"

# Declare COMOUT_ATMOS_GEMPAK_GIF and COMOUT_ATMOS_GEMPAK_UPPER_AIR
for grid in gif upper_air; do
_GRID="${grid^^}"
gempak_dir="COMOUT_ATMOS_GEMPAK_${_GRID}"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "${gempak_dir}:COM_ATMOS_GEMPAK_TMPL"
declare -rx "${gempak_dir}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/${grid}"
if [[ ! -d "${!gempak_dir}" ]]; then mkdir -m 775 -p "${!gempak_dir}"; fi
done

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT_ATMOS_WMO:COM_ATMOS_WMO_TMPL
declare -rx COMOUT_ATMOS_WMO="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/wmo"
if [[ ! -d "${COMOUT_ATMOS_WMO}" ]]; then mkdir -m 775 -p "${COMOUT_ATMOS_WMO}"; fi

export pgmout=OUTPUT.$$
Expand Down
6 changes: 4 additions & 2 deletions dev/jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ export EXT=""
##############################################
# Define COM directories
##############################################
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT_ATMOS_GOES:COM_ATMOS_GOES_TMPL
GRID=0p25 YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "COMOUT_ATMOS_GEMPAK_0p25:COM_ATMOS_GEMPAK_TMPL"
# shellcheck disable=SC2153
declare -rx COMIN_ATMOS_GOES="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/goes_sim"
# shellcheck disable=SC2153
declare -rx COMOUT_ATMOS_GEMPAK_0p25="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/0p25"
if [[ ! -d "${COMOUT_ATMOS_GEMPAK_0p25}" ]]; then
mkdir -m 775 -p "${COMOUT_ATMOS_GEMPAK_0p25}"
fi
Expand Down
8 changes: 3 additions & 5 deletions dev/jobs/JGFS_ATMOS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}
# Define COM directories
##############################################

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_MASTER:COM_ATMOS_MASTER_TMPL \
COMOUT_ATMOS_GOES:COM_ATMOS_GOES_TMPL
GRID="0p50" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_GRIB_0p50:COM_ATMOS_GRIB_GRID_TMPL
declare -rx COMIN_ATMOS_MASTER="${ROTDIR}/${RUN}.${PDY}/${cyc}/model/atmos/master"
declare -rx COMOUT_ATMOS_GOES="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/goes_sim"
declare -rx COMIN_ATMOS_GRIB_0p50="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/0p50"

mkdir -m 775 -p "${COMOUT_ATMOS_GOES}"

Expand Down
11 changes: 5 additions & 6 deletions dev/jobs/JGFS_ATMOS_POSTSND
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "postsnd" -c "base postsnd"
# Define COM Directories
##############################

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_ATMOS_HISTORY:COM_ATMOS_HISTORY_TMPL \
COMIN_ATMOS_BUFR:COM_ATMOS_BUFR_TMPL \
COMOUT_ATMOS_BUFR:COM_ATMOS_BUFR_TMPL \
COMOUT_ATMOS_WMO:COM_ATMOS_WMO_TMPL \
COMOUT_ATMOS_GEMPAK:COM_ATMOS_GEMPAK_TMPL
declare -rx COMIN_ATMOS_HISTORY="${ROTDIR}/${RUN}.${PDY}/${cyc}/model/atmos/history"
declare -rx COMIN_ATMOS_BUFR="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/bufr"
declare -rx COMOUT_ATMOS_BUFR="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/bufr"
declare -rx COMOUT_ATMOS_WMO="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/wmo"
declare -rx COMOUT_ATMOS_GEMPAK="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/gempak/"

if [[ ! -d "${COMOUT_ATMOS_BUFR}" ]]; then
mkdir -p "${COMOUT_ATMOS_BUFR}"
Expand Down
2 changes: 1 addition & 1 deletion dev/jobs/JGFS_ATMOS_VERIFICATION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export CDATE=${PDY}${cyc}
# shellcheck disable=SC2041
for grid in '1p00'; do
prod_dir="COM_ATMOS_GRIB_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "${prod_dir}:COM_ATMOS_GRIB_GRID_TMPL"
declare -rx "${prod_dir}"="${ROTDIR}/${RUN}.${PDY}/${cyc}/products/atmos/grib2/${grid}"
done

# TODO: If none of these are on, why are we running this job?
Expand Down
7 changes: 3 additions & 4 deletions dev/jobs/JGLOBAL_AERO_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ export PYTHONPATH
##############################################

# Generate COM variables from templates
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_CHEM_ANALYSIS:COM_CHEM_ANALYSIS_TMPL \
COMOUT_CONF:COM_CONF_TMPL \
COMOUT_ATMOS_RESTART:COM_ATMOS_RESTART_TMPL
declare -rx COMOUT_CHEM_ANALYSIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/analysis/chem"
declare -rx COMOUT_CONF="${ROTDIR}/${RUN}.${PDY}/${cyc}/conf"
declare -rx COMOUT_ATMOS_RESTART="${ROTDIR}/${RUN}.${PDY}/${cyc}/model/atmos/restart"

mkdir -m 755 -p "${COMOUT_CHEM_ANALYSIS}"
mkdir -m 755 -p "${COMOUT_ATMOS_RESTART}"
Expand Down
14 changes: 6 additions & 8 deletions dev/jobs/JGLOBAL_AERO_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ GDUMP="${GDUMP/gcafs/gcdas}"
##############################################

# Generate COM variables from templates
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_OBS:COM_OBS_TMPL \
COMOUT_CHEM_ANALYSIS:COM_CHEM_ANALYSIS_TMPL

RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \
COMIN_ATMOS_RESTART_PREV:COM_ATMOS_RESTART_TMPL \
COMIN_CHEM_BMAT_PREV:COM_CHEM_BMAT_TMPL \
COMIN_CHEM_ANALYSIS_PREV:COM_CHEM_ANALYSIS_TMPL
declare -rx COMIN_OBS="${ROTDIR}/${RUN}.${PDY}/${cyc}/obs"
declare -rx COMOUT_CHEM_ANALYSIS="${ROTDIR}/${RUN}.${PDY}/${cyc}/analysis/chem"

declare -rx COMIN_ATMOS_RESTART_PREV="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/model/atmos/restart"
declare -rx COMIN_CHEM_BMAT_PREV="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/analysis/chem/bmatrix"
declare -rx COMIN_CHEM_ANALYSIS_PREV="${ROTDIR}/${GDUMP}.${gPDY}/${gcyc}/analysis/chem"

###############################################################
# Run relevant script
Expand Down
Loading
Loading