Skip to content

Commit

Permalink
Replace non-gfs USH* variables with USHgfs in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Feb 27, 2024
1 parent dd22232 commit 8c1dcdb
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 41 deletions.
8 changes: 4 additions & 4 deletions scripts/exgdas_atmos_gempak_gif_ncdc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source "$HOMEgfs/ush/preamble.sh"

cd $DATA

export NTS=$USHgempak/restore
export NTS=${HOMEgfs}/gempak/ush/restore

if [ $MODEL = GDAS ]
then
Expand Down Expand Up @@ -47,9 +47,9 @@ then

if [ $cyc -eq 00 -o $cyc -eq 12 ]
then
$USHgempak/gempak_${RUN}_f${fhr}_gif.sh
if [ ! -f $USHgempak/gempak_${RUN}_f${fhr}_gif.sh ] ; then
echo "WARNING: $USHgempak/gempak_${RUN}_f${fhr}_gif.sh FILE is missing"
${HOMEgfs}/gempak/ush/gempak_${RUN}_f${fhr}_gif.sh
if [ ! -f ${HOMEgfs}/gempak/ush/gempak_${RUN}_f${fhr}_gif.sh ] ; then
echo "WARNING: ${HOMEgfs}/gempak/ush/gempak_${RUN}_f${fhr}_gif.sh FILE is missing"
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions scripts/exgfs_atmos_gempak_gif_ncdc_skew_t.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source "$HOMEgfs/ush/preamble.sh"

cd $DATA

export NTS=$USHgempak/restore
export NTS=${HOMEgfs}/gempak/ush/restore

if [ $MODEL = GDAS -o $MODEL = GFS ]
then
Expand Down Expand Up @@ -48,7 +48,7 @@ then

# if [ $cyc -eq 00 -o $cyc -eq 12 ]
#then
$USHgempak/gempak_${RUN}_f${fhr}_gif.sh
${HOMEgfs}/gempak/ush/gempak_${RUN}_f${fhr}_gif.sh
#fi

done
Expand Down
9 changes: 4 additions & 5 deletions scripts/exgfs_atmos_postsnd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# 9) 2019-12-18 Guang Ping Lou generalizing to reading in NetCDF or nemsio
################################################################

source "$HOMEgfs/ush/preamble.sh"
source "${HOMEgfs}/ush/preamble.sh"

cd $DATA

Expand Down Expand Up @@ -88,8 +88,7 @@ export FINT=$NINT1
if [ $FEND -gt $NEND1 ]; then
export FINT=$NINT3
fi
## $USHbufrsnd/gfs_bufr.sh
$USHbufrsnd/gfs_bufr.sh
${USHgfs}/gfs_bufr.sh

export FSTART=$FEND
done
Expand All @@ -115,7 +114,7 @@ fi
########################################
rm -rf poe_col
for (( m = 1; m <10 ; m++ )); do
echo "sh ${USHbufrsnd}/gfs_sndp.sh ${m} " >> poe_col
echo "sh ${USHgfs}/gfs_sndp.sh ${m} " >> poe_col
done

if [[ ${CFP_MP:-"NO"} == "YES" ]]; then
Expand All @@ -129,7 +128,7 @@ chmod +x cmdfile

${APRUN_POSTSNDCFP} cmdfile

sh "${USHbufrsnd}/gfs_bfr2gpk.sh"
sh "${USHgfs}/gfs_bfr2gpk.sh"


############## END OF SCRIPT #######################
4 changes: 2 additions & 2 deletions scripts/exgfs_wave_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ source "${HOMEgfs}/ush/preamble.sh"

[[ ! -d "${COM_WAVE_PREP}" ]] && mkdir -m 775 -p "${COM_WAVE_PREP}"
if [ ${CFP_MP:-"NO"} = "YES" ]; then
echo "$nmoddef $USHwave/wave_grid_moddef.sh $grdID > $grdID.out 2>&1" >> cmdfile
echo "$nmoddef ${USHgfs}/wave_grid_moddef.sh $grdID > $grdID.out 2>&1" >> cmdfile
else
echo "$USHwave/wave_grid_moddef.sh $grdID > $grdID.out 2>&1" >> cmdfile
echo "${USHgfs}/wave_grid_moddef.sh $grdID > $grdID.out 2>&1" >> cmdfile
fi

nmoddef=$(expr $nmoddef + 1)
Expand Down
8 changes: 4 additions & 4 deletions scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# --------------------------------------------------------------------------- #
# 0. Preparations

source "$HOMEgfs/ush/preamble.sh"
source "${HOMEgfs}/ush/preamble.sh"

# 0.a Basic modes of operation

Expand Down Expand Up @@ -279,7 +279,7 @@ source "$HOMEgfs/ush/preamble.sh"
for grdID in $waveinterpGRD
do
ymdh_int=$($NDATE -${WAVHINDH} $ymdh); dt_int=3600.; n_int=9999 ;
echo "$USHwave/wave_grid_interp_sbs.sh $grdID $ymdh_int $dt_int $n_int > grint_$grdID.out 2>&1" >> ${fcmdigrd}.${nigrd}
echo "${USHgfs}/wave_grid_interp_sbs.sh $grdID $ymdh_int $dt_int $n_int > grint_$grdID.out 2>&1" >> ${fcmdigrd}.${nigrd}
if [ "$DOGRB_WAV" = 'YES' ]
then
gribFL=\'$(echo ${OUTPARS_WAV})\'
Expand All @@ -296,7 +296,7 @@ source "$HOMEgfs/ush/preamble.sh"
wc_10m) GRDNAME='wcoast' ; GRDRES=0p16 ; GRIDNR=255 ; MODNR=11 ;;
ak_10m) GRDNAME='alaska' ; GRDRES=0p16 ; GRIDNR=255 ; MODNR=11 ;;
esac
echo "$USHwave/wave_grib2_sbs.sh $grdID $GRIDNR $MODNR $ymdh $fhr $GRDNAME $GRDRES $gribFL > grib_$grdID.out 2>&1" >> ${fcmdigrd}.${nigrd}
echo "${USHgfs}/wave_grib2_sbs.sh $grdID $GRIDNR $MODNR $ymdh $fhr $GRDNAME $GRDRES $gribFL > grib_$grdID.out 2>&1" >> ${fcmdigrd}.${nigrd}
fi
echo "${GRIBDATA}/${fcmdigrd}.${nigrd}" >> ${fcmdnow}
chmod 744 ${fcmdigrd}.${nigrd}
Expand Down Expand Up @@ -325,7 +325,7 @@ source "$HOMEgfs/ush/preamble.sh"
glo_500) GRDNAME='global' ; GRDRES=5p00 ; GRIDNR=255 ; MODNR=11 ;;
gwes_30m) GRDNAME='global' ; GRDRES=0p50 ; GRIDNR=255 ; MODNR=10 ;;
esac
echo "$USHwave/wave_grib2_sbs.sh $grdID $GRIDNR $MODNR $ymdh $fhr $GRDNAME $GRDRES $gribFL > grib_$grdID.out 2>&1" >> ${fcmdnow}
echo "${USHgfs}/wave_grib2_sbs.sh $grdID $GRIDNR $MODNR $ymdh $fhr $GRDNAME $GRDRES $gribFL > grib_$grdID.out 2>&1" >> ${fcmdnow}
done
fi

Expand Down
34 changes: 17 additions & 17 deletions scripts/exgfs_wave_post_pnt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# --------------------------------------------------------------------------- #
# 0. Preparations

source "$HOMEgfs/ush/preamble.sh"
source "${HOMEgfs}/ush/preamble.sh"

# 0.a Basic modes of operation

Expand Down Expand Up @@ -387,7 +387,7 @@ source "$HOMEgfs/ush/preamble.sh"
export dtspec=3600.
for buoy in $buoys
do
echo "$USHwave/wave_outp_spec.sh $buoy $ymdh spec $SPECDATA > $SPECDATA/spec_$buoy.out 2>&1" >> tmpcmdfile.$FH3
echo "${USHgfs}/wave_outp_spec.sh $buoy $ymdh spec $SPECDATA > $SPECDATA/spec_$buoy.out 2>&1" >> tmpcmdfile.$FH3
done
fi

Expand All @@ -396,7 +396,7 @@ source "$HOMEgfs/ush/preamble.sh"
export dtspec=3600.
for buoy in $buoys
do
echo "$USHwave/wave_outp_spec.sh $buoy $ymdh bull $SPECDATA > $SPECDATA/bull_$buoy.out 2>&1" >> tmpcmdfile.$FH3
echo "${USHgfs}/wave_outp_spec.sh $buoy $ymdh bull $SPECDATA > $SPECDATA/bull_$buoy.out 2>&1" >> tmpcmdfile.$FH3
done
fi

Expand Down Expand Up @@ -514,15 +514,15 @@ source "$HOMEgfs/ush/preamble.sh"
then
for buoy in $buoys
do
echo "$USHwave/wave_outp_cat.sh $buoy $FHMAX_WAV_PNT spec > ${CATOUTDIR}/spec_cat_$buoy.out 2>&1" >> cmdfile.bouy
echo "${USHgfs}/wave_outp_cat.sh $buoy $FHMAX_WAV_PNT spec > ${CATOUTDIR}/spec_cat_$buoy.out 2>&1" >> cmdfile.bouy
done
fi

if [ "$DOBLL_WAV" = 'YES' ]
then
for buoy in $buoys
do
echo "$USHwave/wave_outp_cat.sh $buoy $FHMAX_WAV_PNT bull > ${CATOUTDIR}/bull_cat_$buoy.out 2>&1" >> cmdfile.bouy
echo "${USHgfs}/wave_outp_cat.sh $buoy $FHMAX_WAV_PNT bull > ${CATOUTDIR}/bull_cat_$buoy.out 2>&1" >> cmdfile.bouy
done
fi

Expand Down Expand Up @@ -614,43 +614,43 @@ source "$HOMEgfs/ush/preamble.sh"
if [ ${CFP_MP:-"NO"} = "YES" ] && [ "$DOBLL_WAV" = "YES" ]; then
if [ "$DOBNDPNT_WAV" = YES ]; then
if [ "$DOSPC_WAV" = YES ]; then
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG ibp $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibp $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
fi
if [ "$DOBLL_WAV" = YES ]; then
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG ibpbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibpbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG ibpcbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibpcbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
fi
else
if [ "$DOSPC_WAV" = YES ]; then
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG spec $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG spec $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
fi
if [ "$DOBLL_WAV" = YES ]; then
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG bull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG bull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
echo "$nm $USHwave/wave_tar.sh $WAV_MOD_TAG cbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$nm ${USHgfs}/wave_tar.sh $WAV_MOD_TAG cbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
nm=$(( nm + 1 ))
fi
fi
else
if [ "$DOBNDPNT_WAV" = YES ]; then
if [ "$DOSPC_WAV" = YES ]; then
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG ibp $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibp $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
fi
if [ "$DOBLL_WAV" = YES ]; then
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG ibpbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG ibpcbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibpbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG ibpcbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
fi
else
if [ "$DOSPC_WAV" = YES ]; then
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG spec $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG spec $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
fi
if [ "$DOBLL_WAV" = YES ]; then
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG bull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "$USHwave/wave_tar.sh $WAV_MOD_TAG cbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG bull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
echo "${USHgfs}/wave_tar.sh $WAV_MOD_TAG cbull $Nb > ${WAV_MOD_TAG}_spec_tar.out 2>&1 " >> cmdtarfile
fi
fi
fi
Expand Down
1 change: 0 additions & 1 deletion scripts/exgfs_wave_prdgen_bulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ source "$HOMEgfs/ush/preamble.sh"
export DATA=${DATA:-${DATAROOT:?}/${job}.$$}
#export CODEwave=${CODEwave:-${PACKAGEROOT}/${NET}_code.${wave_code_ver}/${code_pkg}}
export EXECwave=${EXECwave:-$HOMEgfs/exec}
export USHwave=${USHwave:-$HOMEgfs/ush}
#export EXECcode=${EXECcode:-CODEwave/exec}

mkdir -p $DATA
Expand Down
1 change: 0 additions & 1 deletion scripts/exgfs_wave_prdgen_gridded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ source "$HOMEgfs/ush/preamble.sh"
export FHOUT_WAV=${FHOUT_WAV:-6} #from 72 to 180 inc=6
export FHOUT_HF_WAV=${FHOUT_HF_WAV:-3}
export maxtries=720
export USHwave=${USHwave:-$HOMEgfs/ush}
export cyc=${cyc:-00}
export cycle=${cycle:-t${cyc}z}
export pgmout=OUTPUT.$$
Expand Down
6 changes: 3 additions & 3 deletions scripts/exgfs_wave_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ source "$HOMEgfs/ush/preamble.sh"
if [ "${RUNMEM}" = "-1" ] || [ "${WW3ICEIENS}" = "T" ] || [ "$waveMEMB" = "00" ]
then

$USHwave/wave_prnc_ice.sh > wave_prnc_ice.out
${USHgfs}/wave_prnc_ice.sh > wave_prnc_ice.out
ERR=$?

if [ -d ice ]
Expand Down Expand Up @@ -389,10 +389,10 @@ source "$HOMEgfs/ush/preamble.sh"
fi

if [ ${CFP_MP:-"NO"} = "YES" ]; then
echo "$nm $USHwave/wave_prnc_cur.sh $ymdh_rtofs $curfile $fhr_rtofs $FLGFIRST > cur_$ymdh_rtofs.out 2>&1" >> cmdfile
echo "$nm ${USHgfs}/wave_prnc_cur.sh $ymdh_rtofs $curfile $fhr_rtofs $FLGFIRST > cur_$ymdh_rtofs.out 2>&1" >> cmdfile
nm=$(expr $nm + 1)
else
echo "$USHwave/wave_prnc_cur.sh $ymdh_rtofs $curfile $fhr_rtofs $FLGFIRST > cur_$ymdh_rtofs.out 2>&1" >> cmdfile
echo "${USHgfs}/wave_prnc_cur.sh $ymdh_rtofs $curfile $fhr_rtofs $FLGFIRST > cur_$ymdh_rtofs.out 2>&1" >> cmdfile
fi

if [ "${FLGFIRST}" = "T" ] ; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/exglobal_atmos_tropcy_qc_reloc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if [ "$PROCESS_TROPCY" = 'YES' ]; then

#echo $PDY

${USHSYND:-$HOMEgfs/ush}/syndat_qctropcy.sh $cdate10
${USHgfs}/syndat_qctropcy.sh $cdate10
errsc=$?
if [ "$errsc" -ne '0' ]; then
echo "syndat_qctropcy.sh failed. exit"
Expand Down Expand Up @@ -95,7 +95,7 @@ if [ "$DO_RELOCATE" = 'YES' ]; then
###################################################

export MP_LABELIO=${MP_LABELIO:-yes}
$USHRELO/tropcy_relocate.sh $cdate10
${USHgfs}/tropcy_relocate.sh $cdate10
errsc=$?

[ "$errsc" -ne '0' ] && exit $errsc
Expand Down

0 comments on commit 8c1dcdb

Please sign in to comment.