clip_bands {satres} | R Documentation |
Clip all the bands based on a polygon
Description
Clips all bands of each spatial resolution according to the given polygon.
Usage
clip_bands(sr, polygon)
## S3 method for class 'satres'
clip_bands(sr, polygon)
Arguments
sr |
A |
polygon |
A |
Details
It performs the operation independently of the CRS of the polygon and preserves the CRS of the bands.
Value
A satres
object.
See Also
Other satellite transformation:
merge_tiles()
,
select_bands()
Examples
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)
[Package satres version 1.1.1 Index]