forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into feature/use_jcb_atm
* upstream/develop: Add rocoto `sh` tag, script to check netcdf file and apply this to check ocean output (NOAA-EMC#2484) Revert file name changes in off-line post (NOAA-EMC#2499) Add mean/spread for atmos grib2 (NOAA-EMC#2482) Upadte and tested CI Bash for WCOSS2 (NOAA-EMC#2481)
- Loading branch information
Showing
29 changed files
with
386 additions
and
46 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
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 |
---|---|---|
|
@@ -21,3 +21,5 @@ skip_ci_on_hosts: | |
- hera | ||
- orion | ||
- hercules | ||
- wcoss2 | ||
|
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ arguments: | |
skip_ci_on_hosts: | ||
- orion | ||
- hercules | ||
- wcoss2 |
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,8 @@ | ||
#!/usr/bin/bash | ||
|
||
export GFS_CI_ROOT=/lfs/h2/emc/global/noscrub/globalworkflow.ci/GFS_CI_ROOT | ||
export ICSDIR_ROOT=/lfs/h2/emc/global/noscrub/emc.global/data/ICSDIR | ||
export STMP="/lfs/h2/emc/stmp/${USER}" | ||
export SLURM_ACCOUNT=GFS-DEV | ||
export max_concurrent_cases=5 | ||
export max_concurrent_pr=4 |
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
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,48 @@ | ||
#! /usr/bin/env bash | ||
|
||
# | ||
# Caculate the mean, spread, and other probabilistic fields. | ||
# | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
source "${HOMEgfs}/ush/jjob_header.sh" -e "atmos_ensstat" -c "base atmos_ensstat" | ||
|
||
|
||
############################################## | ||
# Begin JOB SPECIFIC work | ||
############################################## | ||
|
||
# Construct COM variables from templates | ||
# Input directories loop over members, so this is done downstream | ||
|
||
for grid in '0p25' '0p50' '1p00'; do | ||
prod_dir="COMOUT_ATMOS_GRIB_${grid}" | ||
MEMDIR="ensstat" GRID=${grid} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx "${prod_dir}:COM_ATMOS_GRIB_GRID_TMPL" | ||
if [[ ! -d "${!prod_dir}" ]]; then mkdir -m 775 -p "${!prod_dir}"; fi | ||
done | ||
|
||
############################################################### | ||
# Run exglobal script | ||
"${SCRgfs}/exglobal_atmos_ensstat.sh" | ||
status=$? | ||
(( status != 0 )) && exit "${status}" | ||
|
||
############################################## | ||
# End JOB SPECIFIC work | ||
############################################## | ||
|
||
############################################## | ||
# Final processing | ||
############################################## | ||
if [[ -e "${pgmout}" ]]; then | ||
cat "${pgmout}" | ||
fi | ||
|
||
########################################## | ||
# Remove the Temporary working directory | ||
########################################## | ||
cd "${DATAROOT}" || exit 1 | ||
[[ "${KEEPDATA:-NO}" = "NO" ]] && rm -rf "${DATA}" | ||
|
||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
############################################################### | ||
## atmosphere products driver script | ||
## FHRLST : forecast hour list to post-process (e.g. -f001, f000, f000_f001_f002, ...) | ||
############################################################### | ||
|
||
# Source FV3GFS workflow modules | ||
. "${HOMEgfs}/ush/load_fv3gfs_modules.sh" | ||
status=$? | ||
if (( status != 0 )); then exit "${status}"; fi | ||
|
||
export job="atmos_ensstat" | ||
export jobid="${job}.$$" | ||
|
||
############################################################### | ||
# shellcheck disable=SC2153,SC2001 | ||
IFS='_' read -ra fhrs <<< "${FHRLST//f}" # strip off the 'f's and convert to array | ||
|
||
#--------------------------------------------------------------- | ||
# Execute the JJOB | ||
for fhr in "${fhrs[@]}"; do | ||
# The analysis fhr is -001. Performing math on negative, leading 0 integers is tricky. | ||
# The negative needs to be in front of "10#", so do some regex magic to make it happen. | ||
fhr="10#${fhr}" | ||
fhr=${fhr//10\#-/-10\#} | ||
export FORECAST_HOUR=$(( fhr )) | ||
"${HOMEgfs}/jobs/JGLOBAL_ATMOS_ENSSTAT" | ||
status=$? | ||
if (( status != 0 )); then exit "${status}"; fi | ||
done | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
help([[ | ||
Load environment to run GFS workflow ci scripts on WCOSS2 | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/apps/ops/para/nco/modulefiles/core") | ||
load(pathJoin("gh","2.28.0")) | ||
|
||
whatis("Description: GFS run setup ci environment") |
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,11 @@ | ||
#! /usr/bin/env bash | ||
|
||
########## config.atmos_ensstat ########## | ||
# atmosphere grib2 enstat specific | ||
|
||
echo "BEGIN: config.atmos_ensstat" | ||
|
||
# Get task specific resources | ||
. "${EXPDIR}/config.resources" atmos_ensstat | ||
|
||
echo "END: config.atmos_ensstat" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /usr/bin/env bash | ||
|
||
source "${HOMEgfs}/ush/preamble.sh" | ||
|
||
fhr3=$(printf "%03d" "${FORECAST_HOUR}") | ||
|
||
if [[ -a mpmd_script ]]; then rm -Rf mpmd_script; fi | ||
|
||
{ | ||
for grid in '0p25' '0p50' '1p00'; do | ||
echo "${USHgfs}/atmos_ensstat.sh ${grid} ${fhr3}" | ||
# echo "${USHgfs}/atmos_ensstat.sh ${grid} ${fhr3} b" | ||
done | ||
} > mpmd_script | ||
|
||
"${USHgfs}/run_mpmd.sh" mpmd_script | ||
err=$? | ||
|
||
exit "${err}" |
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
Oops, something went wrong.