Skip to content

Commit

Permalink
Script alert updates from NCO for wave downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA committed Dec 7, 2020
1 parent 069f266 commit be5f9ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion jobs/JGLOBAL_WAVE_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ date
set -xa
export PS4='$SECONDS + '

# JY - 10/29, move the block in the front, otherwise PDY is not defined for COMIN
export DATA=${DATA:-${DATAROOT}/${jobid:?}}
mkdir -p $DATA
cd $DATA
Expand Down Expand Up @@ -36,7 +37,7 @@ export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/$COMPONE
#export pid=$$
export pgmout="OUTPUT.$$"

export DBN_ALERT_TYPE=NFC_WAVEENS_GEMPAK
export DBN_ALERT_TYPE=GFS_WAVE_GEMPAK
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
Expand Down
2 changes: 1 addition & 1 deletion scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
iwait=0
for wavGRD in ${waveGRD} ; do
gfile=$COMIN/rundata/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}
while [ ! -s ${gfile} ]; do sleep 10; iwait=iwait+1; done
while [ ! -s ${gfile} ]; do sleep 10; let iwait=iwait+1; done
if [ $iwait -eq $iwaitmax ]; then
echo '*************************************************** '
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE out_grd.$grdID "
Expand Down
7 changes: 5 additions & 2 deletions ush/wave_grib2_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
cd $GRIBDATA
# postmsg "$jlogfile" "Making GRIB2 Files." # commented to reduce unnecessary output to jlogfile

alertName=`echo $RUN|tr [a-z] [A-Z]`

grdID=$1
gribDIR=${grdID}_grib
rm -rfd ${gribDIR}
Expand Down Expand Up @@ -238,8 +240,9 @@
echo " Alerting GRIB file as $COMOUT/gridded/${outfile}"
echo " Alerting GRIB index file as $COMOUT/gridded/${outfile}.idx"
[[ "$LOUD" = YES ]] && set -x
$DBNROOT/bin/dbn_alert MODEL WAVE_GRIB_GB2 $job $COMOUT/gridded/${outfile}
$DBNROOT/bin/dbn_alert MODEL WAVE_GRIB_GB2_WIDX $job $COMOUT/gridded/${outfile}.idx
# $DBNROOT/bin/dbn_alert MODEL WAVE_GRIB_GB2 $job $COMOUT/gridded/${outfile}
$DBNROOT/bin/dbn_alert MODEL ${alertName}_WAVE_GB2 $job $COMOUT/gridded/${outfile}
$DBNROOT/bin/dbn_alert MODEL ${alertName}_WAVE_GB2_WIDX $job $COMOUT/gridded/${outfile}.idx
fi


Expand Down
5 changes: 3 additions & 2 deletions ush/wave_tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
cd $DATA
postmsg "$jlogfile" "Making TAR FILE"

alertName=`echo $RUN|tr [a-z] [A-Z]`

set +x
echo ' '
Expand Down Expand Up @@ -205,14 +206,14 @@
exit 4
fi

if [ "$SENDDBN" = 'YES' ]
if [ "$SENDDBN" = 'YES' -a $type != "ibp" ]
then
set +x
echo ' '
echo " Alerting TAR file as $COMOUT/station/${file_name}"
echo ' '
[[ "$LOUD" = YES ]] && set -x
$DBNROOT/bin/dbn_alert MODEL OMBWAVE $job $COMOUT/station/${file_name}
$DBNROOT/bin/dbn_alert MODEL ${alertName}_WAVE_TAR $job $COMOUT/station/${file_name}
fi

# --------------------------------------------------------------------------- #
Expand Down

0 comments on commit be5f9ec

Please sign in to comment.