brick: convert selected layers of a Satellite object to a...

Description Usage Arguments Examples

Description

Convert selected layers of a Satellite object to a RasterBrick

Usage

1
2
## S4 method for signature 'Satellite'
brick(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 brick

Examples

1
2
3
4
5
6
path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC8*.tif"), full.names = TRUE)
sat <- satellite(files)

brck <- brick(sat, c("B001n", "B002n", "B003n"))
brck

satellite documentation built on May 29, 2017, 11:19 p.m.

Search within the satellite package
Search all R packages, documentation and source code