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

Unable to use this for true spatial data, as geographic coordinates are rounded to the nearest integer. #7

Open
echelleburns opened this issue Jun 24, 2018 · 1 comment

Comments

@echelleburns
Copy link

I'm using true latlong data in order to run simulation models, in which individuals were collected at a specific location. However, running this simulation rounds the latlong coordinates to the nearest whole integer, causing the entire run to be hundred of miles off of the true start location.

@miguel-porto
Copy link
Owner

miguel-porto commented Jun 25, 2018

Hello,
Yes you're right, for performance reasons, the coordinates are internally converted to integers. This is so, in order to increase the speed of the simulations.
Either you convert to projected coordinates before, or you can multiply the geographic coordinates by a constant, say, 100000 - but note that this option will be biased for large spatial extents because the simulations run in an euclidean space.
We will change the documentation in order to make explicit that the package works in projected coordinates, sorry.
EDIT:
Actually this is not exactly as I said above (initially it was but I changed it later); the simulations do run in double precision. Only the starting coordinates are converted to integers, but that's completely unneeded now, that's an unfortunate remain of the past. I'll change this ASAP.
In any case, the same recommendation applies - simulations should be carried out with projected coordinates because the simulation space is euclidean.

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

2 participants