subset | R Documentation |
Create a subset of data layers from a Satellite
object and return it
as a standalone Satellite
object.
## S4 method for signature 'Satellite'
subset(x, sid, cid)
## S4 method for signature 'Satellite,ANY,ANY'
x[[i]]
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. |
A Satellite object
A Satellite object
A Satellite object
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.