forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.sh
executable file
·29 lines (22 loc) · 829 Bytes
/
post.sh
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
#! /usr/bin/env bash
source "${HOMEgfs}/ush/preamble.sh"
###############################################################
## NCEP post driver script
## FHRGRP : forecast hour group to post-process (e.g. 0, 1, 2 ...)
## FHRLST : forecast hourlist to be post-process (e.g. anl, f000, f000_f001_f002, ...)
###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
export job="post"
export jobid="${job}.$$"
fhrlst=$(echo ${FHRLST} | sed -e 's/_/ /g; s/f/ /g; s/,/ /g')
#---------------------------------------------------------------
for fhr in ${fhrlst}; do
export post_times=${fhr}
${HOMEgfs}/jobs/JGLOBAL_ATMOS_POST
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
done
exit 0