Description Usage Arguments Examples
Convert selected layers of a Satellite object to a RasterStack
1 2 |
x |
an object of class 'Satellite' |
layer |
character vector (bcde codes) or integer vector (index) of the layers to be stacked |
... |
additional arguments passed on to |
1 2 3 4 5 6 | path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC08*.TIF"), full.names = TRUE)
sat <- satellite(files)
stck <- stack(sat, c("B001n", "B002n", "B003n"))
stck
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.