Skip to content

Commit 0a5559d

Browse files
Update docs
1 parent 37961f0 commit 0a5559d

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed
17.1 KB
Loading
487 Bytes
Loading
48.3 KB
Loading

docs/src/examples/weighted_ensembles.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ as the ensemble constituents. The default ensemble is a normalized weighted sum.
66
The usual setup process is shown here, detailed in previous sections of this guide.
77

88
```julia
9-
using YAML, DataFrames, CSV, Plots
9+
using Plots
10+
using CSV, DataFrames
1011
using Statistics
1112
using Streamfall
1213

@@ -28,7 +29,6 @@ Specific node representations can then be created, each representing the same su
2829
A stream network is not considered for this demonstration.
2930

3031
```julia
31-
3232
# Create one instance each of IHACRES_CMD and GR4J
3333
ihacres_node = create_node(IHACRESBilinearNode, "410730", 129.2)
3434
gr4j_node = create_node(GR4JNode, "410730", 129.2)
@@ -87,13 +87,16 @@ low flows as with GR4J.
8787
Comparing the temporal cross section:
8888

8989
```julia
90-
ihacres_xs = temporal_cross_section(burn_dates, burn_obs, ihacres_node.outflow[burn_in:end]; title="IHACRES")
91-
gr4j_xs = temporal_cross_section(burn_dates, burn_obs, gr4j_node.outflow[burn_in:end]; title="GR4J")
92-
ensemble_xs = temporal_cross_section(burn_dates, burn_obs, ensemble.outflow[burn_in:end]; title="Weighted Ensemble (IHACRES-GR4J)")
90+
ihacres_xs = temporal_cross_section(burn_dates, burn_obs, ihacres_node.outflow[burn_in:end]; title="IHACRES", yscale=:log10)
91+
gr4j_xs = temporal_cross_section(burn_dates, burn_obs, gr4j_node.outflow[burn_in:end]; title="GR4J", yscale=:log10)
92+
ensemble_xs = temporal_cross_section(burn_dates, burn_obs, ensemble.outflow[burn_in:end]; title="Weighted Ensemble (IHACRES-GR4J)", yscale=:log10)
9393

9494
plot(ihacres_xs, gr4j_xs, ensemble_xs; layout=(3, 1), size=(800, 1200))
9595
```
9696

97+
!!! note "Log scale"
98+
Note that the metrics shown here are in **log** scale (Median Error when comparing the log of results)
99+
97100
A reduction in the median error can be seen with extreme errors reduced somewhat (according to
98101
the 95% CI).
99102

@@ -111,7 +114,8 @@ bias_corrected_xs = temporal_cross_section(
111114
burn_dates,
112115
burn_obs,
113116
q_star[burn_in:end];
114-
title="Bias Corrected Ensemble"
117+
title="Bias Corrected Ensemble",
118+
yscale=:log10
115119
)
116120

117121
plot(bc_ensemble_qp, bias_corrected_xs; layout=(2,1), size=(800, 800))

0 commit comments

Comments
 (0)