-
Notifications
You must be signed in to change notification settings - Fork 7
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
Faster Alternative for HIP over a Huge Spatial Area #35
Comments
We may have a subtle bug in For polygons, HIP and BAS are functionally equivalent. |
Thanks for your prompt response, @tmcd82070 ! Just a bit of clarification question. I'm also having a similar issue with hip.points, tried sampling 300 out of 14 million points. Would you recommend the same alternative using |
14 million points is bit big. No guarantee that either HIP or BAS will work on that many; but, tentatively 'yes', BAS should have a better chance of finishing than HIP on that many. I am assuming your points are in a regular lattice. You may end up needing to roll your own routine. I.e., look at the code for |
@adwiputra : Here is a modified version of bas.point with changes I alluded to in the previous comments. If you go this way. let me know whether this worked. (i.e., there still may be issues with 14 million points: Here I've simply commented out a few lines that compute I still think there may be an issue creating 14 million little polygons; so, perhaps the polygon route is your only option at this point.
|
Thanks! My first attempt to run it failed with a 20 GB RAM being used. It returned an error of memory limit. I'm moving the process to a computer with a bigger RAM and will keep you updated about how things go. |
A similar thing occurred after 1 hour running with 128 GB RAM. Interesting. 14 million points are not affordable in the current processing framework I guess. Anyway, thanks for your kind help @tmcd82070 ! |
Hi,
I have been trying to implement the Halton Iterative Partitioning using sdraw function over a 17 million ha SpatialPolygon. I specified the desired number of samples (n=1000) and the process has been running for two weeks now. Now I have to find a quick workaround to obtain the spatially balanced samples, so I tried dividing the area into 250 grids and then run the SDraw with a smaller number of samples (n=4) to get as many samples (1000).
Will this workaround violate any spatial balance that would otherwise be obtained from the actual HIP? Will it be safe to assume that the result will be spatially balanced, even though not ideally balanced?
Thanks so much!
The text was updated successfully, but these errors were encountered: