Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

brick

Convert selected layers of a Satellite object to a RasterBrick


Description

Convert selected layers of a Satellite object to a RasterBrick

Usage

## 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

path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC08*.TIF"), full.names = TRUE)
sat <- satellite(files)

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

satellite

Handling and Manipulating Remote Sensing Data

v1.0.2
MIT + file LICENSE
Authors
Thomas Nauss, Hanna Meyer, Tim Appelhans, Florian Detsch
Initial release
2019-12-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.