forked from NOAA-EMC/EVS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJEVS_NARRE_PLOTS
executable file
·67 lines (47 loc) · 1.58 KB
/
JEVS_NARRE_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
#!/bin/ksh
################################################################################
# JOB card cerated for running METPlus-based NARRE verifications
# By Binbin Zhou, Lynker@EMC/NCEP
# Last updated 10/27/2023
# Purpose: setup environment variables to run the NARRE plots script
###############################################################################
set -x
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDECF=${SENDECF:-YES}
export SENDMAIL=${SENDMAIL:-NO}
export pid=$$
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
rm -rf $DATA
mkdir -p $DATA
cd $DATA
export cycle=${cycle:-t${vhr}z}
setpdy.sh
. $DATA/PDY
mkdir -p $DATA/logs
export VDATE=${VDATE:-$PDYm1}
export COMIN=${COMIN:-$(compath.py $envir/com/$NET/$evs_ver)}/stats/$COMPONENT/$MODELNAME.$VDATE
export COMOUT=${COMOUT:-$(compath.py -o $NET/$evs_ver)}/$STEP/$COMPONENT/$RUN.$VDATE
mkdir -p $COMOUT
export HOMEevs=${HOMEevs:-${PACKAGEROOT}/${NET}.${evs_ver}}
export EXECevs=$HOMEevs/exec
export PARMevs=$HOMEevs/parm
export USHevs=$HOMEevs/ush
export FIXevs=$HOMEevs/fix
export MASKS=$FIXevs/masks
export ush_dir=$USHevs/narre/ush_narre_plot_py
####################################
# Determine Job Output Name on System
####################################
export outid="LL$job"
export jobid="${outid}.o${pid}"
####################################
# Specify codes and scripts locaton
####################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${MODELNAME}_${STEP}.sh
export err=$?; err_chk
if [ "$KEEPDATA" != "YES" ] ; then
cd $DATAROOT
rm -rf $DATA
fi
#date