#!/bin/ksh set -xa # #### 08/25/1999 ################### # SET SHELL PROCESSING VARIABLES # ################################### export PS4='$SECONDS + ' date # # obtain unique process id (pid) and make temp directories # export pid=$$ export DATA=/tmpnwprd2/${job}.${pid} mkdir $DATA cd $DATA #################################### # File To Log Msgs #################################### if [ "$envir" = 'prod' ] || [ "$envir" = 'para' ] || [ "$envir" = 'test' ] then # NCO if [ $envir = "prod" ] then export jlogfile=/com/logs/jlogfiles/jlogfile.${job}.${pid} else export jlogfile=/com/logs/${envir}/jlogfile #export DBNROOT=/nwprod/spa_util/para_dbn export DBNROOT=/nwprod/spa_util/fakedbn fi else # DEV export jlogfile=/dev/null fi #################################### # Determine Job Output Name on System #################################### export outid="LL$job" export jobid="${outid}.o${pid}" export pgmout="OUTPUT.${pid}" export cycle=t${cyc}z #################################### # SENDSMS - Flag Events on SMS # SENDDBN - Issue DBNet Client Calls # SENDCOM - Copy files to /com directory #################################### export SENDCOM=YES export SENDSMS=YES export SENDDBN=YES # # Set up model and cycle specific variables # export NET=gens export RUN=gefs export fend=384 export finc=6 export fstart=06 export model=ensemble export GRIB= export EXT="" export DBN_ALERT_TYPE=GEFS_GEMPAK # # Now set up GEMPAK/NTRANS environment # . /nwprod/gempak/.gempak ######################### # Specify Execution Areas ######################### export HOMEnaefs=${HOMEnaefs:-/nw${envir}/naefs.${model_ver}} export EXECnaefs=${EXECnaefs:-$HOMEnaefs/exec} export FIXnaefs=${FIXnaefs:-$HOMEnaefs/fix} export USHnaefs=${USHnaefs:-$HOMEnaefs/ush} ################################### # Set up the UTILITIES ################################### export utilscript=/nwprod/util/ush export utilities=/nwprod/util/ush export utilexec=/nwprod/util/exec # Run setup to initialize working directory and utility scripts sh $utilscript/setup.sh # Run setpdy and initialize PDY variables sh $utilscript/setpdy.sh . PDY export COM=/com/${NET}/${envir} export COMIN_NDGD_PRCP=${COM}/${RUN}.${PDY}/${cyc}/ndgd_prcp export COMIN_PRCP=${COM}/${RUN}.${PDY}/${cyc}/prcp export COMOUT_PRCP=/com/nawips/${envir}/${RUN}.${PDY}/prcp export COMOUT_NDGD_PRCP=/com/nawips/${envir}/${RUN}.${PDY}/ndgd_prcp if [ ! -f $COMOUT_PRCP ] ; then mkdir -p -m 775 $COMOUT_PRCP fi if [ ! -f $COMOUT_NDGD_PRCP ] ; then mkdir -p -m 775 $COMOUT_NDGD_PRCP fi env DATAHOLD=$DATA ######################################################## # Execute the script. export DATA=$DATAHOLD/prcp mkdir -p $DATA cd $DATA # Run setup to initialize working directory and utility scripts sh $utilscript/setup.sh # generate different threshold products for one deg each forecast hour # and save in $DATAHOLD/prcp to be converted into gempak grid ${HOMEnaefs}/ush/gefs_pgrb_ensrwpqpf.sh > $DATAHOLD/prcp_ensrwpqpf.out 2>&1 & sleep 10 # Run setup to initialize working directory and utility scripts export COMIN=$DATA export COMOUT=$COMOUT_PRCP for member in 0.254 1 1.27 2.54 5 6.35 10 12.7 20 25.4 do export DATA=$DATAHOLD/${member}_prcp mkdir -p $DATA cd $DATA # Run setup to initialize working directory and utility scripts sh $utilscript/setup.sh export RUN=gepqpf_${member} export model=prcp ${HOMEnaefs}/scripts/exnawips.sh.ecf > $DATAHOLD/${member}_prcp.out 2>&1 & done ######################################################## # Execute the script. export DATA=$DATAHOLD/ndgd_prcp mkdir -p $DATA cd $DATA # Run setup to initialize working directory and utility scripts sh $utilscript/setup.sh # generate different threshold products for 5km ndgd conus each forecast hour # and save in $DATAHOLD/ndgd_prcp to be converted into gempak grid ${HOMEnaefs}/ush/gefs_ndgd_ensrwpqpf.sh > $DATAHOLD/ndgd_ensrwpqpf.out 2>&1 & sleep 10 # Run setup to initialize working directory and utility scripts export COMIN=$DATA export COMOUT=$COMOUT_NDGD_PRCP for member in 0.254 1 1.27 2.54 5 6.35 10 12.7 20 25.4 do export DATA=$DATAHOLD/${member}_ndgd_prcp mkdir -p $DATA cd $DATA # Run setup to initialize working directory and utility scripts sh $utilscript/setup.sh export RUN=gepqpf_${member} export model=ndgd_prcp ${HOMEnaefs}/scripts/exnawips.sh.ecf > $DATAHOLD/${member}_ndgd_prcp.out 2>&1 & done ######################################################## wait cd $DATAHOLD set +x echo "######################################" echo " PRCP.OUT " echo "######################################" set -x cat prcp_ensrwpqpf.out for member in 0.254 1 1.27 2.54 5 6.35 10 12.7 20 25.4 do set +x echo "######################################" echo " PRCP $member.OUT " echo "######################################" set -x cat ${member}_prcp.out done set +x echo "######################################" echo " NDGD_PRCP.OUT " echo "######################################" set -x cat ndgd_ensrwpqpf.out for member in 0.254 1 1.27 2.54 5 6.35 10 12.7 20 25.4 do set +x echo "######################################" echo " NDGD_PRCP $member.OUT " echo "######################################" set -x cat ${member}_ndgd_prcp.out done cd /tmpnwprd2 rm -rf $DATA date