powered by
Calculates the Berry (2002) Surface Area Ratio based on slope
sar(x, s = NULL, scale = TRUE)
A terra SpatRaster class object of the Surface Area Ratio
A terra SpatRaster object
cell resolution (default is NULL and not needed if projection is in planar units)
(TRUE/FALSE) Scale (row standardize) results
Jeffrey S. Evans <jeffrey_evans@tnc.org>
SAR is calculated as: resolution^2 * cos( (degrees(slope) * (pi / 180)) )
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)
Run the code above in your browser using DataLab