#!/bin/sh date export PS4=' $SECONDS + ' set -x ####################################################### # The following variable could be defined in the # submission script (the ecf script), if # not they will take the default values which is set # for the NCO running enviroment ####################################################### export RUN_ENVIR=${RUN_ENVIR:-nco} ###################### # Set NET and RUN ###################### export NET=rtma #export RUN=rtma2p5, akrtma, hirtma, prrtma, gurtma, or rurtma2p5 #RUN MUST COME FROM HIGHER LEVEL SCRIPT! /MPondeca, 26Jul2015 # Run ${RUN}_config to get input parameters ########################################### if [ "$RUN_ENVIR" = dev ] ### For Developers then configfile=${configfile:-/meso/save/${LOGNAME}/${NET}/user/${RUN}_para_config} . $configfile fi ########################################################## # obtain unique process id (pid) and make temp directories ########################################################## export DATA=${DATA:-${DATAROOT:?}/${jobid:?}} #jobid ($job.$LSB_JOBID MUST BE DEFINED IN TERNS OF $RUN IN UPPER LEVEL SCRIPT /MPondeca, 26Jul2015 mkdir -p $DATA cd $DATA #################################### # File To Log Msgs #################################### #################################### # Determine Job Output Name on System #################################### export pgmout=${pgmout:-"OUTPUT.$$"} export cycle=t${cyc}z export subcyc=${subcyc} #Note: Must define subcyc in upper level script. Can be 00, 15, 30, or 45 /MPondeca, 30Jun2017 #only used for rurtma2p5 # Specify Execution Areas export HOMErtma=${HOMErtma:-$NWROOT/rtma.${rtma_ver}} export EXECrtma=${EXECrtma:-$HOMErtma/exec} export FIXrtma=${FIXrtma:-$HOMErtma/fix/${RUN}} export PARMrtma=${PARMrtma:-$HOMErtma/parm} export USHrtma=${USHrtma:-$HOMErtma/ush/${RUN}} export MPIEXEC=${MPIEXEC:-mpiexec} ########################################### # Run setpdy and initialize PDY variables ########################################### setpdy.sh . ./PDY ################################################# # Set up the INPUT and OUTPUT directories ################################################# export COMIN=${COMIN:-$(compath.py ${envir}/${NET}/${rtma_ver})/${RUN}.${PDY}} export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${rtma_ver})/${RUN}.${PDY}} ### Input from the RTMA for the prepbufr file: export COMINobsproc_rtma=${COMINobsproc_rtma:-$(compath.py $envir/obsproc/$obsproc_ver)/rtma.${PDY}} export COMINobsproc_rtma_ru=${COMINobsproc_rtma_ru:-$(compath.py $envir/obsproc/$obsproc_ver)/rtma_ru.${PDY}} ### Input from the DCOM GOES CLOUD files export DCOMINWW3=${DCOMINWW3:-${DCOMROOT}} mkdir -p $COMOUT ########################################################## # make temp data directory, created by gsianl job # and removed by post jobs ########################################################## if [ "$RUN" = rtma2p5_ru ]; then export DATAshared=${DATAshared:-$DATAROOT/${RUN}_${PDY}_${cyc}${subcyc}_${envir}_${rtma_ver}} else export DATAshared=${DATAshared:-$DATAROOT/${RUN}_${PDY}_${cyc}_${envir}_${rtma_ver}} fi mkdir -p $DATAshared env ###################### # Execute the script. ###################### $HOMErtma/scripts/${RUN}/ex${RUN}_gsianl.sh export err=$?; err_chk cat $pgmout postmsg "$0 of $job completed normally" if [ "${KEEPDATA^^}" != YES ]; then rm -rf $DATA fi date