#!/bin/sh ######################################## # Generate ETSS Gempak files ######################################## date export PS4=' $SECONDS + ' set -xa ##################################### # SET SHELL PROCESSING VARIABLES ##################################### export RUN_ENVIR=${RUN_ENVIR:-prod} export pid=$$ ############################################################### # This block can be modified for different test environment ############################################################### if [ $RUN_ENVIR = prod ]; then if [ $envir != prod ]; then jlogfile=${logfile:-/com/logs/${envir}/jlogfile} TMPNWDIR=${TMPNWDIR:-/tmpnwprd2} SENDDBN=YES export DBN_ALERT_TYPE=${DBN_ALERT_TYPE:-ETSS_GEMPAK_PARA} fi else # MDL Test Environment jlogfile=${jlogfile:-${MDLTEST_DIR}/com/logs/jlogfile} TMPNWDIR=${TMPNWDIR:-${MDLTEST_DIR}/tmp} pcom=${MDLTEST_DIR}/pcom export DBNROOT=${MDLTEST_HOME}/dbnet export HOMEmdl=${MDLTEST_HOME} fi export jlogfile=${jlogfile:-/com/logs/jlogfiles/jlogfile.${job}.${pid}} TMPNWDIR=${TMPNWDIR:-/tmpnwprd} export DATA=${DATA:-${TMPNWDIR}/${job}.${pid}} mkdir $DATA cd $DATA #################################### # Determine Job Output Name on System #################################### export outid="LL$job" export jobid="${outid}.o${pid}" export pgmout="OUTPUT.${pid}" export cycle=${cycle:-t${cyc}z} export SENDCOM=${SENDCOM:-YES} export SENDDBN=${SENDDBN:-YES} export SENDECF=${SENDECF:-YES} export NET=${NET:-gfs} export RUN=${RUN:-gfs_stormsurge} # # Set up model and cycle specific variables # export DBN_ALERT_TYPE=${DBN_ALERT_TYPE:-ETSS_GEMPAK} # # Now set up GEMPAK/NTRANS environment # . /nwprod/gempak/.gempak ################################### # Set up the UTILITIES ################################### export utilscript=/nwprod/util/ush export utilexec=/nwprod/util/exec export HOMEmdl=${HOMEmdl:-/nw${envir}/${RUN}.${model_ver}} export SCRImdl=${SCRImdl:-$HOMEmdl/scripts} export FIXmdl=${FIXmdl:-$HOMEmdl/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}/${NET}.${PDY} export COMOUT=/com/nawips/${envir}/${NET}.${PDY} if [ ! -d $COMOUT ] ; then mkdir -p -m 775 $COMOUT fi env ######################################################## # Execute the script. ${SCRImdl}/exgfs_stormsurge_nawips.sh.ecf ######################################################## cd $TMPNWDIR rm -rf $DATA date