extend | R Documentation |
The function is a wrapper around extend
to easily
extend a Satellite object to a larger spatial extent.
## S4 method for signature 'Satellite'
extend(x, y, subset = TRUE, value = NA)
x |
Satellite object. |
y |
Target |
subset |
Logical. If |
value |
Fill value assigned to new cells passed to
|
A Satellite object consisting of extended layers only or, if
subset = FALSE
, a Satellite object with the extended layers appended.
This function is a wrapper around extend
.
## 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(482606.4, 482781.4, 5627239, 5627489)
## extend satellite object by specified extent
sat_ggs <- extend(sat, ext_ggs)
plot(sat)
plot(sat_ggs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.