#!/bin/bash #PBS -N pcp_urma #PBS -A RTMA-DEV #PBS -j oe #PBS -l select=1:ncpus=2:mem=1200MB #PBS -q dev #PBS -l walltime=00:50:00 #PBS -l debug=true set -x module purge moduledir=$HOMEurma/modulefiles/URMA module use ${moduledir} source $HOMEurma/versions/run.ver module load v${URMA_vernum}_for_${thismachine}.pcp export urma_ver=v2.9.0 export RUN_ENVIR=dev # or nco export envir=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 # 2019/11: note about the run cycle: since we're running PCPANL at hh:55, the # pcpURMA run might not start until after the top of the next hour. So check # the current minute: if it's less than 55, then the run cycle is for the # previous hour. # export retro=N if [ $# -ge 1 ]; then export retro=Y export pdyhh=$1 else minute=`date +%M` if [ $minute -lt 50 ]; then pdyhh=`date +%Y%m%d%H -d "1 hour ago"` else pdyhh=`date +%Y%m%d%H` fi fi # retro test # export pdyhh=2019062416 # 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 [ "$envir" = dev ]; then export USERHOME=/lfs/h2/emc/vpppg/noscrub/Jun.Du export HOMEurma=$USERHOME/pcpanl/urma.${urma_ver} export NOSCRUBDIR=$USERHOME/mrms-cmorph.arch # /lfs/h1/ops/canned/dcom/20210824/wgrbbul/cpc_qmorph # begin dev for python: # module use -a /u/Benjamin.Blake/modulefiles # module load anaconda2/latest # export GRIB_DEFINITION_PATH=/gpfs/dell2/emc/modeling/noscrub/Benjamin.Blake/EXT/grib_api.1.14.4/share/grib_api/definitions # export PYTHONPATH=${PYTHONPATH}:/gpfs/dell2/emc/modeling/noscrub/Jacob.Carley/python/lib # end dev for python. # 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: # $HOMEurma/jobs/JURMA_PCPN # bsub < $HOMEurma/util.dev/send2rzdm.sh else /nw${envir}/jobs/JURMA_PCPN fi