CHLNDDEV / OceanMesh2D

A two-dimensional triangular mesh generator with pre- and post-processing utilities written in pure MATLAB (no toolboxes required) designed specifically to build models that solve shallow-water equations or wave equations in a coastal environment (ADCIRC, FVCOM, WaveWatch3, SWAN, SCHISM, Telemac, etc.).
https://github.com/sponsors/krober10nd
GNU General Public License v3.0
179 stars 65 forks source link

Fill values not detected #257

Open krober10nd opened 2 years ago

krober10nd commented 2 years ago

Describe the bug DEMs created with for instance ArcPro have a fill value set to 1e+38. This value is not picked up by ncread and then can negatively impact interpolation of topobathymetry to the mesh vertices.

Proposed fix Put in a logic in GridData to catch abs(bathymetry) values larger than Mariana's trench and set them to NaN.