Skip to content

Functions to plot BCs for vertex-grid using existing MF-files generated externally? #2155

Answered by wpbonelli
DStrom1987 asked this question in Q&A
Discussion options

You must be logged in to vote

If i call the function for rch like below:

ml.npf.rch.plot()

flopy.mf6.ModflowGwfnpf is the node property flow package, it does not have an rch attribute.

I also saw an example where the function ml.rch.rech.plot(kper="all", masked_values=[0.0], colorbar=True) is used to plot the rch-array.

This gives me "AttributeError: 'ModflowGwfrch' object has no attribute 'rech'"

Only flopy.modflow.ModflowRch (non-mf6) has a rech attribute.

To plot recharge for an mf6 model, you can use e.g. PlotMapView.plot_bc("RCH"), see plot_grid() here for example. Or more generally, you can pass an array of data to PlotMapView.plot_array(), see plot_recharge() here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DStrom1987
Comment options

Answer selected by DStrom1987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants