Spatialreference or equivilent for Disv-grid (mf6) #467
-
Hi, I've been struggling a bit with the pstfrom module since it needs information about the grid dimensions by use of the function SpatialReference. As this functionality revolves around a structured x, y-grid approach I cant come up with a way to set it up for my unstructured models. I have looked into some older threads on the topic where there are suggestions of an approach; pyemu/autotest/pst_from_tests.py Line 2840 in e1ce35a However, it feels a bit overcomplicated, especially for me whos not really fluent in python (or programming for that matter). Since the thread is from 2021, I was wondering if anyone has come up with a more elegant and ready to go solution since then? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
We are actively working on pypestutils (https://github.com/pypest/pypestutils) and it has native support for unstructured grids in realm of both parameters and model post processing (like mod2obs, etc). Its not quite ready-to-go, but Ive got a few examples and some helpers setup on my fork (will be merged into the main repo soon) that work on a quadtree variant of the Freyeberg model and it seems to be working. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'm kind of a python newbie, so I really still need examples to
work with.
Atleast it makes things much easier. Which function would i use in
pypestutils for this operation and how would I call it?
Sincerely
David
Den ons 25 okt. 2023 21:57J Dub ***@***.***> skrev:
… @DStrom1987 <https://github.com/DStrom1987> Im sure what is happening
with that disv stuff - Im not an unstructured grid person. But pypestuils
can get grid info it needs from the MODFLOW-6 binary grid file (grb)
(assuming you set the xorigin, yorigin, and angrot options in the disv
package)...so you dont need flopy to use pypestutils...feel free to open
issues and discussions on pypestutils as well!
—
Reply to this email directly, view it on GitHub
<#467 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARYO5IEVITI7IIIAIVQVRR3YBFVKXAVCNFSM6AAAAAA6MUBNDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOBVGEYTE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Of course!
Perhaps that's why the functions I'm calling are not recognized. I think
I'll wait for the release since I dont have so much time on my hands in the
coming days anyway.
Sincerely
David
Den ons 25 okt. 2023 kl 22:53 skrev J Dub ***@***.***>:
… The develop branch of pypestuils has some examples
<https://github.com/pypest/pypestutils/tree/develop/examples>.
Admittedly, we need to make a new release so that the latest version of
pypestutils is available to work with these examples (unless you are ok
building the library yourself? - build instructions
<https://github.com/pypest/pypestutils/blob/main/BUILD.md>). Otherwise,
we are planning a release in the next couple of days...stay tuned!
—
Reply to this email directly, view it on GitHub
<#467 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARYO5IFFVHRL5U5MNXWT2TTYBF34VAVCNFSM6AAAAAA6MUBNDKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGOBVG4YDG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
We are actively working on pypestutils (https://github.com/pypest/pypestutils) and it has native support for unstructured grids in realm of both parameters and model post processing (like mod2obs, etc). Its not quite ready-to-go, but Ive got a few examples and some helpers setup on my fork (will be merged into the main repo soon) that work on a quadtree variant of the Freyeberg model and it seems to be working.