Closed PerharicC closed 2 months ago
Hi,
This took some time to debug - but turned out to be a dateline issue in reader_netCDF_CF_generic. Since the dataset has a coarse time resolution (monthly), a quite large buffer is read around the given particle, and this was crossing the dateline. This resulted in non-monotonic longitude in the returned datablock, and thus erroneous interpolation.
This commit should fix the issue: https://github.com/OpenDrift/opendrift/commit/9621459e4ddf5542fce80b50621c57eb99c1e557
Thank you for the bug report, with data and reproducible example.
Dear Knut.
Thank you so much, it indeed works! I am closing the issue.
Crtomir
Discussed in https://github.com/OpenDrift/opendrift/discussions/1380