#!/bin/ksh #PBS -N pcp_rtmag #PBS -j oe #PBS -l select=1:ncpus=1:mem=1000MB #PBS -l walltime=00:45:00 #PBS -q "dev" #PBS -A RTMA-T2O set -x . /usr/share/lmod/lmod/init/ksh module load prod_util/2.0.8 module load grib_util/1.2.2 module load gempak/7.14.0 NET=rtmag export vernum=2.8.7 export RUN_ENVIR=dev # dev or nco export envir=para # dev or prod/para/test # EXPORT list here # CALL executable job script here # This script has two optional arguments: # arg 1: yyyymmddhh # arg 2: debug (if in debug mode, do not delete the working directory) # arg 3: Single mode - only make erly/mid/late run (one of them, as # specified by argument. No POE. # arg #1: pdyhh=yyyymmddhh: in this mode, the 'erly' ST2 analysis would # be the one hour ending at $pdyhh, 'mid' ST2 would be ${pdyhh}m6, # and 'late' ST2 would be ${pdyhh}m18. If this argument is not provided, # then pdyhh is set to the current time, in the jobs script. export retro=N if [ $# -ge 1 ]; then export retro=Y export pdyhh=$1 else pdyhh=`date -u +%Y%m%d%H` fi # retro test # export pdyhh=2017062819 # retro test export cyc=`echo $pdyhh | cut -c 9-10` # arg #2: optional debug mode - the working directory is not deleted by the # JOBS script export KEEPDATA=YES if [ $# -ge 2 ]; then arg2=$2 if [ $arg2 = debug ]; then export KEEPDATA=YES fi fi if [ "$RUN_ENVIR" = dev ]; then export HOMErtmag=/meso/save/$LOGNAME/blender_project/nw${envir}/${NET} # outid is what prod uses to name the job output file, e.g. # nam_pcpn_anal_2033.o2467312 (outid.$o${pid} # below is my approximation to prod outid: # $HOMErtmag/jobs/JRTMA_PCPN else /nwprod2/rtmag.${vernum}/jobs/JRTMA_PCPN fi