Skip to content

Commit

Permalink
Put level as the first column in basin.arrow (#1971)
Browse files Browse the repository at this point in the history
The iMOD timeseries plugin shows the first column by default. That is
storage. Most users want to view level first, and have to switch
manually. So this simply puts level first, such that we get:


![image](https://github.com/user-attachments/assets/92e5ae0e-a704-45fd-bf5a-09c35008f8a7)
  • Loading branch information
visr authored Dec 16, 2024
1 parent e8b5439 commit c963001
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ function basin_table(
)::@NamedTuple{
time::Vector{DateTime},
node_id::Vector{Int32},
storage::Vector{Float64},
level::Vector{Float64},
storage::Vector{Float64},
inflow_rate::Vector{Float64},
outflow_rate::Vector{Float64},
storage_rate::Vector{Float64},
Expand Down Expand Up @@ -167,8 +167,8 @@ function basin_table(
return (;
time,
node_id,
storage,
level,
storage,
inflow_rate,
outflow_rate,
storage_rate,
Expand Down
2 changes: 1 addition & 1 deletion core/test/run_models_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
(
:time,
:node_id,
:storage,
:level,
:storage,
:inflow_rate,
:outflow_rate,
:storage_rate,
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/usage.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ column | type | unit
-------------- | ---------| ----
time | DateTime | -
node_id | Int32 | -
storage | Float64 | $\text{m}^3$
level | Float64 | $\text{m}$
storage | Float64 | $\text{m}^3$
inflow_rate | Float64 | $\text{m}^3/\text{s}$
outflow_rate | Float64 | $\text{m}^3/\text{s}$
storage_rate | Float64 | $\text{m}^3/\text{s}$
Expand Down

0 comments on commit c963001

Please sign in to comment.