#!/bin/sh ######################################## # Set up environment for UV-INDEX FCST ######################################## set -xa # #### 07/30/1999 ################### # SET SHELL PROCESSING VARIABLES # ################################### export PS4=' $SECONDS + ' date # # obtain unique process id (pid) and make temp directories # export pid=$$ export DATA=${DATA:-$DATAROOT/$jobid} mkdir -p $DATA cd $DATA #################################### # Determine Job Output Name on System #################################### export pgmout="OUTPUT.${jobid}" export cycle=t${cyc}z export MP_LABELIO=YES #################################### # SENDECF - Flag Events on SMS # SENDDBN - Issue DBNet Client Calls # SENDCOM - Copy files to /com directory # GET_IOPROFILE - Run I/O statistics #################################### export SENDCOM=${SENDCOM:-YES} export SENDDBN=${SENDDBN:-YES} export SENDECF=${SENDECF:-YES} #export GET_IOPROFILE=NO export NET=uvi export RUN=uvi export HOMEuvi=${HOMEuvi:-$NWROOT/${model}.${uvi_ver}} export EXECuvi=$HOMEuvi/exec export FIXuvi=$HOMEuvi/fix export PARMuvi=$HOMEuvi/parm export USHuvi=$HOMEuvi/ush # Run setup to initialize working directory and utility scripts msg="JOB $job HAS BEGUN" postmsg "$msg" # Run setpdy and initialize PDY variables setpdy.sh . ./PDY export today=$PDY export tomorrow=$PDYp1 export COMINgfs=${COMINgfs:-$(compath.py ${envir}/com/gfs/${gfs_ver})} #/gfs.${PDY}} echo COMINgfs=$COMINgfs export COMINgefs=${COMINgefs:-$(compath.py ${envir}/com/gefs/${gefs_ver})} #/gefs.${PDY}} echo COMINgefs=$COMINgefs export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${uvi_ver})/${RUN}.${PDY}} echo COMOUT=$COMOUT export pcom=${pcom:-$COMOUT/wmo} export PCOM=$pcom mkdir -p $COMOUT $PCOM env ################################################### # Execute the Script ################################################### # ${HOMEuvi}/scripts/exuvi.sh cat $pgmout msg="JOB $job HAS COMPLETED NORMALLY." echo $msg postmsg "$msg" date ############################################ # Remove the Temporary working directory ############################################ if [ "${KEEPDATA^^}" != "YES" ]; then rm -rf $DATA fi date