Description Usage Arguments Author(s)
Focal extraction from a raster object A function to extract raster values from neighbourhood of points.
1 2 3 4 5 6 7 8 | focalExtract(
r,
p,
neighbourhood = c(3, 3),
fun = mean,
na.rm = TRUE,
progress = TRUE
)
|
r |
raster layer |
p |
the spatial point or sf objects |
neighbourhood |
the dimention of the neighourhood kernel |
fun |
function to summarize the extracted values (e.g. mean). If no function is provided, a list is retuned |
na.rm |
logical. If na.rm=TRUE (the default value), NA values are removed before fun is applied. |
progress |
logical. Show a progress par. |
Roozbeh Valavi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.