Skip to content

Commit

Permalink
Additional top level variable replacements in job scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Mar 6, 2024
1 parent e819bdf commit e652757
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export pgmout=OUTPUT.$$

########################################################
# Execute the script.
"${HOMEgfs}/scripts/exgfs_atmos_awips_20km_1p0deg.sh" "${fcsthrs}"
"${SCRgfs}/exgfs_atmos_awips_20km_1p0deg.sh" "${fcsthrs}"
export err=$?; err_chk
########################################################

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_AWIPS_G2
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export pgmout=OUTPUT.$$
#########################################################
mkdir -m 775 awips_g1
cd ${DATA}/awips_g1
${HOMEgfs}/scripts/exgfs_atmos_grib_awips.sh ${fcsthrs}
"${SCRgfs}/exgfs_atmos_grib_awips.sh" "${fcsthrs}"
export err=$?; err_chk

############################################
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_FBWIND
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mkdir -m 775 -p ${COMOUT} ${COMOUTwmo}

########################################################
# Execute the script.
${HOMEgfs}/scripts/exgfs_atmos_fbwind.sh
${SCRgfs}/exgfs_atmos_fbwind.sh
export err=$?;err_chk
########################################################

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mkdir -m 775 -p "${COM_ATMOS_GOES}"

#############################################################
# Execute the script
"${HOMEgfs}/scripts/exgfs_atmos_grib2_special_npoess.sh"
"${SCRgfs}/exgfs_atmos_grib2_special_npoess.sh"
export err=$?;err_chk
#############################################################

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_AERO_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mkdir -m 775 -p "${COM_CHEM_ANALYSIS}"
###############################################################
# Run relevant script

EXSCRIPT=${GDASAEROFINALPY:-${HOMEgfs}/scripts/exglobal_aero_analysis_finalize.py}
EXSCRIPT=${GDASAEROFINALPY:-${SCRgfs}/exglobal_aero_analysis_finalize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_AERO_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mkdir -m 775 -p "${COM_CHEM_ANALYSIS}"
###############################################################
# Run relevant script

EXSCRIPT=${GDASAEROINITPY:-${HOMEgfs}/scripts/exglobal_aero_analysis_initialize.py}
EXSCRIPT=${GDASAEROINITPY:-${SCRgfs}/exglobal_aero_analysis_initialize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_AERO_ANALYSIS_RUN
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "aeroanlrun" -c "base aeroanl aeroanlr
###############################################################
# Run relevant script

EXSCRIPT=${GDASAERORUNSH:-${HOMEgfs}/scripts/exglobal_aero_analysis_run.py}
EXSCRIPT=${GDASAERORUNSH:-${SCRgfs}/exglobal_aero_analysis_run.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMENS_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mkdir -m 755 -p "${COM_ATMOS_ANALYSIS_ENS}"
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMENSFINALPY:-${HOMEgfs}/scripts/exglobal_atmens_analysis_finalize.py}
EXSCRIPT=${GDASATMENSFINALPY:-${SCRgfs}/exglobal_atmens_analysis_finalize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMENS_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} generate_com -rx \
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMENSINITPY:-${HOMEgfs}/scripts/exglobal_atmens_analysis_initialize.py}
EXSCRIPT=${GDASATMENSINITPY:-${SCRgfs}/exglobal_atmens_analysis_initialize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMENS_ANALYSIS_RUN
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "atmensanlrun" -c "base atmensanl atme
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMENSRUNSH:-${HOMEgfs}/scripts/exglobal_atmens_analysis_run.py}
EXSCRIPT=${GDASATMENSRUNSH:-${SCRgfs}/exglobal_atmens_analysis_run.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMOS_POST_MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_HISTORY

########################################################
# Execute the script.
${HOMEgfs}/scripts/exglobal_atmos_pmgr.sh
${SCRgfs}/exglobal_atmos_pmgr.sh
########################################################

2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMOS_PRODUCTS
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export PREFIX="${RUN}.t${cyc}z."

###############################################################
# Run exglobal script
"${HOMEgfs}/scripts/exglobal_atmos_products.sh"
"${SCRgfs}/exglobal_atmos_products.sh"
status=$?
(( status != 0 )) && exit "${status}"

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMOS_UPP
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ ! -d ${COM_ATMOS_MASTER} ]]; then mkdir -m 775 -p "${COM_ATMOS_MASTER}"; f
###############################################################
# Run relevant exglobal script

"${HOMEgfs}/scripts/exglobal_atmos_upp.py"
"${SCRgfs}/exglobal_atmos_upp.py"
status=$?
(( status != 0 )) && exit "${status}"

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATM_ANALYSIS_FINALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mkdir -m 775 -p "${COM_ATMOS_ANALYSIS}"
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMFINALPY:-${HOMEgfs}/scripts/exglobal_atm_analysis_finalize.py}
EXSCRIPT=${GDASATMFINALPY:-${SCRgfs}/exglobal_atm_analysis_finalize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATM_ANALYSIS_INITIALIZE
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mkdir -m 775 -p "${COM_ATMOS_ANALYSIS}"
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMINITPY:-${HOMEgfs}/scripts/exglobal_atm_analysis_initialize.py}
EXSCRIPT=${GDASATMINITPY:-${SCRgfs}/exglobal_atm_analysis_initialize.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATM_ANALYSIS_RUN
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "atmanlrun" -c "base atmanl atmanlrun"
###############################################################
# Run relevant script

EXSCRIPT=${GDASATMRUNSH:-${HOMEgfs}/scripts/exglobal_atm_analysis_run.py}
EXSCRIPT=${GDASATMRUNSH:-${SCRgfs}/exglobal_atm_analysis_run.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATM_PREP_IODA_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ YMD=${PDY} HH=${cyc} generate_com -rx COM_OBS

###############################################################
# Run relevant script
EXSCRIPT=${BUFR2IODASH:-${HOMEgfs}/ush/run_bufr2ioda.py}
EXSCRIPT=${BUFR2IODASH:-${USHgfs}/run_bufr2ioda.py}
${EXSCRIPT} "${PDY}${cyc}" "${RUN}" "${DMPDIR}" "${PARMgfs}/gdas/bufr2ioda" "${COM_OBS}/"
status=$?
[[ ${status} -ne 0 ]] && (echo "FATAL ERROR: Error executing ${EXSCRIPT}, ABORT!"; exit "${status}")
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_CLEANUP
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "cleanup" -c "base cleanup"

"${HOMEgfs}/scripts/exglobal_cleanup.sh"
"${SCRgfs}/exglobal_cleanup.sh"
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_OCEANICE_PRODUCTS
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ YMD="${PDY}" HH="${cyc}" generate_com -rx "COM_${COMPONENT^^}_NETCDF"

###############################################################
# Run exglobal script
"${HOMEgfs}/scripts/exglobal_oceanice_products.py"
"${SCRgfs}/exglobal_oceanice_products.py"
status=$?
(( status != 0 )) && exit "${status}"

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_PREP_OCEAN_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush:${PYTHONPATH}
###############################################################
# Run relevant script

EXSCRIPT=${GDASPREPOCNOBSPY:-${HOMEgfs}/ush/exglobal_prep_ocean_obs.py}
EXSCRIPT=${GDASPREPOCNOBSPY:-${USHgfs}/exglobal_prep_ocean_obs.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_PREP_SNOW_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} generate_com -rx \

###############################################################
# Run relevant script
EXSCRIPT=${GDASSNOWPREPPY:-${HOMEgfs}/scripts/exglobal_prep_snow_obs.py}
EXSCRIPT=${GDASSNOWPREPPY:-${SCRgfs}/exglobal_prep_snow_obs.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && (echo "FATAL ERROR: Error executing ${EXSCRIPT}, ABORT!"; exit "${status}")
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_SNOW_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mkdir -m 775 -p "${COM_SNOW_ANALYSIS}" "${COM_CONF}"
###############################################################
# Run relevant script

EXSCRIPT=${SNOWANLPY:-${HOMEgfs}/scripts/exglobal_snow_analysis.py}
EXSCRIPT=${SNOWANLPY:-${SCRgfs}/exglobal_snow_analysis.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_STAGE_IC
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rCDUMP=${CDUMP}
export rCDUMP

# Execute the Script
"${HOMEgfs}/scripts/exglobal_stage_ic.sh"
"${SCRgfs}/exglobal_stage_ic.sh"

##########################################
# Remove the Temporary working directory
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ ! -d ${COM_WAVE_GEMPAK} ]]; then mkdir -p "${COM_WAVE_GEMPAK}"; fi

########################################################
# Execute the script.
${HOMEgfs}/scripts/exgfs_wave_nawips.sh
${SCRgfs}/exgfs_wave_nawips.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
###################################
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export wavempexec=${wavempexec:-"mpirun -n"}
export wave_mpmd=${wave_mpmd:-"cfp"}

# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_init.sh
${SCRgfs}/exgfs_wave_init.sh

##########################################
# Remove the Temporary working directory
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_POST_BNDPNT
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export DOBLL_WAV='NO' # Bulletin post
export DOBNDPNT_WAV='YES' # Do boundary points

# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_post_pnt.sh
${SCRgfs}/exgfs_wave_post_pnt.sh
err=$?
if [ ${err} -ne 0 ]; then
echo "FATAL ERROR: ex-script of GWES_POST failed!"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_POST_BNDPNTBLL
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export DOBLL_WAV='YES' # Bulletin post
export DOBNDPNT_WAV='YES' #boundary points

# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_post_pnt.sh
${SCRgfs}/exgfs_wave_post_pnt.sh
err=$?
if [ ${err} -ne 0 ]; then
echo "FATAL ERROR: ex-script of GFS_WAVE_POST_PNT failed!"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_POST_PNT
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export DOBNDPNT_WAV='NO' #not boundary points


# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_post_pnt.sh
${SCRgfs}/exgfs_wave_post_pnt.sh
err=$?
if [ ${err} -ne 0 ]; then
echo "FATAL ERROR: ex-script of GWES_POST failed!"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_POST_SBS
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export WAV_MOD_TAG=${RUN}wave${waveMEMB}
export CFP_VERBOSE=1

# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_post_gridded_sbs.sh
${SCRgfs}/exgfs_wave_post_gridded_sbs.sh
err=$?
if [ ${err} -ne 0 ]; then
echo "FATAL ERROR: ex-script of GWES_POST failed!"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_PRDGEN_BULLS
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [[ ! -d ${COM_WAVE_WMO} ]]; then mkdir -p "${COM_WAVE_WMO}"; fi
###################################
# Execute the Script

${HOMEgfs}/scripts/exgfs_wave_prdgen_bulls.sh
${SCRgfs}/exgfs_wave_prdgen_bulls.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_PRDGEN_GRIDDED
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mkdir -p "${COM_WAVE_WMO}"
###################################
# Execute the Script
###################################
${HOMEgfs}/scripts/exgfs_wave_prdgen_gridded.sh
${SCRgfs}/exgfs_wave_prdgen_gridded.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_WAVE_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ generate_com -rx COM_RTOFS
[[ ! -d ${COM_WAVE_PREP} ]] && mkdir -m 775 -p "${COM_WAVE_PREP}"

# Execute the Script
${HOMEgfs}/scripts/exgfs_wave_prep.sh
${SCRgfs}/exgfs_wave_prep.sh

##########################################
# Remove the Temporary working directory
Expand Down

0 comments on commit e652757

Please sign in to comment.