-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57776ec
commit 39c8181
Showing
12 changed files
with
375 additions
and
253 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Read the Docs configuration file for MkDocs projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
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,4 @@ | ||
## Writing Routed Flows to Disc | ||
|
||
You can override the default function used by river-route when writing routed flows to disc. The MuskingumCunge class | ||
calls a private method. |
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,8 @@ | ||
# API Documentation | ||
|
||
::: river_route.MuskingumCunge | ||
handler: python | ||
options: | ||
members_order: source | ||
show_root_heading: true | ||
show_source: false |
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,54 @@ | ||
## Configuration File | ||
|
||
River Route computations are controlled by several variables. You can pass these variables as keyword arguments to the | ||
corresponding functions or provide a path to a configuration file. Supported file formats for config files are YAML or | ||
JSON. Config files specify the following parameters: | ||
|
||
1. Paths to input and output files | ||
2. Options to control how the routing is performed | ||
3. Options to control the numerical solver and tolerances | ||
4. Information about the structure of the input and output files if non-standard | ||
5. Logging parameters | ||
|
||
## Minimum Required Inputs | ||
|
||
Every river-route process needs at least the following 4 variables | ||
|
||
- `routing_params_file` - path to the [routing parameters file](io-files.md#routing-parameters) (parquet) | ||
- `connectivity_file` - path to the river network [connectivity file](io-files.md#connectivity-file) (parquet) | ||
- `runoff_volumes_file` - path to the prepared [runoff volumes file](io-files.md#catchment-volumes) (netCDF) | ||
- `outflow_file` - path where the [routed flows](io-files.md#routed-discharge) output file will be saved (netCDF) | ||
|
||
## Config Options Table | ||
|
||
The following table is a complete list of all configuration options and their purpose. | ||
|
||
| Parameter Name | Required | Type | Group | Description | | ||
|---------------------|----------|-----------|---------------------|-----------------------------------------------------------------------| | ||
| routing_params_file | True | File Path | Required Input | Path to the routing parameters parquet file. | | ||
| connectivity_file | True | File Path | Required Input | Path to the network connectivity parquet file. | | ||
| runoff_volumes_file | True | File Path | Required Input | Path to the netCDF with runoff values to be routed. | | ||
| outflow_file | True | File Path | Required Input | Path where the outflows netCDF file should be saved. | | ||
| dt_routing | True | Integer | Compute Options | Time interval in seconds between routing computations. | | ||
| dt_outflows | False | Integer | Compute Options | Time interval in seconds between writing flows to disc. | | ||
| routing | False | String | Compute Options | The routing method to use: "linear" or "nonlinear". | | ||
| runoff_type | False | String | Compute Options | Specify if runoff files are "sequential" time steps or an "ensemble" | | ||
| initial_state_file | False | File Path | Initialization Data | Path to the initial state file. | | ||
| final_state_file | False | File Path | Initialization Data | Path where the final state file should be saved. | | ||
| log | False | Boolean | Logging Options | Whether to enable logging. | | ||
| progress_bar | False | Boolean | Logging Options | Whether to display a progress bar when routing | | ||
| log_level | False | String | Logging Options | The logging level to print: DEBUG, INFO, CRITICAL, WARNING | | ||
| log_stream | False | String | Logging Options | The destination for log messages: 'stdout', 'stderr', or a file path. | | ||
| job_name | False | String | Logging Options | A name for this job printed in logs and debug statements. | | ||
| var_runoff_volume | False | String | File Management | Name of the variable in files containing runoff volumes | | ||
| var_river_id | False | String | File Management | Name of the variable in all files that contains the river IDs. | | ||
| var_outflow | False | String | File Management | Name of the variable in the outflows file that contains the outflows. | | ||
| solver_atol | False | Float | Solver Options | Absolute tolerance for the solver. | | ||
|
||
## Example YAML File | ||
|
||
An example yaml file is given below with the default values prepopulated where possible. | ||
|
||
```title="Example Config YAML" | ||
--8<-- "../../config_files/config.yaml" | ||
``` |
Oops, something went wrong.