powered by
Select the bands of an object based on spatial resolution and band name.
select_bands(sr, res, bands)# S3 method for satres select_bands(sr, res = NULL, bands = NULL)
# S3 method for satres select_bands(sr, res = NULL, bands = NULL)
A satres object.
satres
A string, spatial resolution.
A string, band name.
Other satellite transformation: clip_bands(), merge_tiles()
clip_bands()
merge_tiles()
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