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.
Consolidate VMINMON and cleanup monitor scripts (NOAA-EMC#2088)
This PR combines the GDAS and GFS versions of the VMINMON JJOB and ex-driver scripts into single GLOBAL/global versions. Additionally: * some further cleanup of the GSI-Monitor scripts is done; variable settings in ex-driver scripts are moved up to the JJOB level * the fix symlinks are consolidated into a new `fix/mon` subfolder (formerly `fix/gdas`) and copies of the gfs monitor fix files under `fix/products` are removed Resolves NOAA-EMC#1925
- Loading branch information
1 parent
a286a11
commit 04d97e9
Showing
24 changed files
with
490 additions
and
911 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
#! /usr/bin/env bash | ||
|
||
########################################################### | ||
# Global Minimization Monitor (MinMon) job | ||
########################################################### | ||
source "${HOMEgfs}/ush/preamble.sh" | ||
source "${HOMEgfs}/ush/jjob_header.sh" -e "vminmon" -c "base vminmon" | ||
|
||
############################################# | ||
# Determine PDY and cyc for previous cycle | ||
############################################# | ||
# shellcheck disable=SC2153 | ||
GDATE=$(date --utc +%Y%m%d%H -d "${PDY} ${cyc} - ${assim_freq} hours") | ||
export gPDY=${GDATE:0:8} | ||
export gcyc=${GDATE:8:2} | ||
|
||
############################################# | ||
# TANKverf - WHERE OUTPUT DATA WILL RESIDE | ||
############################################# | ||
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS | ||
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_MINMON | ||
YMD=${gPDY} HH=${gcyc} generate_com -rx COM_ATMOS_MINMON_PREV:COM_ATMOS_MINMON_TMPL | ||
|
||
export gsistat="${COM_ATMOS_ANALYSIS}/${RUN}.t${cyc}z.gsistat" | ||
export M_TANKverf=${M_TANKverf:-${COM_ATMOS_MINMON}} | ||
export M_TANKverfM1=${M_TANKverfM1:-${COM_ATMOS_MINMON_PREV}} | ||
|
||
if [[ ! -d ${M_TANKverf} ]]; then mkdir -p -m 775 "${M_TANKverf}" ; fi | ||
if [[ ! -d ${M_TANKverfM1} ]]; then mkdir -p -m 775 "${M_TANKverfM1}" ; fi | ||
|
||
######################################################## | ||
# Execute the script. | ||
"${SCRgfs}/exglobal_atmos_vminmon.sh" | ||
err=$? | ||
if (( err != 0 )); then | ||
exit "${err}" | ||
fi | ||
|
||
################################ | ||
# Remove the Working Directory | ||
################################ | ||
[[ "${KEEPDATA}" = "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
Oops, something went wrong.