Learn R Programming

satres (version 1.1.1)

select_bands: Select bands by spatial resolution and name

Description

Select the bands of an object based on spatial resolution and band name.

Usage

select_bands(sr, res, bands)

# S3 method for satres select_bands(sr, res = NULL, bands = NULL)

Value

A satres object.

Arguments

sr

A satres object.

res

A string, spatial resolution.

bands

A string, band name.

See Also

satres

Other satellite transformation: clip_bands(), merge_tiles()

Examples

Run this code

esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa) |>
     select_bands(res = c("r2000m", "r6000m"), bands = c("B02", "B03", "B04"))

Run the code above in your browser using DataLab