# --- 08/05/96 -------- EXRW5 SCRIPT ----------------------------
#
set +x

#  Document the HISTORY of script modifications

echo  "REVISED: Monday  Aug  5,  1996  - standardize and  "
echo  "                                - add SMS hooks"
echo  "REVISED: 30 July 1998 - Removed definition of PDY, this is"
echo  "                        now done in the J-job."
echo  "REVISED: Friday  Feb. 12, 1999  - add call to util script"
echo  "                                  exrdshpmpc which dumps"
echo  "                                  marine data for MPC to QC"
echo  " 08 MAR 2000 - Converted to IBM-SP."
echo " " 
echo '------------------------------------------------------'
echo "      `date`      "
echo "     JOB WWRW5$HOUR   CYCLE TIME IS  ... $cycle"
echo ' '
echo ' $VARIABLE info for this execution:'
echo " Processing executable environment is ............ $envir"
echo " Temporary processing file directory is .......... $DATA"
echo " unique machine processing id is ................. $pid"
echo "________________________________________________"
set -xa
 
cd $DATA

# Run exrwdump.sh to dump synopitc,metar,ships,dbuoy,mbuoy, and lcman data.
$utilities/exrwdump.sh $SFCHOUR

# Run exrwdump.sh to dump synopitc,metar,ships,dbuoy,mbuoy, and lcman data.
$utilities/exrwdump.sh $cyc

# run the 3-hourly aviation weather depiction charts for afos only.
$utilities/exwxdep.sh $cyc

if test ${cyc} -ne '11' -a ${cyc} -ne '23'
then
#  Run exrdshpmpc.sh to dump marine data for MPC to quality control
#  note:  this script dumps data for 00Z, 06Z, 12Z, or 18Z synoptic period
#  +/- 3 hours from start of synoptic period.
  $utilities/exrdshpmpc.sh $MAPHOUR
fi

msg='JOB COMPLETED NORMALLY'
postmsg "$jlogfile" "$msg"

set +x
echo " ***** RW5 PROCESSING COMPLETED NORMALLY *****"
echo " ***** RW5 PROCESSING COMPLETED NORMALLY *****"
echo " ***** RW5 PROCESSING COMPLETED NORMALLY *****"
set -x

# ---------------END OF EXRW5 SCRIPT ----------------------------
