-
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.
environment and example scirpt changes
- Loading branch information
Showing
5 changed files
with
44 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
# Contains the structs that define the static and dynamic environment that configures/forces the river model. | ||
export StaticEnvironment, DynamicEnvironment, Environment | ||
|
||
# Static Data Objects | ||
struct StaticEnvironment | ||
# static data objects | ||
"Directory containing list of all basins" | ||
routing_lv_basins_dir::String | ||
"Directory containing attribute csv" | ||
attributes_dir::String | ||
"Basin mapping dictionary" | ||
graph_dict::Dict | ||
end | ||
|
||
# Dynamic Data Objects | ||
struct DynamicEnvironment | ||
# timeseries objects | ||
# date/time - index map | ||
timeseries_dir::String | ||
"Directory containing forcing timeseries csv" | ||
forcing_timeseries_dir::String | ||
"Directory to store simulation results" | ||
output_dir::String | ||
end | ||
|
||
struct Environment{SE <: StaticEnvironment, DE <: DynamicEnvironment} | ||
"Static data objects" | ||
static_env::SE | ||
dyn_env::DE | ||
graph_dict::Dict | ||
"Dynamic data objects" | ||
dynamic_env::DE | ||
end | ||
|
||
# get_static(env, :name) | ||
# get_dynamic(env, :name, time=date/time) |
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