Skip to content

Commit

Permalink
Undo DO_ENSEMBLE relocation in config_defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielabdi-noaa committed Mar 9, 2023
1 parent 39fee60 commit 71304ed
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ workflow_switches:
RUN_TASK_VX_POINTSTAT: true
RUN_TASK_VX_ENSGRID: true
RUN_TASK_VX_ENSPOINT: true
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: FV3GFS
FV3GFS_FILE_FMT_ICS: grib2
Expand All @@ -29,6 +28,7 @@ task_get_extrn_lbcs:
task_run_fcst:
WTIME_RUN_FCST: 01:00:00
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 2
verification:
VX_FCST_MODEL_NAME: FV3_GFS_v15p2_CONUS_25km
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ workflow:
INCR_CYCL_FREQ: 12
FCST_LEN_HRS: 6
PREEXISTING_DIR_METHOD: rename
workflow_switches:
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: FV3GFS
USE_USER_STAGED_EXTRN_FILES: true
Expand All @@ -26,4 +24,5 @@ task_get_extrn_lbcs:
LBC_SPEC_INTVL_HRS: 3
USE_USER_STAGED_EXTRN_FILES: true
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 8
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ workflow:
INCR_CYCL_FREQ: 12
FCST_LEN_HRS: 6
PREEXISTING_DIR_METHOD: rename
workflow_switches:
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: FV3GFS
USE_USER_STAGED_EXTRN_FILES: true
Expand All @@ -29,4 +27,5 @@ task_get_extrn_lbcs:
LBC_SPEC_INTVL_HRS: 3
USE_USER_STAGED_EXTRN_FILES: true
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 2
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ workflow:
DATE_LAST_CYCL: '2020081000'
FCST_LEN_HRS: 3
PREEXISTING_DIR_METHOD: rename
workflow_switches:
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: HRRR
USE_USER_STAGED_EXTRN_FILES: true
Expand All @@ -30,6 +28,7 @@ task_get_extrn_lbcs:
EXTRN_MDL_FILES_LBCS:
- '{yy}{jjj}{hh}00{fcst_hr:02d}00'
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 2
DO_SHUM: true
DO_SPPT: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ workflow_switches:
RUN_TASK_MAKE_GRID: false
RUN_TASK_MAKE_OROG: false
RUN_TASK_MAKE_SFC_CLIMO: false
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: FV3GFS
USE_USER_STAGED_EXTRN_FILES: true
Expand All @@ -32,4 +31,5 @@ task_get_extrn_lbcs:
LBC_SPEC_INTVL_HRS: 3
USE_USER_STAGED_EXTRN_FILES: true
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 2
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ workflow:
DATE_LAST_CYCL: '2020081000'
FCST_LEN_HRS: 3
PREEXISTING_DIR_METHOD: rename
workflow_switches:
DO_ENSEMBLE: true
task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: HRRR
USE_USER_STAGED_EXTRN_FILES: true
Expand All @@ -35,4 +33,5 @@ task_run_post:
SUB_HOURLY_POST: true
DT_SUBHOURLY_POST_MNTS: 12
global:
DO_ENSEMBLE: true
NUM_ENS_MEMBERS: 2
2 changes: 2 additions & 0 deletions ush/config.rrfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ workflow_switches:
RUN_TASK_MAKE_OROG: false
RUN_TASK_MAKE_SFC_CLIMO: false
RUN_TASK_PLOT_ALLVARS: false
rrfs:
DO_DACYCLE: true
DO_SURFACE_CYCLE: true
DO_SPINUP: true
Expand Down Expand Up @@ -130,6 +131,7 @@ task_run_graphics:
TILE_LABELS: "full"
TILE_SETS: "full"
global:
DO_ENSEMBLE: false
NUM_ENS_MEMBERS: 9
HALO_BLEND: 20
PRINT_DIFF_PGR: true
21 changes: 13 additions & 8 deletions ush/config_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,12 @@ workflow_switches:
RUN_TASK_POST_STAT_PM25: false
RUN_TASK_BIAS_CORRECTION_O3: false
RUN_TASK_BIAS_CORRECTION_PM25: false

#----------------------------
# DO_ parameters. These look like workflow switches since some
# of them are used in FV3LAM_wflow.xml
#-----------------------------
rrfs:
#
#-----------------------------------------------------------------------
#
Expand Down Expand Up @@ -1345,12 +1351,6 @@ workflow_switches:
#
# Set switches associated with ensembles. Definitions:
#
# DO_ENSEMBLE:
# Flag that determines whether to run a set of ensemble forecasts (for
# each set of specified cycles). If this is set to true, NUM_ENS_MEMBERS
# forecasts are run for each cycle, each with a different set of stochastic
# seed values. Otherwise, a single forecast is run for each cycle.
#
# DO_ENSCONTROL:
# In ensemble mode, whether or not to run member 1 as control member
#
Expand Down Expand Up @@ -1391,7 +1391,6 @@ workflow_switches:
#
#-----------------------------------------------------------------------
#
DO_ENSEMBLE: false
DO_ENSFCST: false
DO_ENSCONTROL: false
DO_GSIOBSERVER: false
Expand Down Expand Up @@ -2554,7 +2553,6 @@ task_make_lbcs:
KMP_AFFINITY_MAKE_LBCS: "scatter"
OMP_NUM_THREADS_MAKE_LBCS: 1
OMP_STACKSIZE_MAKE_LBCS: "1024m"
LBC_SPEC_FCST_HRS: '( {% for h in range(0 if workflow_switches.DO_RRFS_DEV else task_get_extrn_lbcs.LBC_SPEC_INTVL_HRS, task_get_extrn_lbcs.LBC_SPEC_INTVL_HRS + [workflow.FCST_LEN_HRS, workflow.BOUNDARY_LEN_HRS]|max, task_get_extrn_lbcs.LBC_SPEC_INTVL_HRS) %}{{ "%d " % h }}{% endfor %} )'

#----------------------------
# FORECAST config parameters
Expand Down Expand Up @@ -3607,6 +3605,12 @@ global:
#
# Set parameters associated with running ensembles. Definitions:
#
# DO_ENSEMBLE:
# Flag that determines whether to run a set of ensemble forecasts (for
# each set of specified cycles). If this is set to true, NUM_ENS_MEMBERS
# forecasts are run for each cycle, each with a different set of stochastic
# seed values. Otherwise, a single forecast is run for each cycle.
#
# NUM_ENS_MEMBERS:
# The number of ensemble members to run if DO_ENSEMBLE is set to true.
# This variable also controls the naming of the ensemble member directories.
Expand Down Expand Up @@ -3636,6 +3640,7 @@ global:
#
#-----------------------------------------------------------------------
#
DO_ENSEMBLE: false
NUM_ENS_MEMBERS: 0
NUM_ENS_MEMBERS_FCST: 0
ENSMEM_NAMES: '{% for m in range(NUM_ENS_MEMBERS) %} "mem%03d, " % m {% endfor %}'
Expand Down
2 changes: 1 addition & 1 deletion ush/generate_FV3LAM_wflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def generate_FV3LAM_wflow(ushdir, logfile: str = "log.generate_FV3LAM_wflow", de
ensmem_indx_name = ""
uscore_ensmem_name = ""
slash_ensmem_subdir = ""
if expt_config["workflow_switches"]["DO_ENSEMBLE"]:
if expt_config["global"]["DO_ENSEMBLE"]:
ensmem_indx_name = "mem"
uscore_ensmem_name = f"_mem#{ensmem_indx_name}#"
slash_ensmem_subdir = f"/mem#{ensmem_indx_name}#"
Expand Down
2 changes: 1 addition & 1 deletion ush/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ def get_location(xcs, fmt, expt_cfg):
#

# Ensemble verification can only be run in ensemble mode
do_ensemble = workflow_switches["DO_ENSEMBLE"]
do_ensemble = global_sect["DO_ENSEMBLE"]
run_task_vx_ensgrid = workflow_switches["RUN_TASK_VX_ENSGRID"]
run_task_vx_enspoint = workflow_switches["RUN_TASK_VX_ENSPOINT"]
if (not do_ensemble) and (run_task_vx_ensgrid or run_task_vx_enspoint):
Expand Down

0 comments on commit 71304ed

Please sign in to comment.