r1 <- raster(system.file("external/test.grd", package="raster"))
r2
 <- r1
dataSource(r1)
dataSource(r2)

r2 has its data on 
disk.

--- On Wed, 30/6/10, Agustin Lobo <alobolis...@gmail.com> wrote:

From: Agustin Lobo <alobolis...@gmail.com>
Subject: [R-sig-Geo] Raster:memory or disk?
To: "r-sig-geo" <r-sig-geo@stat.math.ethz.ch>
Cc: agustin.l...@ija.csic.es
Date: Wednesday, 30 June, 2010, 13:58

Hi!

Is there any way to check if the values of a raster object
are in memory or in disk?

For example
r10 <- raster("2000_TSDP_IP-INVDIST-SP10_43023435.tif")
b <- r10

I understand that values of r10 are not loaded in memory
but b is completely in memory (am I wrong?)
How could I actually verify this?

Thanks

Agus

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



      
        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to