-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splits AWIPS jobs into seperate tasks (#2094)
This PR addresses issue #1228. The following is accomplished: - Separate rocoto jobs have been created beneath `jobs/rocoto/` -- `awips_20sh` and `awips_g2sh`; these jobs replace `awips.sh` which was calling multiple J-jobs within the respective `awips.sh` scripts; - New tasks has been added to `workflow/rocoto/tasks.py` for the new AWIPS scripts; - The `gfs_cycled` and `gfs_forecast_only` modules beneath `workflow/rocoto` have been updated accordingly. Resolves #1228
- Loading branch information
1 parent
04d97e9
commit e62a3a7
Showing
7 changed files
with
130 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
############################################################### | ||
## Abstract: | ||
## Inline awips driver script | ||
## HOMEgfs : /full/path/to/workflow | ||
## EXPDIR : /full/path/to/config/files | ||
## CDATE : current analysis date (YYYYMMDDHH) | ||
## CDUMP : cycle name (gdas / gfs) | ||
## PDY : current date (YYYYMMDD) | ||
## cyc : current cycle (HH) | ||
############################################################### | ||
|
||
############################################################### | ||
# Source FV3GFS workflow modules | ||
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh" | ||
status=$? | ||
(( status != 0 )) && exit "${status}" | ||
|
||
export job="awips_g2" | ||
export jobid="${job}.$$" | ||
|
||
source "${HOMEgfs}/ush/jjob_header.sh" -e "awips" -c "base awips" | ||
|
||
# shellcheck disable=SC2153 | ||
fhrlst=$(echo "${FHRLST}" | sed -e "s/_/ /g; s/f/ /g; s/,/ /g") | ||
|
||
############################################################### | ||
|
||
################################################################################ | ||
echo | ||
echo "=============== BEGIN AWIPS ===============" | ||
|
||
for fhr3 in ${fhrlst}; do | ||
fhr=$(( 10#${fhr3} )) | ||
if (( fhr > FHMAX_GFS )); then | ||
echo "Nothing to process for FHR = ${fhr3}, cycle" | ||
continue | ||
fi | ||
|
||
fhmin=0 | ||
fhmax=240 | ||
if (( fhr >= fhmin && fhr <= fhmax )); then | ||
if ((fhr % 6 == 0)); then | ||
"${AWIPSG2SH}" | ||
fi | ||
fi | ||
done | ||
|
||
|
||
############################################################### | ||
# Force Exit out cleanly | ||
if [[ ${KEEPDATA:-"NO"} == "NO" ]] ; then rm -rf "${DATA}" ; fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters