Description Usage Arguments Value Author(s)
Extract data from Raster*
snips based on selector from
Spatial*
objects. Aside from the actual raster values, the mean,
standard deviation, variance as well as the same values based on the
mahalanobis distance within a buffer can be returned.
This function is usefull if the snips have been
computed by snipRaster
using a selector ID since in this case,
the sequence of snips is not related to the sequence of Spatial*
entities in the vector layer.
1 2 | extractFromRasterSnips(raster, spatial, selector = NULL, buffer = 0,
mahal = FALSE)
|
raster |
|
spatial |
|
selector |
Selector variable, if not NULL, only one raster tile per unique value of the selector variable is created (e.g. if one has multiple observations per single geographical location). |
buffer |
Buffer size (default 0 does not add a buffer) if the mean and standard deviation within the buffer should be retruned, too. |
mahal |
Compute mahalanobis distance mean, standard deviation and variance. |
A SpatialPointDataFrame
object with the values of the raster added to the attribute
table.
Thomas Nauss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.