> Is there any way to check if the values of a raster object > are in memory or in disk?
Also have a look at "dataContent" > library(raster) > r <- raster(system.file("external/test.grd", package="raster")) > dataSource(r) [1] "disk" > dataContent(r) [1] "nodata" > > r <- readAll(r) > dataSource(r) [1] "disk" > dataContent(r) [1] "all" > > r <- r + 1 > dataSource(r) [1] "ram" > dataContent(r) [1] "all" > > r <- raster(r) > dataSource(r) [1] "ram" > dataContent(r) [1] "nodata" ((note: This is subject to changes in the near future. In past versions, you could have several values for dataContent (row, rows, block) that are no longer allowed. With only two values left for both functions, in the future this will become valuesFromDisk (TRUE or FALSE), and valuesInMemory (TRUE or FALSE) )) > > --- 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 > _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo