Learn R Programming

spatialEco (version 2.0-2)

sar: Surface Area Ratio

Description

Calculates the Berry (2002) Surface Area Ratio based on slope

Usage

sar(x, s = NULL, scale = TRUE)

Value

A terra SpatRaster class object of the Surface Area Ratio

Arguments

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

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Details

SAR is calculated as: resolution^2 * cos( (degrees(slope) * (pi / 180)) )

References

Berry, J.K. (2002). Use surface area for realistic calculations. Geoworld 15(9):20-1.

Examples

Run this code
 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