spatial_clip {eseis} | R Documentation |
Clip values of spatial data.
Description
The function replaces raster values based on different thresholds.
Usage
spatial_clip(data, quantile, replace = NA, normalise = TRUE)
Arguments
data |
|
quantile |
|
replace |
|
normalise |
|
Value
SpatRaster
object, data set with clipped values.
Author(s)
Michael Dietze
Examples
## load example data set
data(volcano)
## convert matrix to raster object
volcano <- terra::rast(volcano)
## clip values to those > quantile 0.5
volcano_clip <- spatial_clip(data = volcano,
quantile = 0.5)
## plot clipped data set
terra::plot(volcano_clip)
[Package eseis version 0.7.3 Index]