-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update blending script to send email when UK data is missing (#61)
* Update blending script to send email when UK data is missing 1. usonly.emailbody is differentiated for each forecast hour with missing UK data 2. Remove the condition of sending UK unblended data if US unblended data is missing. It won't happen because the job itself won't get triggered if US unblended data is missing * Added an ecflow client test script * Update dev/ecf/README.md * Update ecf README.md --------- Co-authored-by: yali mao <yali.mao@clogin03.cactus.wcoss2.ncep.noaa.gov>
- Loading branch information
1 parent
68accae
commit 8be19c1
Showing
4 changed files
with
92 additions
and
79 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,49 @@ | ||
#!/bin/bash | ||
|
||
# Instructions: https://github.com/NOAA-EMC/WAFS/tree/release/wafs.v7/dev/ecf | ||
# | ||
# Two requirements to run this script | ||
# 1. ecflow_server has been started | ||
# 2. ecflow_server is started on either cdecflow01 or ddecflow01 | ||
# | ||
# What the script will do for a PDYcyc: | ||
# 1. Follow the instructions from dev/ecf/setup_ecf.sh and creates a suite definition file for a PDYcyc | ||
# 2. Load the suite def file to the ecflow_server which was started already | ||
# 3. Begin ecflow for a PDYcyc | ||
|
||
set -eu | ||
|
||
echo "Usage: ./setup_ecf.sh [PDYcyc]" | ||
|
||
PDYcyc=${1:-$(date --utc "+%Y%m%d")00} | ||
|
||
# Get the root of the script | ||
readonly DIR_ROOT=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}")")/../.." && pwd -P) | ||
cd $DIR_ROOT/dev/ecf | ||
# create a suite def file in real time | ||
./setup_ecf.sh -d $PDYcyc -x xPDY | ||
|
||
suitename="wafsxPDY" | ||
|
||
# set ECF_HOST according to which WCOSS2 machine | ||
if [[ $(hostname) =~ ^[d][login|dxfer] ]] ; then | ||
export ECF_HOST="ddecflow01" | ||
elif [[ $(hostname) =~ ^[c][login|dxfer] ]] ; then | ||
export ECF_HOST="cdecflow01" | ||
fi | ||
echo $ECF_HOST | ||
module load ecflow | ||
|
||
# Make sure ecflow_server is not halted | ||
ecflow_client --restart | ||
|
||
cd $DIR_ROOT/ecf/def | ||
|
||
# echo "yes" | ecflow_client --delete=/$suitename | ||
# ecflow_client --load $PWD/$suitename.def | ||
|
||
# Replace: it can either load a new suite def or | ||
# replace with a new suite def UNLESS a job is active for the current suite | ||
ecflow_client --replace=/$suitename $PWD/$suitename.def | ||
|
||
ecflow_client --begin $suitename |
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