Skip to contents

Calculates surface area of a 3D or 2D object.

Usage

surface_area(data)

Arguments

data

DEM in RasterLayer format, mesh3d object or data frame with xy coordinates.

Value

Surface area value.

References

Jenness, J.S. Calculating Landscape Surface Area from Digital Elevation Models. Wildlife Society Bulletin, Vol. 32, No. 3 (Autumn, 2004), pp. 829-839n

Examples

surface_area(mcap)
#> [1] 0.2698101
surface_area(horseshoe)
#> [1] 127.2096
surface_area(mesh_to_2d(mcap))
#> [1] 0.08303158