Skip to content

Add Basin / subgrid_time table#1975

Merged
visr merged 16 commits into
mainfrom
subgrid-time
Dec 20, 2024
Merged

Add Basin / subgrid_time table#1975
visr merged 16 commits into
mainfrom
subgrid-time

Conversation

@visr

@visr visr commented Dec 13, 2024

Copy link
Copy Markdown
Member

Fixes #1010

This adds Basin / subgrid_time. So far the only relation we could update over time was Q(h) (TabulatedRatingCurve / time), and that is implemented differently. I wrote #1976 to get those more in line. It's good to read that since it explains the implementation here.

Things I dislike:

  • Need a special case to allow an underscore in Basin / subgrid_time, just like Basin / concentration_.
  • Other dynamic tables are just named time and have a static counterpart like Basin / static, Basin / time. Since we already have Basin / subgrid we cannot do that.

@visr
visr marked this pull request as ready for review December 16, 2024 15:25

@evetion evetion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document the construction of the new interpolation objects? That inner loop is opaque to me (with complexted indexlookups etc).

Comment thread core/src/parameter.jl Outdated
Comment thread core/src/parameter.jl Outdated
Comment thread core/src/parameter.jl Outdated
Comment thread core/src/read.jl Outdated
Comment thread core/src/write.jl
Comment thread core/src/read.jl
Comment thread core/src/read.jl
Comment thread core/src/read.jl
Comment thread core/src/read.jl Outdated
Comment thread core/src/read.jl Outdated
cache_parameters = true,
)
# # These should only be pushed when the subgrid_id has changed
if subgrid_id_time[end] != subgrid_id

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, not sure if I get it, but if we group by subgrid_id, this will always be true?

Comment thread core/src/parameter.jl Outdated
Comment thread core/src/read.jl Outdated
Comment thread core/src/read.jl
@evetion

evetion commented Dec 20, 2024

Copy link
Copy Markdown
Member

Friday afternoon eh. You better not make a release after this, but enjoy the weekend 🎉

@visr
visr merged commit aecf57f into main Dec 20, 2024
@visr
visr deleted the subgrid-time branch December 20, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time dependent subgrid

2 participants