flatsa: Flattened Surface Area

Description Usage Arguments Details Value Examples

View source: R/surfacearea.R

Description

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

Usage

1
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

1
2
3
4
5
# import raster image
data(normforest)

# calculate flattened surface area
flatsa(normforest)

geodiv documentation built on Sept. 5, 2021, 5:26 p.m.