Hello,

Obviously SpatialGridDataFrame can handle multiple attributes associated
with each position in the grid:

y = readGDAL(system.file("pictures/Rlogo.jpg", package = "rgdal")[1])
summary(y)
spplot(y, zcol=1:3, names.attr=c("red","green","blue"),
          col.regions=grey(0:100/100),
          main="example of three-layer (RGB) raster image", as.table=TRUE)


and I can see that I could write a TIFF file for a single attribute using:

writeGDAL(y["red"],  "test.tiff", ...)

Can someone enlighten me as to how I might go about writing multiple
attributes from a SpatialGridDataFrame to TIFF?


Thanks in Advance.

	[[alternative HTML version deleted]]


