Comments (9)
Wouldn't it be better to depend on the plotting functions of flopy? Thus via #40 provide a nice way to get back from model_ds to the flopy environment. In that case, this issue can be closed.
from nlmod.
I think a lot of flopy's plotting utilities also accept a modelgrid object? So another method would be to build the modelgrid from model_ds, and pass that onto the plotting methods.
I think nlmod.mdims.mgrid.modelgrid_from_model_ds()
can do this? And this object should have methods to obtain the vertices.
edit: wrong path to function
from nlmod.
Ah I didn't see that function. Thanks!
from nlmod.
@dbrakenhoff That function requires gridprops
to be defined. Is there already a function that generates the gridprops
from model_ds
?
from nlmod.
Hmm, good point. The only method that does this I think, is nlmod.mdims.mgrid.create_vertex_grid()
which supports caching, but constructs a completely new grid.
Another option would be to load the mf6 grid object (the .grb
file). From flopy: grb = flopy.mf6.utils.MfGrdFile("flow.disv.grb", verbose=True)
.
Any of these options useful?
from nlmod.
Hmm, not sure if flopy has a method to convert to go from a modelgrid object to a gridprops dictionary... Shouldn't be too complicated, but it might make more sense to convert that method to use a modelgrid object instead of the much less commonly used gridprops dictionary?
from nlmod.
Hmm, not sure if flopy has a method to convert to go from a modelgrid object to a gridprops dictionary... Shouldn't be too complicated, but it might make more sense to convert that method to use a modelgrid object instead of the much less commonly used gridprops dictionary?
I agree, I think the modelgrid-object is a more commonly used object, that can be used to construct a disv-package or to plot model properties.
Is there a way to to save a modelgrid object to a grb-file in Flopy? It seems only MODFLOW is able to do this.
from nlmod.
I am working on adding information from a modelgrid to a model_ds and getting a modelgrid-object from a model_ds (without needing gridprops), will add it when I am finished.
from nlmod.
fixed by #53
from nlmod.
Related Issues (20)
- grid refinement with shapefile HOT 2
- AHN3 wcs niet langer beschikbaar
- HHNK peilgebieden rest not working HOT 2
- calculate_resistance calculates resistance between layers HOT 2
- test run on 'push' confusing
- tqdm progressbar output messy in documentation HOT 6
- UZF-notebook does not contain right output
- Move parts of webservices.py to waterboards.py HOT 1
- Hollands Noorderkwartier arcgis server is now secured and is not accessible by nlmod HOT 3
- nlmod.plot.modelgrid resets axes limits
- Change the way we write nlmod in the documentation and publications to NLmod
- Creating empty packages results in unguided errors HOT 3
- HHNK peilgebieden URL not working HOT 1
- Error in 'get_recharge' HOT 1
- feature: stacked box-plots for some parameter per layer with zonal mask option
- resample methods in to_model_ds HOT 1
- Not all files are installed HOT 1
- Remove delr/delc from dataset
- remove gridtype from dataset attributes HOT 2
- Remove explicit download of executables command from examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlmod.