-
Notifications
You must be signed in to change notification settings - Fork 172
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 'origin/develop' into feature/fire_blending
- Loading branch information
Showing
104 changed files
with
2,091 additions
and
945 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ skip_ci_on_hosts: | |
- gaea | ||
- 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,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 |
---|---|---|
@@ -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 |
---|---|---|
|
@@ -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)) |
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
Oops, something went wrong.