forked from NOAA-EMC/EVS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJEVS_ANALYSES_PLOTS
executable file
·79 lines (63 loc) · 2.22 KB
/
JEVS_ANALYSES_PLOTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/ksh
########################################
# Preliminary data setup step
########################################
set -x
##################################################
## SAVEGES - Copy Files From TMPDIR to $GESdir
## SENDECF - Flag Events on ecFLOW
## SENDCOM - Copy Files From TMPDIR to $COMOUT
## SENDDBN - Issue DBNet Client Calls
###################################################
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDECF=${SENDECF:-YES}
export SENDMAIL=${SENDMAIL:-NO}
# ###################################
# SET SHELL PROCESSING VARIABLES
# ###################################
export PS4='$SECONDS + '
date
###########################################################
# obtain unique LSF id (jobid) and make temp directories
###########################################################
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
mkdir -p $DATA
cd $DATA
export HOMEevs=${HOMEevs:-${PACKAGEROOT}/${NET}.${evs_ver}}
export EXECevs=${EXECevs:-$HOMEevs/exec}
export FIXevs=${FIXevs:-$HOMEevs/fix}
export PARMevs=${PARMevs:-$HOMEevs/parm}
export SCRIPTSevs=${SCRIPTSevs:-$HOMEevs/scripts}
export USHevs=${USHevs:-$HOMEevs/ush}
# Run setpdy and initialize PDY variables
export vhr=${vhr:-00}
export cycle=t${vhr}z
setpdy.sh 31
. ./PDY
export VDATE=${VDATE:-$PDYm2}
####################################
### Define NET/RUN variables
######################################
export NET=${NET:-evs}
export STEP=${STEP:-plots}
export COMPONENT=${COMPONENT:-analyses}
export RUN=${RUN:-atmos}
# Define COMIN/COMOUT variables:
echo $COMPATH
export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${evs_ver})}
export EVSINanl=${EVSINanl:-${COMIN}/stats/${COMPONENT}}
export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${evs_ver})}
export COMOUTplots=${COMOUTplots:-${COMOUT}/${STEP}/${COMPONENT}/${RUN}.${VDATE}}
mkdir -m 775 -p $COMOUTplots
#######################################################################
# Execute the script.
#######################################################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${VERIF_CASE}_${STEP}.sh
msg="JOB $job HAS COMPLETED NORMALLY."
postmsg "$msg"
if [ "$KEEPDATA" != "YES" ] ; then
cd $DATAROOT
rm -rf $DATA
fi
date