-
Notifications
You must be signed in to change notification settings - Fork 2
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
Land Mask Issue Near -180 degrees #38
Comments
Thank you for your time to report this issue and to provide a reproducible example! This should be fixed by commit 529bbe3 |
Thank your for looking into this so quickly! The commit works for my purposes. I decided to do a check on the range of possible lats/lons and I ran into a similar issue when the latitude value is exactly 90 or -90. It doesn't affect me, since I don't deal with values at the poles. But I figured I would let you know.
Thanks again! |
Hi,
I'd love to use the land mask to identify if various points are over water or over land. But I ran into an issue. I'm a terrible coder, so I may just be doing something wrong or I'm just not fully understanding what is happening. But here's a MWE of the issue I ran into.
It seems like any value below
-179.87501
(i.e.,-179.87502
; pardon the excessive decimals, I was experimenting) would produce the error above. And for the line in the error message:ERROR: BoundsError: attempt to access 4320×2160 Matrix{UInt8} at index [0, 1080]
, the first index can be0
or-1
depending on how close the longitude is to-180
.Is this expected behavior? Am I doing anything wrong? Or is this a bug?
I'm using Julia 1.7.1 and GeoDataset 0.1.8
Thanks!
The text was updated successfully, but these errors were encountered: