Skip to content

Commit

Permalink
modify scripts\exgfs_wave_post_gridded_sbs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Oct 29, 2024
1 parent 12619c9 commit b78ea08
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ export FORECAST_HOUR=$(( 10#${FHR3} ))
if [ "$ifirst" = 'yes' ]; then
echo "#!/bin/sh" > cmdmfile.$nfile
echo "$nfile cmdmfile.$nfile" >> cmdmprog
chmod 744 cmdmfile.$nfile
chmod 744 "cmdmfile.$nfile"
fi
echo $line >> cmdmfile.$nfile
echo $line >> "cmdmfile.$nfile"
nfile=$(( nfile + 1 ))
if [ $nfile -eq $NTASKS ]; then
if [ $nfile -eq "$NTASKS" ]; then
nfile=0
ifirst='no'
fi
Expand Down Expand Up @@ -392,15 +392,15 @@ export FORECAST_HOUR=$(( 10#${FHR3} ))
echo ' '
set_trace
err=4; export err;${errchk}
exit $err
exit "$err"
fi

rm -f out_grd.* # Remove large binary grid output files

cd $DATA

FHINCG=$(( DTFLD_WAV / 3600 ))
if [ $fhr = $fhrg ]
if [ "$fhr" = "$fhrg" ]
then
# Check if grib2 file created
ENSTAG=""
Expand All @@ -416,16 +416,16 @@ export FORECAST_HOUR=$(( 10#${FHR3} ))
echo ' '
set_trace
err=5; export err;${errchk}
exit $err
exit "$err"
fi
if [ $FHMAX_HF_WAV -gt 0 ] && [ $FHOUT_HF_WAV -gt 0 ] && [ $fhr -lt $FHMAX_HF_WAV ]; then
if [ $FHMAX_HF_WAV -gt 0 ] && [ $FHOUT_HF_WAV -gt 0 ] && [ "$fhr" -lt $FHMAX_HF_WAV ]; then
FHINCG=$FHOUT_HF_WAV
else
FHINCG=$FHOUT_WAV
fi
fhrg=$((fhr+FHINCG))
fi
echo $fhrg
echo "$fhrg"

fhr=$fhrg #loop with out_grd stride

Expand Down

0 comments on commit b78ea08

Please sign in to comment.