stack: Convert selected layers of a Satellite object to a...

stackR Documentation

Convert selected layers of a Satellite object to a RasterStack

Description

Convert selected layers of a Satellite object to a RasterStack

Usage

## S4 method for signature 'Satellite'
stack(x, layer = names(x), ...)

Arguments

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 stack

Examples

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


environmentalinformatics-marburg/satellite documentation built on Feb. 10, 2024, 2:56 p.m.