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 branch 'NOAA-EMC:develop' into feature/gmi_on
- Loading branch information
Showing
167 changed files
with
3,454 additions
and
1,947 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
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
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 @@ | ||
experiment: | ||
system: gefs | ||
mode: forecast-only | ||
|
||
arguments: | ||
idate: 1994050100 | ||
edate: 1994050100 | ||
pslot: {{ 'pslot' | getenv }} | ||
app: S2S | ||
resdetatmos: 96 | ||
resensatmos: 96 | ||
resdetocean: 1 | ||
start: 'cold' | ||
nens: 10 | ||
comroot: {{ 'RUNTESTS' | getenv }}/COMROOT | ||
expdir: {{ 'RUNTESTS' | getenv }}/EXPDIR | ||
icsdir: {{ 'TOPICDIR' | getenv }}/HR4/C96mx100 | ||
yaml: {{ HOMEgfs }}/ci/cases/yamls/sfs_defaults.yaml | ||
|
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ defaults: | |
base: | ||
DO_JEDISNOWDA: "YES" | ||
ACCOUNT: {{ 'HPC_ACCOUNT' | getenv }} | ||
DO_TEST_MODE: "YES" |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ base: | |
FCST_BREAKPOINTS: 192 | ||
FHMAX_GFS: 384 | ||
FHMAX_HF_GFS: 120 | ||
DO_TEST_MODE: "YES" |
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,33 @@ | ||
base: | ||
DO_JEDIATMVAR: "NO" | ||
DO_JEDIATMENS: "NO" | ||
DO_JEDIOCNVAR: "NO" | ||
DO_JEDISNOWDA: "NO" | ||
DO_MERGENSST: "NO" | ||
DO_BUFRSND: "NO" | ||
DO_GEMPAK: "NO" | ||
DO_AWIPS: "NO" | ||
KEEPDATA: "YES" | ||
DO_EXTRACTVARS: "NO" | ||
FHMAX_GFS: 2976 | ||
FHMAX_HF_GFS: 0 | ||
FHOUT_HF_GFS: 1 | ||
FHOUT_GFS: 24 | ||
FHOUT_OCN_GFS: 24 | ||
FHOUT_ICE_GFS: 24 | ||
FCST_BREAKPOINTS: "" | ||
REPLAY_ICS: "NO" | ||
HPSSARCH: "NO" | ||
LOCALARCH: "NO" | ||
SFS_POST: "YES" | ||
ACCOUNT: {{ 'HPC_ACCOUNT' | getenv }} | ||
fcst: | ||
TYPE: "hydro" | ||
MONO: "mono" | ||
reforecast: "YES" | ||
FHZER: 24 | ||
stage_ic: | ||
USE_OCN_ENS_PERTURB_FILES: "YES" | ||
USE_ATM_ENS_PERTURB_FILES: "YES" | ||
ocn: | ||
MOM6_INTERP_ICS: "YES" |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ defaults: | |
base: | ||
ACCOUNT: {{ 'HPC_ACCOUNT' | getenv }} | ||
DO_JEDIOCNVAR: "YES" | ||
DO_TEST_MODE: "YES" |
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 |
---|---|---|
|
@@ -17,4 +17,3 @@ nsst: | |
NST_MODEL: "1" | ||
sfcanl: | ||
DONST: "NO" | ||
|
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,43 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import argparse | ||
from wxflow import Configuration | ||
|
||
|
||
def get_config_vars(var_names, config_path): | ||
""" | ||
GET_CONFIG_VARS Get configuration variables from a config file or directory. | ||
Parameters: | ||
var_names (list of str): The names of the configuration variables to retrieve. | ||
config_path (str): The path to the configuration file or directory. | ||
Returns: | ||
list of str: The values of the specified configuration variables. | ||
""" | ||
if os.path.isfile(config_path): | ||
config_dir = os.path.dirname(config_path) | ||
config_file = os.path.basename(config_path) | ||
elif os.path.isdir(config_path): | ||
config_dir = config_path | ||
config_file = 'config.base' | ||
config = Configuration(config_dir) | ||
config_data = config.parse_config(config_file) | ||
return [config_data[var_name] for var_name in var_names] | ||
|
||
|
||
if __name__ == "__main__": | ||
""" | ||
Main entry point for the script. | ||
Parses command-line arguments and retrieves the specified configuration variables. | ||
""" | ||
parser = argparse.ArgumentParser(description="Get configuration variables from a config file or directory.") | ||
parser.add_argument("var_names", nargs='+', help="The names of the configuration variables to retrieve.") | ||
parser.add_argument("config_path", help="The path to the configuration file or directory.") | ||
|
||
args = parser.parse_args() | ||
|
||
var_names = args.var_names | ||
config_path = args.config_path | ||
|
||
values = get_config_vars(var_names, config_path) | ||
print(" ".join(values)) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -41,5 +41,6 @@ Table of Contents | |
hpc.rst | ||
output.rst | ||
run.rst | ||
wave.rst | ||
noaa_csp.rst | ||
errors_faq.rst |
Oops, something went wrong.