-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathJGFS_ATMOS_FBWIND
executable file
·50 lines (39 loc) · 1.39 KB
/
JGFS_ATMOS_FBWIND
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
#! /usr/bin/env bash
# TODO (#1221) This job is not part of the rocoto suite
############################################
# GFS FBWIND PRODUCT GENERATION
############################################
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "fbwind" -c "base fbwind"
###################################
# Specify NET and RUN Name and model
####################################
export model=${model:-gfs}
export COMPONENT="atmos"
##############################################
# Define COM directories
##############################################
GRID="0p25" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMIN_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT:COM_ATMOS_WMO_TMPL
if [[ ! -d "${COMOUT}" ]]; then
mkdir -m 775 -p "${COMOUT}"
fi
export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
########################################################
# Execute the script.
"${SCRgfs}/exgfs_atmos_fbwind.sh"
export err=$?;err_chk
########################################################
############################################
# print exec I/O output
############################################
if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi
###################################
# Remove temp directories
###################################
if [[ "${KEEPDATA}" != "YES" ]] ; then
rm -rf "${DATA}"
fi