flatsa | R Documentation |
Calculates the surface area of a flat raster or matrix with the same x, y bounds as the study surface.
flatsa(x)
x |
A raster or matrix. |
This function scales both x and y to between 0 and 1. This is done because most satellite data have units where the x, y units do not equal the z units and because the flat surface area is usually compared to the actual surface area. Surface area is calculated over the sample area (N-1, M-1).
A numeric value representing the scaled surface area of a flattened surface with the same x, y bounds.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate flattened surface area
flatsa(normforest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.