-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add a tool to remove pits from the mesh bathymetry #115
Comments
This looks interesting. This seems to be a common issue. Nate Dill has a Perl script for filling depressions also: https://github.com/natedill/ourPerl/blob/master/AdcircUtils/depressionFiller.pl ... I wonder if there are additional codes out there to address this. |
thanks @HamishB perhaps we should create a folder called "mesh_checks" and put these one off functions there? |
Just to note some tools for filling in pits in raster DEMs, but due to aliasing perhaps it is better to attack the problem after the triangular mesh is created, at least for the case of single node pits. https://grass.osgeo.org/grass78/manuals/r.fill.dir.html I see Nate's code goes after peaks as well as depressions. Are small gradient peaks a problem for ADCIRC too? |
This is interesting @HamishB ... I'm not an expert on DEMs or meshing, so I don't know the rationale for going after small gradient peaks. I just wanted to chime in with something that would hopefully be helpful :-) (like these additional GRASS links). Seems like depression filling could be its own subsystem in the mesh quality assurance process ... |
Yea, @jasonfleming we found that depressions sometimes occur when the mesh resolution is at the scale of man-made structures (~1-10 m) like underpasses, or for example a dredged dock that has a thin separation between the two piers. Interpolation can lead to pockets. Philosophically, I rather edit the mesh than edit the DEM (the source of information). |
I cleaned this up a little bit and will put it in a PR shortly as a new function of the
|
Thanks. Will continue to think about finding & dealing with pits of two or more nodes. A simple way after a tides-only ADCIRC run is to filter the maxele.63 file for nodes where the max elevation is exactly 0.0. (will not catch above MSL depressions, but anecdotally I don't think those are as much trouble as inland ponds with depths below MSL?) |
Note that using the original DEM resolution by creating a separate |
Pits in the bathymetry can make the wetting/drying portion go unstable.
Here's a little code contribution to replace pits with the average bathymetry
of the neighboring nodes, if it may be useful.
The text was updated successfully, but these errors were encountered: