#!/bin/sh #========================================================================= # # DESCRIPTION: This unix korn shell script creates a POE script to create # the NHC tropical cyclone wind speed probabilities # # HISTORY: 03/08/12 J. Gross, created from awips_wind.sh # 04/07/27 J. Gross, adding POE processing to awips_prblty.sh # 01/17/07 C.Lauer, port to mist # 11/14/2012 A. Krautkramer, fix error with nslookup # 12/31/2012 A. Krautkramer, Transfer to WCOSS # Fix tocgrib2 call my changing XLFUNIT_ env vars to FORT # 04/12/2013 M. Sardi, Converted LoadLever to LSF syntax; Updated # 'is this production' test logic for WCOSS. # # 05/30/2013 M. DeMaria, grads turned on, but DBNET off. # prob_single_storm.x routine modified to fix # e-deck reader and update mc_prob routine to 2013 # version. dataio and related routines used by # prob_single_storm.x also updated. # 06/20/2013 M. Sardi, Corrected several WCOSS vs. CCS syntax # variances, including 'gawk' command; moved prod # vs. dev check to lsf_windprob.sh driver script. # 08/21/2013 S. Earle, Modified scripts to comply with production # implementation standards. # 10/15/2021 S. Stevenson, modified for WCOSS2 transition #============================================================================== date export PS4=' $SECONDS + ' set -x #################################### ## Specify NET and RUN Name and model ##################################### export NET=${NET:-wsp} export RUN=${RUN:-wsp} #################################### # obtain unique process id (pid) and make temp directory #################################### export DATA=${DATA:-${DATAROOT:?}/${jobid:?}} mkdir $DATA cd $DATA #################################### # Determine Job Output Name on System #################################### export pgmout="OUTPUT.$$" export cycle=${cycle:-t${cyc:?}z} #################################### # SENDECF - Flag Events on ECF # SENDCOM - Copy Files From TMPDIR to $COMOUT # SENDDBN - Issue DBNet Client Calls # SENDRZDM - Send output to ncorzdm #################################### export KEEPDATA=${KEEPDATA:-NO} export SENDECF=${SENDECF:-YES} export SENDCOM=${SENDCOM:-YES} export SENDDBN=${SENDDBN:-YES} export SENDDBN_NTC=${SENDDBN_NTC:-YES} export SENDRZDM=${SENDRZDM:-YES} export RZDMENVIR=${RZDMENVIR:-$envir} export ALERT_TYPE=${ALERT_TYPE:-} #################################### # Specify Execution Areas #################################### export EXECwsp=${EXECwsp:-$HOMEwsp/exec} export USHwsp=${USHwsp:-$HOMEwsp/ush} export SCRIPTwsp=${SCRIPTwsp:-$HOMEwsp/scripts} export FIXwsp=${FIXwsp:-$HOMEwsp/fix} export PARMwsp=${PARMwsp:-$HOMEwsp/parm} export UTILwsp=${UTILwsp:-$HOMEwsp/util} ############################## # Run setpdy and initialize PDY variables ############################## setpdy.sh . ./PDY ############################################## # Define COM directories ############################################## export NHCINROOT=${NHCINROOT:-${DCOMROOT?}/nhc/atcf} export NHCIN=${NHCIN:-${NHCINROOT}/zfst} export COMIN=${COMIN:-$(compath.py -v ${envir}/${NET}/${wsp_ver})/${RUN}.${PDY}} export COMOUT=${COMOUT:-$(compath.py -v -o ${NET}/${wsp_ver}/${RUN}.${PDY})} export PCOM=${PCOM:-${COMOUT?}/wmo} if [ "$PARATEST" == "YES" ] || [ "${EVAL}" == "YES" ];then echo "Parallel Production Test is Running Changing rzdmenvir to para" export RZDMENVIR=para else echo "Parallel Production Test is Not Running and rzdmenvir is set to $RZDMENVIR" fi mkdir -p -m 775 ${COMOUT} ${PCOM} env ################################################### # Execute the Script ################################################### ${SCRIPTwsp}/exnhc_windprob.sh export err=$?; err_chk ################################################## postmsg "${pgmout}" "$0 completed normally" if [ -e "${pgmout}" ] ; then cat ${pgmout} fi if [ -e "${errfile}" ] ; then cat ${errfile} fi if [ "${KEEPDATA^^}" != "YES" ]; then rm -rf $DATA fi date exit