Skip to content

Commit 3beaf01

Browse files
Merge pull request #27 from ConnectedSystems/doc-example-update
Changes to clean up documentation
2 parents ce3e075 + 14cd342 commit 3beaf01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+854
-411
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ Note that since start of development, an updated dataset is incoming (currently
6161

6262
> Fowler, K. J. A., Zhang, Z., and Hou, X.: CAMELS-AUS v2: updated hydrometeorological timeseries and landscape attributes for an enlarged set of catchments in Australia, Earth Syst. Sci. Data Discuss. [preprint], https://doi.org/10.5194/essd-2024-263, in review, 2024.
6363
64-
Climate data was extracted from the [Long Paddock data silo](https://www.longpaddock.qld.gov.au/silo/)
64+
Climate data was sourced from the Climate [Change in Australia](https://www.climatechangeinaustralia.gov.au)
65+
data service. Additional data was extracted from the [Long Paddock data silo](https://www.longpaddock.qld.gov.au/silo/).
6566

6667
## Quick start (single node)
6768

@@ -145,7 +146,7 @@ To display an overview of a node or network:
145146

146147
```julia
147148
julia> node
148-
Name: 406219 [BilinearNode]
149+
Name: 406219 [IHACRESBilinearNode]
149150
Area: 1985.73
150151
┌──────────────┬───────────┬─────────────┬─────────────┐
151152
│ Parameter │ Value │ Lower Bound │ Upper Bound │
@@ -203,14 +204,8 @@ using Streamfall
203204
sn = load_network("Example Network", "../test/data/campaspe/campaspe_network.yml")
204205

205206
# Load climate data, in this case from a CSV file with data for all nodes.
206-
climate_data = CSV.read(
207-
"../test/data/campaspe/climate/climate_historic.csv", DataFrame,
208-
comment="#",
209-
dateformat="YYYY-mm-dd"
210-
)
211-
212207
# Indicate which columns are precipitation and evaporation data based on partial identifiers
213-
climate = Climate(climate_data, "_rain", "_evap")
208+
climate = Climate("../test/data/campaspe/climate/climate.csv", "_rain", "_evap")
214209

215210
# This runs an entire stream network
216211
@info "Running an example stream..."
@@ -252,6 +247,9 @@ through all relevant nodes upstream.
252247
```julia
253248
@info "Running example stream..."
254249
timesteps = sim_length(climate)
250+
251+
reset!(sn)
252+
prep_state!(sn, timesteps)
255253
for ts in (1:timesteps)
256254
for outlet in outlets
257255
run_node!(sn, outlet, climate, ts)

docs/make.jl

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,36 @@ makedocs(sitename="Streamfall Documentation",
1414
pages = [
1515
"index.md",
1616
"primer.md",
17-
"Nodes" => [
18-
"Node.md",
19-
"IHACRES.md",
20-
"HyMod.md",
21-
"GR4J.md",
22-
"SYMHYD.md",
23-
"Dam.md"
24-
],
25-
"network.md",
26-
"use_methods.md",
27-
"metrics.md",
17+
"expected_data_formats.md",
2818
"Examples" => [
19+
"examples/examples.md",
20+
"examples/node_creation.md",
21+
"examples/network_loading.md",
2922
"Calibration" => [
30-
"calibration_setup.md",
31-
"calibration.md",
23+
# "examples/calibration_setup.md",
24+
"examples/calibration.md",
25+
],
26+
"Model evaluation" => [
27+
"examples/simple_showcase.md",
28+
"examples/model_comparison.md",
29+
"examples/simple_multisystem.md",
30+
]
31+
],
32+
"API" => [
33+
"metrics.md",
34+
"Nodes" => [
35+
"API/nodes/Node.md",
36+
"API/nodes/IHACRES.md",
37+
"API/nodes/HyMod.md",
38+
"API/nodes/GR4J.md",
39+
"API/nodes/SYMHYD.md",
40+
"API/nodes/Dam.md"
3241
],
33-
"simple_showcase.md",
34-
"model_comparison.md",
35-
# "multisystem_showcase.md",
42+
"API/plotting.md",
43+
"API/network.md",
44+
"API/climate.md",
45+
"API/use_methods.md"
3646
]
37-
3847
]
3948
)
4049

docs/src/API/climate.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Climate
2+
3+
```@autodocs
4+
Modules = [Streamfall]
5+
Order = [:function, :type]
6+
Pages = ["Climate.jl"]
7+
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
```@autodocs
44
Modules = [Streamfall]
55
Order = [:function, :type]
6-
Pages = ["GR4JNode.jl"]
6+
Pages = ["Nodes/GR4J/GR4JNode.jl"]
77
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
```@autodocs
44
Modules = [Streamfall]
55
Order = [:function, :type]
6-
Pages = ["HyModNode.jl"]
6+
Pages = ["Nodes/HyMod/HyModNode.jl"]
77
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```@autodocs
44
Modules = [Streamfall]
55
Order = [:function, :type]
6-
Pages = ["IHACRESNode.jl"]
6+
Pages = ["Nodes/IHACRES/IHACRESNode.jl"]
77
```
88

99
### IHACRES - Expuh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
```@autodocs
44
Modules = [Streamfall]
55
Order = [:function, :type]
6-
Pages = ["Node.jl"]
6+
Pages = ["Nodes/Node.jl"]
77
```

0 commit comments

Comments
 (0)