Closed TheSylex closed 3 months ago
Looks very good! Merging it now since all tests are passing, but will play with the feature later.
We should probably add it to the documentation, but I dont really have time for that now, so I'll keep it as a TODO
For the reference: This feature is now included in OpenDrift 1.11.11, and it switched on by default, with accuracy of 0.001 degrees (~100 meters). A basic illustration is added in this example: https://opendrift.github.io/gallery/example_coastline_options.html
Now you can specify a precision value in degrees to which the particles get their position approximated to the coastline whenever they get stranded. So we're going from this: To this: At barely any cost! 😁