forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJGFS_ATMOS_AWIPS_G2
executable file
·67 lines (53 loc) · 1.91 KB
/
JGFS_ATMOS_AWIPS_G2
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
#! /usr/bin/env bash
########################################
# GFS_AWIPS_G2 AWIPS PRODUCT GENERATION
########################################
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "awips" -c "base awips"
export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1}
################################
# Set up the HOME directory
################################
export USHgfs=${USHgfs:-${HOMEgfs}/ush}
export EXECgfs=${EXECgfs:-${HOMEgfs}/exec}
export PARMgfs=${PARMgfs:-${HOMEgfs}/parm}
export PARMwmo=${PARMwmo:-${HOMEgfs}/parm/wmo}
export PARMproduct=${PARMproduct:-${HOMEgfs}/parm/product}
export FIXgfs=${FIXgfs:-${HOMEgfs}/fix}
export UTILgfs=${UTILgfs:-${HOMEgfs}/util}
###################################
# Specify NET and RUN Name and model
####################################
export model=${model:-gfs}
export COMPONENT="atmos"
##############################################
# Define COM directories
##############################################
export SENDDBN=${SENDDBN:-NO}
export SENDAWIP=${SENDAWIP:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_WMO
GRID="0p25" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_GRID_TMPL
if [[ ${SENDCOM} == "YES" && ! -d "${COM_ATMOS_WMO}" ]] ; then
mkdir -m 775 -p "${COM_ATMOS_WMO}"
fi
export pgmout=OUTPUT.$$
########################################################
# Execute the script.
#########################################################
mkdir -m 775 awips_g1
cd ${DATA}/awips_g1
${HOMEgfs}/scripts/exgfs_atmos_grib_awips.sh ${fcsthrs}
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