#!/bin/bash # #### 08/25/1999 ################### # SET SHELL PROCESSING VARIABLES # ################################### set -x export PS4=' $SECONDS + ' date #################################### # Make temp directory #################################### export DATA=${DATA:-${DATAROOT:?}/${jobid:?}} mkdir -p $DATA cd $DATA export HOUR=$cyc export cycle=t${cyc}z #################################### # Specify NET and RUN Name #################################### export NET=glmp export RUN=glmp #################################### # Determine Diagnostic Output Name on System #################################### export pgmout="OUTPUT.$$" #################################### # Specify Execution Areas #################################### export EXECglmp=${EXECglmp:-$HOMEglmp/exec} export FIXglmp=${FIXglmp:-$HOMEglmp/fix} export PARMglmp=${PARMglmp:-$HOMEglmp/parm} export USHglmp=${USHglmp:-$HOMEglmp/ush} ############################## # Run setpdy and initialize PDY variables ############################## setpdy.sh . ./PDY ############################## # Setting date variables ############################## export DAT="$PDY$HOUR" export DATm1d=`$NDATE -24 $DAT` export PDYm1=`printf $DATm1d cut -c 1-8` ############################################## # Define COM directories ############################################## export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${glmp_ver})/${RUN}.${PDY}} export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${glmp_ver})/${RUN}.${PDY}} export WMO=${WMO:-$COMOUT/wmo} mkdir -m 775 -p $COMOUT $WMO ################################################################## # *****NOTE TO SPAS****** # This variable is needed by the script to determine which element # to run for. All elements can run as side-by-side parallel # processes when their respective runs of JGLMP_00GRANALYSIS are # successfully completed. ################################################################## # Three possible elm arguments: tdp, cig, and vis export elm=$ELEMENT export MIN=$MIN env ############################################################# # execute the script $HOMEglmp/scripts/exglmp_obs_prdgen.sh ############################################################# cat $pgmout if [ "${KEEPDATA^^}" != "YES" ]; then rm -rf $DATA fi date