Commit a9f0dba3 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

add notebook to demonstrate usage of evalhyd-cpp

parent b83c4e74
No related merge requests found
Showing with 203 additions and 0 deletions
+203 -0
%% Cell type:markdown id: tags:
## `evalhyd-cli` demonstration
%% Cell type:code id: tags:
``` C++14
! evalhyd --help
```
%% Cell type:markdown id: tags:
### Deterministic evaluation
%% Cell type:markdown id: tags:
Visualise streamflow observations
%% Cell type:code id: tags:
``` C++14
# shape: {1, time: 4}
! cat "data/obs.csv"
```
%% Cell type:markdown id: tags:
Visualise streamflow predictions
%% Cell type:code id: tags:
``` C++14
# shape: {series: 1, time: 4}
! cat "data/prd.csv"
```
%% Cell type:markdown id: tags:
Compute Nash-Sutcliffe efficiency
%% Cell type:code id: tags:
``` C++14
# shape: {series: 1, subsets: 1, samples: 1}
! evalhyd evald "data/obs.csv" "data/prd.csv" "NSE"
```
%% Cell type:markdown id: tags:
### Probabilistic evaluation
%% Cell type:markdown id: tags:
Visualise streamflow observations
%% Cell type:code id: tags:
``` C++14
# shape: {sites: 1, time: 5}
! cat "data/obs/site_a.csv"
```
%% Cell type:markdown id: tags:
Visualise streamflow predictions
%% Cell type:code id: tags:
``` C++14
# shape: {sites: 1, lead times: 1, members: 3, time: 5}
! cat "data/prd/leadtime_1/site_a.csv"
```
%% Cell type:markdown id: tags:
Visualise streamflow thresholds
%% Cell type:code id: tags:
``` C++14
# shape: {sites: 1, thresholds: 2}
! cat "data/thr/site_a.csv"
```
%% Cell type:markdown id: tags:
Compute Brier score
%% Cell type:code id: tags:
``` C++14
# shape: {sites: 1, lead times: 1, subsets: 1, samples: 1, thresholds: 2}
! evalhyd evalp "data/obs" "data/prd" "BS" --q_thr "data/thr" --events "high"
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment