SurfaceArea | R Documentation |
Calculates surface area on a per cell basis of a DTM based on Jenness, 2004.
SurfaceArea(
r,
na.rm = FALSE,
filename = NULL,
overwrite = FALSE,
wopt = list()
)
r |
DTM as a SpatRaster or RasterLayer in a projected coordinate system where map units match elevation/depth units |
na.rm |
Logical indicating whether to remove NAs from calculations. When FALSE, the sum of the eight triangles is calculated. When TRUE, the mean of the created triangles is calculated and multiplied by 8 to scale it to the proper area. |
filename |
character Output filename. |
overwrite |
logical. If TRUE, filename is overwritten (default is FALSE). |
wopt |
list with named options for writing files as in writeRaster |
a SpatRaster or RasterLayer
Jenness, J.S., 2004. Calculating landscape surface area from digital elevation models. Wildlife Society Bulletin 32, 829-839.
r<- rast(volcano, extent= ext(2667400, 2667400 +
ncol(volcano)*10, 6478700, 6478700 + nrow(volcano)*10),
crs = "EPSG:27200")
sa<- SurfaceArea(r)
plot(sa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.