getArea.SpatRaster: Calculates the Area of a Raster from SpatRaster.

View source: R/change_functions.R

getArea.SpatRasterR Documentation

Calculates the Area of a Raster from SpatRaster.

Description

getArea reports the area of a SpatRaster object using terra::expanse

Usage

## S3 method for class 'SpatRaster'
getArea(x, byValue, ...)

Arguments

x

SpatRaster

byValue

Logical. If TRUE, the area for each unique cell value is returned.

...

Addition arguments based on input format

Value

The total area of the cells of interest in km2

Author(s)

Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com

See Also

Other Change functions: getArea.RasterLayer(), getArea.SpatVect(), getArea.SpatialPolygons(), getArea.sf(), getAreaLoss(), getArea(), getDeclineStats()


redlistr documentation built on Oct. 3, 2023, 9:07 a.m.