Skip to content

Commit

Permalink
Add config notes (#810)
Browse files Browse the repository at this point in the history
* add notes for compute parameters

* add notes for network topology parameters

* add notes for output parameters

* add notes for logging parameters

* add notes for config

* add type hinting for root_validators

* remove v4_config_outline file

* add sample, simple configuration files
  • Loading branch information
shorvath-noaa authored Sep 19, 2024
1 parent a0eaeab commit eed1f8a
Show file tree
Hide file tree
Showing 8 changed files with 666 additions and 336 deletions.
45 changes: 45 additions & 0 deletions doc/sample_config_MCOnly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# $ python -m nwm_routing -f -V4 sample_MCOnly.yaml

# Usage: Parameters that have "#REQUIRED" must be updated by user. All other parameters
# should not be altered.

# This example serves as the simplest configuration file one can use to perform a
# Muskingum-Cunge (MC) only routing simulation. This means there is no reservoir routing
# (underlying flowpaths within waterbodies are routed using MC), no data assimilation, and
# no diffusive routing.

# This defaults to computing routing in serial. If you would like to enable parallel routing,
# you can adjust the 'compute_parameters -> parallel_compute_method:' and
# 'compute_parameters -> cpu_pool:' (see documentation).

# This defaults to creating 1 netcdf output file for every hour of simulation time, each file
# containing 12 time steps (1 every 5 minutes, t-route's default time step). Output files
# are configurable, see documentation.

#--------------------------------------------------------------------------------
log_parameters:
#----------
showtiming: True
log_level : DEBUG
#--------------------------------------------------------------------------------
network_topology_parameters:
#----------
supernetwork_parameters:
#----------
geo_file_path: #REQUIRED
#--------------------------------------------------------------------------------
compute_parameters:
#----------
restart_parameters:
#----------
start_datetime: #REQUIRED
forcing_parameters:
#----------
nts : #REQUIRED
qlat_input_folder : #REQUIRED
qlat_file_pattern_filter: #REQUIRED
#--------------------------------------------------------------------------------
output_parameters:
#----------
stream_output :
stream_output_directory: #REQUIRED
47 changes: 47 additions & 0 deletions doc/sample_config_MC_with_waterbodies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# $ python -m nwm_routing -f -V4 sample_MC_with_waterbodies.yaml

# Usage: Parameters that have "#REQUIRED" must be updated by user. All other parameters
# should not be altered.

# This example serves as a simple configuration file one can use to perform a
# Muskingum-Cunge (MC) with reservoir routing simulation. This means there is no data assimilation
# and no diffusive routing.

# This defaults to computing routing in serial. If you would like to enable parallel routing,
# you can adjust the 'compute_parameters -> parallel_compute_method:' and
# 'compute_parameters -> cpu_pool:' (see documentation).

# This defaults to creating 1 netcdf output file for every hour of simulation time, each file
# containing 12 time steps (1 every 5 minutes, t-route's default time step). Output files
# are configurable, see documentation.

#--------------------------------------------------------------------------------
log_parameters:
#----------
showtiming: True
log_level : DEBUG
#--------------------------------------------------------------------------------
network_topology_parameters:
#----------
supernetwork_parameters:
#----------
geo_file_path: #REQUIRED
waterbody_parameters:
#----------
break_network_at_waterbodies: True
#--------------------------------------------------------------------------------
compute_parameters:
#----------
restart_parameters:
#----------
start_datetime: #REQUIRED
forcing_parameters:
#----------
nts : #REQUIRED
qlat_input_folder : #REQUIRED
qlat_file_pattern_filter: #REQUIRED
#--------------------------------------------------------------------------------
output_parameters:
#----------
stream_output :
stream_output_directory: #REQUIRED
189 changes: 0 additions & 189 deletions doc/v4_config_outline.yaml

This file was deleted.

Loading

0 comments on commit eed1f8a

Please sign in to comment.