-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Particle longitudes are wrongly interpolated when crossing the antimeridian #1337
Comments
Oh! Are you here using the unstructured or regular/generic netCDF reader? There are some basic dateline-tests in OpenDrift, but they do apparently not cover this problem:
If you could make a minimal reproducible example, I can have a look at it. |
This was with the generic netCDF reader. Note that strangely, particles will only "pop by" those odd longitudes for at most a few timesteps, after which they reappear where they should be. In that sense the bug is not criticial. I cannot seem to reproduce this in a minimal example, neither with a simple constant reader crossing the antimeridian nor with the original CMEMS product. I did however note that in the original run that produced the weird longitudes, I have been getting quite a few of those To give you an idea what I was trying (note the negative timestep for a backtrajectory):
|
Ok, yes this is a bit strange. The "Data block too small" warnings also pop up when particles are the edge of a reader, and thus then sound a bit misleading. Anyway, the problem could be related to that, or perhaps to reader methods |
Yes, my plan was to reproduce the bug, then find out it was the parquet writer all along... If it is though, the issue is more intermittent. Given that the CMEMS product I used is global, the only place the block size issue can have occurred is at the antimeridian, so definitely something to look into (not before the summer though). |
When particles cross the antimeridian, they suddenly pop up at roughly (not exactly) at -90, 0, or 90 degrees longitude, see attached image and csv (from one trajectory only).
gh-issue.csv
The text was updated successfully, but these errors were encountered: