Re: [R-sig-Geo] random selection of cells in raster based on distance from xy locations

2012-04-03 Thread Daisy Englert Duursma
Hello, The example code I supplied also runs in less than a minute on my computer Windows 7, 64-bit R 2.14.0 My actual mask raster is much larger and at a finer resolution then the one in my example. My raster: dimensions : 1800, 4320, 7776000 (nrow, ncol, ncell) resolution : 0.0834, 0.083

Re: [R-sig-Geo] random selection of cells in raster based on distance from xy locations

2012-04-02 Thread Michael Sumner
What is the actual error when R "runs out of memory"? This works with no problems for me (Windows 7, 64-bit R 2.15.0), it runs in less than a minute, and watching the R process in Task Manager it never takes up more than about 150Mb. How much memory does your machine have? If it's 64-bit you ough

[R-sig-Geo] random selection of cells in raster based on distance from xy locations

2012-04-02 Thread Daisy Englert Duursma
Hi, I am trying to create an xy table of the center of random cells in a raster mask. These cells must occur within a certain distance from xy locations. I have successfully found 2 ways of doing this, but both run out of memory (R 64-bit version 2.14.0) when using very large datasets. I think I h