#!/bin/sh ######################################## # Generate EKDMOS Gempak files ######################################## export SENDSMS=${SENDSMS:-YES} if [ $SENDSMS = YES ] then $SMSBIN/smsinit $LOADL_STEP_ID fi export DBNROOT=/com/pmb/wx11se/fakedbn set -xa export PS4='$SECONDS + ' date # # obtain unique process id (pid) and make temp directories # export pid=$$ export DATA=/tmpnwprd/${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/jlogfile else export jlogfile=/com/logs/${envir}/jlogfile 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 export SENDCOM=YES export SENDDBN=YES export SENDSMS=YES # # Set up model and cycle specific variables # export NET=estofs export RUN=estofs export GRIB=grib export DBN_ALERT_TYPE=ESTOFS_GEMPAK # # Now set up GEMPAK/NTRANS environment # . /nwprod/gempak/nawips2/.gempak660 ################################### # Set up the UTILITIES ################################### export utilscript=/nwprod/util/ush export utilities=/nwprod/util/ush export utilexec=/nwprod/util/exec export GEMfix=/nw${envir}/gempak/fix # Run setup to initialize working directory and utility scripts $utilscript/setup.sh # Run setpdy and initialize PDY variables $utilscript/setpdy.sh . PDY export COMIN=/com/${NET}/${envir}/${RUN}.${PDY} export COMOUT=/com/nawips/${envir}/${RUN}.${PDY} if [ ! -f $COMOUT ] ; then mkdir -p -m 775 $COMOUT fi # Copy model specific tables cp ${GEMfix}/estofs.g2varsncep1.tbl g2varsncep1.tbl cp ${GEMfix}/estofs.g2vcrdwmo3.tbl g2vcrdwmo3.tbl env date ######################################################## # Execute the script. /nw${envir}/scripts/exestofs_nawips.sh.sms ######################################################## cat $pgmout cd /tmpnwprd rm -rf $DATA date if [ $SENDSMS = YES ] then $SMSBIN/smscomplete fi