clip_bands | R Documentation |
Clips all bands of each spatial resolution according to the given polygon.
clip_bands(sr, polygon)
## S3 method for class 'satres'
clip_bands(sr, polygon)
sr |
A |
polygon |
A |
It performs the operation independently of the CRS of the polygon and preserves the CRS of the bands.
A satres
object.
satres
Other satellite transformation:
merge_tiles()
,
select_bands()
file <- system.file("extdata", "lanjaron.gpkg", package = "satres")
lanjaron <- sf::st_read(file, layer = "lanjaron_bbox", quiet = TRUE)
esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa) |>
clip_bands(polygon = lanjaron)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.