# --- 08/05/96 -------- EXRW4 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 WWRW4$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

# Set up NCEP date-time to establish /com files

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

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

# Run 3 hourly aviation weather depiction chart for fax only.
$utilities/exwxdep.sh $cyc

if test ${cyc} -eq '01' -o ${cyc} -eq '13'
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 " ***** RW4 PROCESSING COMPLETED NORMALLY *****"
echo " ***** RW4 PROCESSING COMPLETED NORMALLY *****"
echo " ***** RW4 PROCESSING COMPLETED NORMALLY *****"
set -x

# ---------------END OF EXRW4 SCRIPT ----------------------------
