Skip to content

Commit

Permalink
Partial fixes for the waveawipsbulls job
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Jan 14, 2025
1 parent ecdb3c2 commit d4d1e59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions parm/config/gfs/config.waveawipsbulls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ echo "BEGIN: config.waveawipsbulls"
# Get task specific resources
. $EXPDIR/config.resources waveawipsbulls

export DBNROOT=/dev/null

echo "END: config.waveawipsbulls"
12 changes: 6 additions & 6 deletions scripts/exgfs_wave_prdgen_bulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ source "${USHgfs}/preamble.sh"
echo ' Looping over buoys ... \n'

for bull in $bulls; do
fname="${RUNwave}.$bull.cbull"
fname="${RUNwave}.${bull}.cbull"
oname="awipsbull.$bull.$cycle.${RUNwave}"
headr=$(grep "b${bull}=" awipsbull.data | sed 's/=/ /g' | awk '{ print $3}')
echo " Processing $bull ($headr $oname) ..."

if [ -z "$headr" ] || [ ! -s $fname ]; then
if [[ -z "${headr}" ]] || [[ ! -s "${fname}" ]]; then
set_trace
msg="ABNORMAL EXIT: MISSING BULLETING INFO"
msg="ABNORMAL EXIT: MISSING BULLETIN INFO"
set +x
echo ' '
echo '******************************************** '
echo '*** FATAL ERROR : MISSING BULLETING INFO *** '
echo '*** FATAL ERROR : MISSING BULLETIN INFO *** '
echo '******************************************** '
echo ' '
echo $msg
Expand All @@ -177,7 +177,7 @@ source "${USHgfs}/preamble.sh"
-p "${COMOUT_WAVE_WMO}" -s "NO" -o "${oname}" > formbul.out 2>&1
OK=$?

if [ "$OK" != '0' ] || [ ! -f $oname ]; then
if [[ ${OK} -ne 0 ]] || [[ ! -f "${oname}" ]]; then
set_trace
cat formbul.out
msg="ABNORMAL EXIT: ERROR IN formbul"
Expand All @@ -194,7 +194,7 @@ source "${USHgfs}/preamble.sh"
exit $err
fi

cat $oname >> awipsbull.$cycle.${RUNwave}
cat "${oname}" >> "awipsbull.$cycle.${RUNwave}"

done

Expand Down

0 comments on commit d4d1e59

Please sign in to comment.