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

subset

Subset of Satellite object data layers


Description

Create a subset of data layers from a Satellite object and return it as a standalone Satellite object.

Usage

## S4 method for signature 'Satellite'
subset(x, sid, cid)

## S4 method for signature 'Satellite,ANY,ANY'
x[[i]]

Arguments

x

Satellite object providing the source band(s) to be adjusted.

sid

Band numbers or bcde which should be extracted

cid

Calibration information used for subsetting (only works if sid is not supplied to the function)

i

Layer index(es) for subsetting.

Value

A Satellite object

A Satellite object

A Satellite object

Examples

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

sat[[2:5]]
subset(sat, cid = "SC")

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.