crop,RasterList-method {rasterList} | R Documentation |
Crop
methods for a RasterList-class
object.
Description
Crop
methods for a RasterList-class
object.
Usage
## S4 method for signature 'RasterList'
crop(x, y, check.RasterList = TRUE, ...)
Arguments
x |
a valid object |
y |
a Spatial Object or an Extent |
check.RasterList |
logical value. If it is |
... |
further arguments |
Value
a "cropped" RasterList-class
object
Examples
precf <- system.file("map/Mekrou_precipitation.grd", package="rasterList")
prec <- stack(precf)
## Sample L-moments
if (requireNamespace("lmom",quietly = TRUE)) {
library(lmom)
samlmom <- stack(rasterList(prec,FUN=samlmu))
## Fitting a Random Probability Distribution: it is a 'rasterList' Object
fitdist <- rasterList(samlmom,FUN=pelgam)
##### ZOOM IN
## set a mask
mask <-raster( extent(fitdist)/4 )
fitdist_masked <- crop ( x = fitdist,y=mask)
}
[Package rasterList version 0.5.20 Index]