-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathJGLOBAL_WAVE_PRDGEN_GRIDDED
executable file
·61 lines (46 loc) · 1.39 KB
/
JGLOBAL_WAVE_PRDGEN_GRIDDED
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
#! /usr/bin/env bash
source "$HOMEgfs/ush/preamble.sh"
export DATA=${DATA:-${DATAROOT}/${jobid:?}}
mkdir -p $DATA
cd $DATA
######################################
# Set up the cycle variable
######################################
export cycle=${cycle:-t${cyc}z}
# Set PDY
setpdy.sh
. PDY
# PATH for working directory
export NET=${NET:-gfs}
export RUN=${RUN:-gfs}
export COMPONENT=${COMPONENT:-wave}
export HOMEgfs=${HOMEgfs:-$(dirname $(dirname $0))} # parent directory of current job card
# Add default errchk = err_chk
export errchk=${errchk:-err_chk}
###################################
# Set COM Paths
###################################
export COMIN=${COMIN:-$(compath.py ${NET}/${envir}/${RUN}.${PDY})/${cyc}/$COMPONENT}
export COMOUT=${COMOUT:-${COMROOT}/${NET}/${envir}/${RUN}.${PDY}/${cyc}/$COMPONENT}
export PCOM=${PCOM:-${COMOUT}/wmo}
export SENDCOM=${SENDCOM:-YES}
export SENDDBN_NTC=${SENDDBN_NTC:-YES}
export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
if [ $SENDCOM = YES ]; then
mkdir -p $COMOUT $PCOM
fi
###################################
# Execute the Script
###################################
$HOMEgfs/scripts/exgfs_wave_prdgen_gridded.sh
status=$?
[[ $status -ne 0 ]] && exit $status
###################################
# Remove temp directories
###################################
if [ "$KEEPDATA" != "YES" ]; then
cd $DATAROOT
rm -rf $DATA
fi
exit 0