View source: R/GeostTextureLibrarySharedRoxy.R
circularDispersionGV | R Documentation |
Compute circular variance of aspect (i.e. of the gradient vector)
circularDispersionGV(inraster, window)
inraster |
The DEM from which compute the index |
window |
The moving window adopted for computing the index |
The raster with the computed index
# Gradient vector dispersion using a circular search window of radius 3.
library(terra)
dem=rast(paste(system.file("extdata", package = "SurfRough"), "/trento1.tif",sep=""))
w=KernelCircular(3)
roughGrad=circularDispersionGV(dem,w)
plot(roughGrad)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.