Skip to content
Prev 8739 / 29559 Next

Unable to read image because a memory limitation

On Fri, Jul 9, 2010 at 7:58 PM, Francisco Mauro Guti?rrez
<pmaurogut at hotmail.com> wrote:

            
It depends on what else your computer is doing. And how much RAM your
machine has. This image has 5x5300x5500 =~ 150 mega-cells, and each
one will take up four bytes as a floating point number (single
precision) so there's your 650Mb. If your operating system doesn't
have 650Mb spare then R will fail at that point. If this is a Windows
PC with 1G of RAM then I can well imagine it not coping - in fact I'd
think if it was a 2G machine then it would still struggle. 4G might do
it, but it will still be slow.

 You might want to try sampling from the raster using the region.dim
and/or output.dim options of readGDAL until you can find a machine
with more RAM.

Barry