forked from NOAA-EMC/EVS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJEVS_GLOBAL_ENS_PLOTS
executable file
·80 lines (65 loc) · 2.28 KB
/
JEVS_GLOBAL_ENS_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
##########################################################
# obtain unique LSF id (jobid) and make temp directories
##########################################################
export pid=$$
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
rm -rf $DATA
mkdir -p $DATA
cd $DATA
############################################
# Run setpdy and initialize PDY variables
############################################
export vhr=${vhr:-00}
export cycle=${cycle:-t${vhr}z}
setpdy.sh
. $DATA/PDY
if [ $RUN = atmos ] || [ $RUN = wmo ] || [ $RUN = headline ] ; then
export VDATE=${VDATE:-$PDYm2}
fi
########################################
# Set data directives
########################################
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDECF=${SENDECF:-YES}
export SENDMAIL=${SENDMAIL:-NO}
########################################
# Define COMIN/COMOUT variables
########################################
export COMIN=${COMIN:-$(compath.py $envir/com/$NET/$evs_ver)}
export EVSIN=${EVSIN:-$COMIN/stats/$COMPONENT/$MODELNAME.$VDATE}
export EVSINapcp24mean=${EVSINapcp24mean:-$COMIN/stats/$COMPONENT/$RUN.$VDATE/apcp24_mean}
export COMOUT=${COMOUT:-$(compath.py -o $NET/${evs_ver})}/$STEP/$COMPONENT/$RUN.$VDATE
export DATA_IN=${DATA_IN:-$DATAROOT}
mkdir -p $COMOUT
########################################
# Set EVS directories
########################################
export HOMEevs=${HOMEevs:-${PACKAGEROOT}/${NET}.${evs_ver}}
export EXECevs=$HOMEevs/exec
export PARMevs=$HOMEevs/parm
export USHevs=$HOMEevs/ush
export SCRIPTevs=$HOMEevs/scripts
export FIXevs=${FIXevs:-$HOMEevs/fix}
export run_mpi=${run_mpi:-yes}
export valid_time=${valid_time:-both}
export ush_dir=$USHevs/global_ens/ush_gens_plot_py
########################################
# Execute the script
########################################
if [ $valid_time = separate ] ; then
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${RUN}_${MODELNAME}_${VERIF_CASE}_separate_${STEP}.sh
else
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${RUN}_${MODELNAME}_${VERIF_CASE}_${STEP}.sh
fi
export err=$?; err_chk
if [ "$KEEPDATA" != "YES" ] ; then
cd $DATAROOT
rm -rf $DATA
fi
date