Crop Satellite object
## S4 method for signature 'Satellite' crop(x, y, subset = TRUE, snap = "near")
x |
Satellite object. |
y |
|
subset |
Logical; if |
snap |
Direction towards which to align the extent as |
Crop layers of a Satellite object to the size of a given
raster::extent
object.
A Satellite object consisting of cropped layers only. If
subset = FALSE
, a Satellite object with the cropped layers appended.
Please refer to the respective functions for references.
This function is a wrapper for raster::crop
.
## Not run: ## sample data path <- system.file("extdata", package = "satellite") files <- list.files(path, pattern = glob2rx("LC08*.TIF"), full.names = TRUE) sat <- satellite(files) ## geographic extent of georg-gassmann-stadium (utm 32-n) ext_ggs <- raster::extent(484015, 484143, 5627835, 5628020) ## crop satellite object by specified extent sat_ggs <- crop(sat, ext_ggs) plot(sat) plot(sat_ggs) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.