Skip to content
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

fiboGrid() bug #41

Open
edzer opened this issue Oct 26, 2017 · 0 comments
Open

fiboGrid() bug #41

edzer opened this issue Oct 26, 2017 · 0 comments

Comments

@edzer
Copy link
Owner

edzer commented Oct 26, 2017

Hi Edzer,

I found a bug using the spsample() to generate Fibonacci points when setting the sampling polygons to be the entire globe that is my bbox of the Spatial polygon is

min max

x -180 180
y -90 90

This causes a problem when using the function fiboGrid() which converts the coordinates by the following

if (max(xlim) <= 180)
subtr = 180
else
subtr = 0

“max(bbox[1, ]) <=180” actually returns “FALSE” even though in my example max(bbox[1,]) is 180.
It would be great if you could change the code in the future to deal with this numerical issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant