sar | R Documentation |
Calculates the Berry (2002) Surface Area Ratio based on slope
sar(x, s = NULL, scale = TRUE)
x |
A terra SpatRaster object |
s |
cell resolution (default is NULL and not needed if projection is in planar units) |
scale |
(TRUE/FALSE) Scale (row standardize) results |
SAR is calculated as: resolution^2 * cos( (degrees(slope) * (pi / 180)) )
A terra SpatRaster class object of the Surface Area Ratio
Jeffrey S. Evans <jeffrey_evans@tnc.org>
Berry, J.K. (2002). Use surface area for realistic calculations. Geoworld 15(9):20-1.
library(terra)
elev <- rast(system.file("extdata/elev.tif", package="spatialEco"))
( surface.ratio <- sar(elev) )
plot(surface.ratio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.