-
Notifications
You must be signed in to change notification settings - Fork 8
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
Elements created outside of the Polygon defined as domain. #137
Comments
This looks strange. Something like this shouldn't happen. The best guess I have is that during the conversion and crs-transformation of shape into PSLG for Jigsaw, something happens to the edges that results in holes in the shape. Can you please plot the output of the geometry multipolygon? import geopandas as gpd
shape = geom1.get_multipolygon()
gpd.GeoDataFrame(geometry=[shape]).to_file('your/path.shp') By the way is there any specific reason you're using collector size function instead of raster based? |
Here is the plot of the Polygon im using. I have attached the <.shp> file as well. By the way is there any specific reason you're using collector size function instead of raster based? |
I see, it makes sense to use collector in that case. Thanks for the domain shape; I can't promise when I'll be able to get to testing it though. One suggestion I have is to simplify the shape and try again to see if the issue is resolved or not; try different tolerances and both |
Thanks @SorooshMani-NOAA . Actually, something really odd was going on. Besides that issue with the polygon I had noticed that my mesh resolution was all weird and not following the specs I was specifying at all. I had installed ocsmesh with conda (as recommended), so I created a new conda env and this time installed using pip ... Now it seems to work as expected i.e. the mesh nicely follows the contour I'm specifying. I have no idea why ... I ran into another issue though, for a more complex case geometry case where I used
instead of Running the meshing I got that error, ever got something like this ? I'll try to use
I'll try to define a multi polygon with the islands in there, and use that as geometry, to see if that could be a workaround. |
I'm glad that your issue is resolved. The error seems to be related to x-server. OCSMesh uses matplotlib to calculate contours, so it internally creates figures, axes, etc. and this can result in issues sometimes, see #131. I suggest that you try the workaround in that ticket, by calling |
Oh thanks ! yes indeed this solves the other issue I had ! thanks for your reactivity - greatly appreciated. |
Hi there @SorooshMani-NOAA , and thanks a lot for your tool.
Im trying to mesh a domain defined as a Polygon, but I am getting some elements created outside of it ..playing with expansion rate seems to have an effect of the amount of "unwanted" elements , but I haven't found a solution to strictly enforce that mesh extent.
Any recommendations or hints ??
Thanks
The text was updated successfully, but these errors were encountered: