Skip to content

Commit

Permalink
Add dataframe to matrix conersion exphydro example
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierbonte committed Dec 13, 2024
1 parent b6f238c commit 5377325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/tutorials/run_exphydro_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ file_path = "data/exphydro/01013500.csv"
data = CSV.File(file_path)
df = DataFrame(data)
ts = collect(1:10000) # Time series length
input_ntp = (lday=df[ts, "dayl(day)"], temp=df[ts, "tmean(C)"], prcp=df[ts, "prcp(mm/day)"])
input = Matrix(reduce(hcat, collect(input_ntp[[:temp, :lday, :prcp]]))')
```

Input variables include:
Expand Down

0 comments on commit 5377325

Please sign in to comment.