#!/bin/sh ########################################################## # This job... # ######################################################## 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=urma export RUN=minmaxt ########################################### # 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 # Note: grib_util module loaded in submission (lsf or ecFlow) script ########################################################## # 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 #################################### # Determine Job Output Name on System #################################### export pgmout="OUTPUT.$$" export cycle=t${cyc}z # Specify Execution Areas export HOMEurma=${HOMEurma:-$NWROOT/urma.${urma_ver}} export EXECurma=${EXECurma:-$HOMEurma/exec} export FIXurma=${FIXurma:-$HOMEurma/fix/${RUN}} export PARMurma=${PARMurma:-$HOMEurma/parm} export USHurma=${USHurma:-$HOMEurma/ush/${RUN}} ########################################### # Run setpdy and initialize PDY variables ########################################### setpdy.sh . ./PDY # If it has not been at least 24 hours since the last coldstart, exit processing if [ -n "$LAST_RESTART" ] && [ ${PDY}${cyc} -lt $(${NDATE:?} +24 $LAST_RESTART) ]; then echo -e "\nWARNING: Cold restart is in process. GETMAXT WILL NOT RUN!\n" exit 0 fi ################################################# # Set up the INPUT and OUTPUT directories ################################################# ### COM_IN used to retrieve ges and analysis files from 2p5, ak, gu, hi, and pr export COM_IN=${COM_IN:-$(compath.py ${envir}/${NET}/${urma_ver})} #export COMOUT=${COM_OUT:-$(compath.py ${envir}/${NET}/${urma_ver})/urma.${PDYm1}} export COMOUT=${COM_OUT:-$(compath.py -o ${NET}/${urma_ver})/urma.${PDYm1}} #export COMOUT2p5=${COM_OUT:-$(compath.py ${envir}/${NET}/${urma_ver})/urma2p5.${PDYm1}} export COMOUT2p5=${COM_OUT:-$(compath.py -o ${NET}/${urma_ver})/urma2p5.${PDYm1}} #export COMOUTak=${COM_OUT:-$(compath.py ${envir}/${NET}/${urma_ver})/akurma.${PDYm1}} export COMOUTak=${COM_OUT:-$(compath.py -o ${NET}/${urma_ver})/akurma.${PDYm1}} #export COMOUThi=${COM_OUT:-$(compath.py ${envir}/${NET}/${urma_ver})/hiurma.${PDYm1}} export COMOUThi=${COM_OUT:-$(compath.py -o ${NET}/${urma_ver})/hiurma.${PDYm1}} #export COMOUTpr=${COM_OUT:-$(compath.py ${envir}/${NET}/${urma_ver})/prurma.${PDYm1}} export COMOUTpr=${COM_OUT:-$(compath.py -o ${NET}/${urma_ver})/prurma.${PDYm1}} ### Input from the URMA for the prepbufr and previous guess files: export COMINobsproc_urma=${COMINobsproc_urma:-$(compath.py ${envir}/obsproc/${obsproc_ver})/urma.${PDY}} mkdir -p $COMOUT env ###################### # Execute the script. ###################### $HOMEurma/scripts/${RUN}/exurma_maxtobs.sh export err=$?; err_chk $HOMEurma/scripts/${RUN}/exurma_maxtbg.sh export err=$?; err_chk $HOMEurma/scripts/${RUN}/exurma_minrh.sh export err=$?; err_chk if [ -e "$pgmout" ]; then cat $pgmout fi postmsg "$0 of $job completed normally" if [ "${KEEPDATA^^}" != YES ]; then rm -rf $DATA fi date