forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexgdas_atmos_verfozn.sh
More file actions
executable file
·43 lines (35 loc) · 1.12 KB
/
exgdas_atmos_verfozn.sh
File metadata and controls
executable file
·43 lines (35 loc) · 1.12 KB
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
#! /usr/bin/env bash
################################################################################
# exgdas_atmos_verfozn.sh
#
# This script runs the data extract/validation portion of the Ozone Monitor
# (OznMon) DA package.
#
################################################################################
export err=0
if [[ -s "${oznstat}" ]]; then
#------------------------------------------------------------------
# Copy data files file to local data directory.
# Untar oznstat file.
#------------------------------------------------------------------
cpreq "${oznstat}" "./oznstat.${PDY}${cyc}"
tar -xvf "oznstat.${PDY}${cyc}"
rm -f "oznstat.${PDY}${cyc}"
netcdf=0
for filenc4 in diag*nc4.gz; do
netcdf=1
file=$(echo "${filenc4}" | cut -d'.' -f1-2).gz
mv "${filenc4}" "${file}"
done
export OZNMON_NETCDF=${netcdf}
"${USHglobal}/ozn_xtrct.sh" && true
export err=$?
if [[ ${err} -ne 0 ]]; then
err_exit "ozn_xtrct.sh failed!"
fi
else
# oznstat file not found
export err=1
err_exit "${oznstat} does not exist!"
fi
exit 0