Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Plotting water table for Unstructured Grid #2163

Open
kerrybardot opened this issue Apr 22, 2024 · 3 comments
Open

bug: Plotting water table for Unstructured Grid #2163

kerrybardot opened this issue Apr 22, 2024 · 3 comments
Labels
Milestone

Comments

@kerrybardot
Copy link

Unstructured grids with pinch outs (i.e. different number of cells per layer) don't seem plottable...

Heads are in array shape [1,1,nnodes] and no longer in layer format.

Am I asking too much to detect the upper most wet cell in each "pillar" and plot the water table? This code plots blank.

head = gwf.output.head().get_data()
mm = flopy.plot.PlotMapView(model=gwf)
mm.plot_array(head, edgecolor="0.5")
mm.plot_grid()
plt.show()

image

@jlarsen-usgs
Copy link
Contributor

Hi @kerrybardot

Can you zip up and attach a minimally reproducable version of the model (Discretization file and any external files associated, and a head file)? I'll take a look at it and see what the issue might be. Thanks

@langevin-usgs
Copy link
Contributor

Wonder if this would work with a flatten on the end?

head = gwf.output.head().get_data().flatten()

@kerrybardot
Copy link
Author

kerrybardot commented Apr 25, 2024 via email

@wpbonelli wpbonelli added this to the 3.7.0 milestone May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants