Skip to content
Prev 163797 / 398506 Next

readAsciiGrid memory issues

<Alexander.Herr <at> csiro.au> writes:
runs out of memory. I have 4Gb ram
This function is written for small rasters only, and is not suited to data of 
this size.
that enable to read in large
Use rgdal, preferably using a tiled approach, leaving at least 75% of your 
memory free initially, because operations on the tile will result in copies. 
See several threads on R-sig-geo on handling large data sets, including one at:

https://stat.ethz.ch/pipermail/r-sig-geo/2008-November/004486.html

Also visit the raster package on R-Forge, which may offer a packaged solution to
this.

Roger Bivand