extractFromRasterSnips: Extract data from 'Raster*' snips based on selector from...

Description Usage Arguments Value Author(s)

View source: R/extractFromRasterSnips.R

Description

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.

Usage

1
2
extractFromRasterSnips(raster, spatial, selector = NULL, buffer = 0,
  mahal = FALSE)

Arguments

raster

Raster* object

spatial

SpatialPointDataFrame object

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.

Value

A SpatialPointDataFrame object with the values of the raster added to the attribute table.

Author(s)

Thomas Nauss


environmentalinformatics-marburg/satelliteTools documentation built on March 24, 2018, 4:08 a.m.