OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
247 stars 120 forks source link

New coastline interaction functionality implemented #1340

Closed TheSylex closed 3 months ago

TheSylex commented 3 months ago

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: old_stranded - 25s To this: 0 001deg - 26s At barely any cost! 😁

knutfrode commented 3 months ago

Looks very good! Merging it now since all tests are passing, but will play with the feature later.

TheSylex commented 3 months ago

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

knutfrode commented 2 months ago

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