[R-sig-Geo] Extracting a z-subset from a rasterStack object

Jonathan Greenberg greenberg at ucdavis.edu
Fri May 28 00:55:35 CEST 2010


I'm thinking I'm missing something obvious -- if I want to make a new
raster stack which is a subset of another raster stack, how do I go
about doing this?  Neither of these worked:

data_sub=stack(data_stack,bands=c(10,20))
data_sub=stack(data_stack,index=c(10,20))

data_stack is a rasterStack of 1500 layers...

Thanks!

--j



More information about the R-sig-Geo mailing list