getStatsAroundPoint: Get the mean raster values around a point

Description Usage Arguments Value See Also

View source: R/getStatsAroundPoint.R

Description

This is applies raster::extract() but does some checking on the projection of the inputs. Set d=0 to get value at the points.

Usage

1
getStatsAroundPoint(p, r, d = 100, na.rm = FALSE)

Arguments

p

the points as a sp::SpatialPoints object

r

the raster as a raster::raster object

d

distance to average around the point. Distance is in the units of the points and raster objects

na.rm

whether to remove NAs in the raster when computing the average

Value

raster values around the points

See Also

checkunits()


UW-Upwelling-Project/imageryML documentation built on Dec. 18, 2021, 6:11 p.m.