Replies: 2 comments 1 reply
|
We've put a fair bit of thought into this, but it's not all cross-referenced. This seems as good a place as any. Essentially, we want to be able to go smoothly between
Given any of the above, the others corresponding to it should be easily discoverable. There was some (early) discussion in #63. #120 got the ball rolling, modulo #278 sketches a design for an xarray extension, the main entry point for which would be a #160 will add spatial awareness for package data in 2 dimensions. User can choose between geopandas/xarray as needed, they each have their pros and cons. #199 is a typical user story: you have a grid cell index, you want to know geometry/hydraulic/BC data in that cell. #345 and #346 are loosely related to all this insofar as features (e.g. connections, cross section points) must be addressable in some way in order to correlate them with anything else. |
|
Thanks for pulling this together, @mjreno and @wpbonelli . The coordinate <--> cell/feature index <--> BC-feature (ifno/name) triangle is the right framing, and it's what lets you swap a grid without hand-rebuilding index bookkeeping. The piece I'd push hardest on is unstructured grids, and the BC-feature layer specifically. Redirecting .grid to .ugrid for DISV covers array topology, but SFR reaches / LAK lakes / UZF cells / connections need their own stable feature-name/id (cells map that UGRID doesn't model) ideally keyed off source geometry so it survives a grid rebuild. Roughly the shape I'd love to be able to write: |
Uh oh!
There was an error while loading. Please reload this page.
From user feedback: a recurring friction point in GIS-driven MF6 workflows is that relating model inputs/outputs back to real-world features requires knowing internal indices — reach numbers, UZF info numbers, grid cell numbers — rather than being able to query by geometry or feature ID. This makes it harder to change grids or package specs without rebuilding that
indexing by hand. Worth exploring what a "spatially aware" FloPy 4 API could look like — e.g. package data addressable by feature/geometry, consistent CRS propagation throughout. Opened to track discussion; feedback and related issues welcome.
All reactions