forked from NOAA-EMC/EVS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJEVS_AQM_PLOTS
executable file
·84 lines (65 loc) · 2.43 KB
/
JEVS_AQM_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
80
81
82
#!/bin/ksh
set -x
########################################
# Preliminary data setup step
########################################
#################################################
### SAVEGES - Copy Files From TMPDIR to $GESdir
### SENDECF - Flag Events on ecFLOW
### SENDCOM - Copy Files From TMPDIR to $COMOUT
### SENDDBN - Issue DBNet Client Calls
### SENDMAIL - Send email if file is missing
###################################################
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDECF=${SENDECF:-YES}
export SENDMAIL=${SENDMAIL:-NO}
# ###################################
# SET SHELL PROCESSING VARIABLES
# ###################################
date
export PS4='$SECONDS + '
###########################################################
# obtain unique LSF id (jobid) and make temp directories
###########################################################
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
mkdir -p $DATA
cd $DATA
export vhr=${vhr:-00}
export cycle=${cycle:-t${vhr}z}
setpdy.sh 31
. ./PDY
export envir=${envir:-prod}
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}
# Define COMIN/COMOUT variables:
echo $COMPATH
export NET=${NET:-evs}
export STEP=${STEP:-plots}
export COMPONENT=${COMPONENT:-aqm}
export RUN=${RUN:-atmos}
export VERIF_CASE=${VERIF_CASE:-grid2obs}
export MODELNAME=${MODELNAME:-aqm}
export modsys=${modsys:-aqm}
export mod_ver=${mod_ver:-${aqm_ver}}
export VDATE=${VDATE:-${PDYm4}}
export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${evs_ver})}
export EVSINaqm=${EVSINaqm:-${COMIN}/stats/${COMPONENT}/${MODELNAME}}
export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${evs_ver})}
export COMOUTplots=${COMOUTplots:-${COMOUT}/${STEP}/${COMPONENT}/${RUN}.${VDATE}}
export COMOUTheadline=${COMOUTheadline:-${COMOUT}/${STEP}/${COMPONENT}/headline.${VDATE}}
mkdir -m 775 -p $COMOUT $COMOUTplots $COMOUTheadline
#######################################################################
# Execute the script.
#######################################################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${MODELNAME}_${VERIF_CASE}_${STEP}.sh
msg="JOB $job HAS COMPLETED NORMALLY."
postmsg "$msg"
if [ "$KEEPDATA" != "YES" ] ; then
cd $DATAROOT
rm -rf $DATA
fi