flatsa: Flattened Surface Area

View source: R/surfacearea.R

flatsaR Documentation

Flattened Surface Area

Description

Calculates the surface area of a flat raster or matrix with the same x, y bounds as the study surface.

Usage

flatsa(x)

Arguments

x

A raster or matrix.

Details

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).

Value

A numeric value representing the scaled surface area of a flattened surface with the same x, y bounds.

Examples

# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# calculate flattened surface area
flatsa(normforest)

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.