Can Contours of PlotMapView be esported to Shapefiles? #1527
-
I'm trying to export the contours of a PlotMapView to a shapefile, and the only way I'm identifying is by building geometries from the array of points contained in the matplotlib collections. I wonder if there is an easier way that I am missing. So, looking at this notebook https://github.com/modflowpy/flopy/blob/develop/examples/Notebooks/flopy3.3_PlotMapView.ipynb and this image (plotmapview) coming from notebook cell 31: Is there an already flopy built in command that I am missing and that will allow me to send the lines in the contour_set to a shapefile? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Just to complement, I can get an array of points using |
Beta Was this translation helpful? Give feedback.
-
There is a function to go in the opposite direction (shapefile to patch collection) in the plot utilities |
Beta Was this translation helpful? Give feedback.
-
I believe there is a function called export_contours() in flopy.export.utils. Pretty sure that should help. |
Beta Was this translation helpful? Give feedback.
I believe there is a function called export_contours() in flopy.export.utils. Pretty sure that should help.