Skip to content
Prev 21828 / 29559 Next

convert multiple dimension array to raster object/.png/.tif

Chane,
You can use   b <- brick(array)

# for example
library(raster)
r <- raster(ncol=3, nrow=3)
r[] <- 1:ncell(r)
s <- stack(r,r*2,r*3)
a <- as.array(s)
brick(a)


Robert
On Mon, Oct 13, 2014 at 3:00 PM, Chane <zoeeeregister at gmail.com> wrote: