0

I have the wave height data in grid format that I would like to convert to vector layer or contour with similar wave height. The current data looks like this, enter image description here

And I would like to create a layer similar to how bathymetry layer (Sea depth layer) looks here from above data format, enter image description here

I tried using various turfjs methods for isolines and clustering but they didn't seem to give desired output. I'm considering algorithms like marching band, convex hull etc. but not sure what will be the right approach here. Trying convex hull gave output like this, enter image description here

Clustering based on custom logic grouping similar values with step count of 0.5 gave something like this, the clustering look okay but some part of created polygon is going on land, enter image description here

Here is the geojson file if anyone would like to give it a try, Wave Height Data Gist

NOTE: These are near real sample values.

Siddharth Sharma
  • 1,653
  • 2
  • 19
  • 35

0 Answers0