Skip to content

Commit

Permalink
Addressed reviewer requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywinterbottom-wxdev committed May 28, 2024
1 parent 3e8557a commit cbea5c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/exgfs_wave_nawips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pdsext=no
g2tbls=g2varswmo2.tbl
NAGRIB=nagrib2

sleep_interval=20
maxtries=15
fhcnt=${fstart}
while [ ${fhcnt} -le ${FHMAX_WAV} ]; do
Expand Down Expand Up @@ -72,7 +73,6 @@ while [ ${fhcnt} -le ${FHMAX_WAV} ]; do
esac
GRIBIN="${COM_WAVE_GRID}/${RUNwave}.${cycle}.${grdIDin}.f${fhr}.grib2"
GRIBIN_chk=${GRIBIN}.idx
sleep_inteval=20
if ! wait_for_file "${GRIBIN}" "${sleep_interval}" "${maxtries}"; then
msg="ABORTING waiting for ${GRIBIN}."
echo ' '
Expand Down
4 changes: 2 additions & 2 deletions scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ source "${USHgfs}/preamble.sh"
fhr=$FHMIN_WAV
fi
fhrg=$fhr
sleep_interval=10
iwaitmax=120 # Maximum loop cycles for waiting until wave component output file is ready (fails after max)
while [ $fhr -le $FHMAX_WAV ]; do

Expand All @@ -253,7 +254,6 @@ source "${USHgfs}/preamble.sh"
export GRDIDATA=${DATA}/output_$YMDHMS

# Gridded data (main part, need to be run side-by-side with forecast
sleep_interval=10
for wavGRD in "${waveGRD}"; do
gfile="${COM_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}"
if ! wait_for_file "${gfile}" "${sleep_interval}" "${iwaitmax}"; then
Expand All @@ -266,7 +266,7 @@ source "${USHgfs}/preamble.sh"
err=3; export err; "${errchk}"
exit "${err}"
fi
ln -s "${gfile}" "./out_grd.${wavGRD}"
${NLN} "${gfile}" "./out_grd.${wavGRD}"
done

if [ "$DOGRI_WAV" = 'YES' ]
Expand Down
4 changes: 2 additions & 2 deletions scripts/exgfs_wave_prdgen_gridded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ grids=${grids:-ak_10m at_10m ep_10m wc_10m glo_30m}
GRIBIN=$RUNwave.$cycle.$grdID.f${fhr}.clipped.grib2
GRIBIN_chk=$GRIBIN.idx

ln -s $GRIBIN gribfile.$grdID.f${fhr}
${NLN} $GRIBIN gribfile.$grdID.f${fhr}

#
# 1.d Input template files
parmfile=${PARMgfs}/wave/grib2_${RUNwave}.$grdOut.f${fhr}
if [ -f $parmfile ]; then
ln -s $parmfile awipsgrb.$grdID.f${fhr}
${NLN} $parmfile awipsgrb.$grdID.f${fhr}
else
echo '*** ERROR : NO template grib2_${RUNwave}.$grdID.f${fhr} *** '
echo "$RUNwave $grdID $fhr prdgen $date $cycle : GRIB template file missing." >> $wavelog
Expand Down

0 comments on commit cbea5c5

Please sign in to comment.