#!/bin/bash set -xa # #### 08/25/1999 ################### # SET SHELL PROCESSING VARIABLES # ################################### export PS4='$SECONDS + ' date ########################################################### # obtain unique process id (pid) and make temp directories ########################################################### export DATA=${DATA:-${DATAROOT}/${jobid}} mkdir $DATA cd $DATA export jlogfile=${jlogfile:-${DATA}/jlogfile.${jobid}} # Run setpdy and initialize PDY variables export cycle=${cycle:-t${cyc}z} setpdy.sh . ./PDY ################################################## # SENDECF - Flag Events on ecFLOW # SENDCOM - Copy Files From TMPDIR to $COMOUT # SENDDBN - Issue DBNet Client Calls ################################################## export SENDCOM=${SENDCOM:-YES} export SENDECF=${SENDECF:-YES} export SENDDBN=${SENDDBN:-YES} export GEMPAKhref=${GEMPAKhref:-$HOMEhref/gempak} export finc=1 export fend=48 export fstart=01 export DBN_ALERT_TYPE=${DBN_ALERT_TYPE:-HREF_GEMPAK} ############################### # Specify NET and RUN name ############################### export NET=${NET:-href} export RUN=${RUN:-href} export COMOUT=${COMOUT:-$(compath.py -o $NET/${href_ver})/${RUN}.${PDY}/gempak} export COMIN=${COMIN:-$(compath.py $envir/$NET/${href_ver})/${RUN}.${PDY}/ensprod} if [ ! -f $COMOUT ] ; then mkdir -p -m 775 $COMOUT fi export pgmout="OUTPUT.$$" env ################################################################# # Execute the script rm -f poescript echo "$HOMEhref/scripts/exhref_nawips.sh mean > $DATA/${NEST}_mean.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh pmmn > $DATA/${NEST}_pmmn.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh avrg > $DATA/${NEST}_avrg.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh prob > $DATA/${NEST}_prob.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh sprd > $DATA/${NEST}_sprd.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh eas > $DATA/${NEST}_eas.$$ " >>poescript echo "$HOMEhref/scripts/exhref_nawips.sh lpmm > $DATA/${NEST}_lpmm.$$ " >>poescript if [ ${NEST} = 'conus' ] then echo "$HOMEhref/scripts/exhref_nawips.sh ffri > $DATA/${NEST}_ffri.$$ " >>poescript fi chmod 775 ./poescript #mpiexec -n $NTASK -ppn $PTILE --cpu-bind verbose,core cfp ./poescript mpiexec -np $NTASK --cpu-bind verbose,depth cfp ./poescript export err=$?; err_chk cat $DATA/${NEST}_mean.$$ cat $DATA/${NEST}_pmmn.$$ cat $DATA/${NEST}_avrg.$$ cat $DATA/${NEST}_prob.$$ cat $DATA/${NEST}_sprd.$$ cat $DATA/${NEST}_eas.$$ cat $DATA/${NEST}_lpmm.$$ if [ ${NEST} = 'conus' ] then cat $DATA/${NEST}_ffri.$$ fi ################################################################# cd ${DATAROOT} if [ $KEEPDATA = NO ]; then rm -rf $DATA; fi date