sa | R Documentation |
Finds the average roughness of a surface (Sa) as the absolute deviation of surface heights from the mean surface height. Height is measured as the value of a raster and may not necessarily represent actual height.
sa(x)
x |
A raster or matrix. |
A value of average roughness in the units of the original raster or matrix.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the surface roughness
roughness <- sa(normforest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.