-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splits AWIPS jobs into seperate tasks #2094
Merged
WalterKolczynski-NOAA
merged 34 commits into
NOAA-EMC:develop
from
HenryRWinterbottom:feature/gfsv17_issue_1228
Dec 5, 2023
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
10859c2
Corrected missing local variable reference.
henrywinterbottom-wxdev 9df2539
Reverting push to develop.
henrywinterbottom-wxdev 2a560e3
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev e26aff3
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev 3ab096a
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev 8c42c79
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev 76d91e0
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev f626d91
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev afe078d
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev 40f37ec
Merge branch 'develop' of https://github.com/HenryWinterbottom-NOAA/g…
henrywinterbottom-wxdev 9297b1e
Added new AWIPS jobs for Rocoto.
henrywinterbottom-wxdev 42dac7f
Removed no longer needed script.
henrywinterbottom-wxdev 82c8f1b
Updated Rocoto applications.
henrywinterbottom-wxdev 3e9a24c
Updates to test AWIPS job splitting.
henrywinterbottom-wxdev 5c2b60a
Added tasks to GFS for AWIPS.
HenryRWinterbottom 76d4e8c
Addressing issues raised by linter.
henrywinterbottom-wxdev 7b41f31
Addressing issues raised by linter.
henrywinterbottom-wxdev 763c516
Removed comment as per reviewer request.
henrywinterbottom-wxdev 7e4e358
Renamed tasks as per reviewer suggestion.
henrywinterbottom-wxdev dd20e83
Updates relative to reviewer comments/suggestions.
henrywinterbottom-wxdev ea27c25
Update jobs/rocoto/awips_20sh.sh
HenryRWinterbottom 46bf631
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1228
HenryRWinterbottom 920460b
Renamed files.
henrywinterbottom-wxdev df94d43
Files have been renamed.
henrywinterbottom-wxdev fb7fefb
Updated task names.
henrywinterbottom-wxdev 3347e8e
Renamed file to reflect child JJOB.
henrywinterbottom-wxdev 993956c
Updates to reflect upstream file updates.
henrywinterbottom-wxdev 78aef53
File has been renamed.
henrywinterbottom-wxdev 2977c86
Updated task names based on upstream commits.
henrywinterbottom-wxdev 9ba2287
patch to reviewer comments on PR 2094
aerorahul a50f865
Merge pull request #1 from aerorahul/patch/2094
HenryRWinterbottom 9cc697d
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1228
HenryRWinterbottom 1066a72
Update jobs/rocoto/awips_g2.sh
HenryRWinterbottom e9c9209
Update awips_g2.sh
aerorahul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,66 @@ | ||
#! /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 | ||
|
||
fhmin=90 | ||
fhmax=240 | ||
if (( fhr >= fhmin && fhr <= fhmax )); then | ||
if ((fhr % 6 == 0)); then | ||
export fcsthrs="${fhr3}" | ||
"${AWIPSG2SH}" | ||
fi | ||
fi | ||
aerorahul marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whats happening here? why does this need
fcsthrs
and block on line 46 doesn't?