perc2area: Convert percentage maps to area maps

Description Usage Arguments Value Author(s) See Also Examples

View source: R/perc2area.R

Description

This function converts raster datasets with shares of one single land use classes (0 to 1) into absolute areas (km2). Areas are usually calculated on coarser raster resolution, therefore either an aggregation factor or a target resolution have to be specified. Function is for instance used to convert remote sensing derived land-cover data (e.g ESA CCI) to area values of individual land-cover classes per grid cell.

Usage

1
perc2area(x, fact=NULL, res=NULL, na.rm=T)

Arguments

x

Raster dataset that represents shares of one land-cover/land-use class between 0 and 1.

fact

Spatial aggregation factor

res

Target resolution

na.rm

Sets NA values to 0 while aggregating

Value

Raster stack containing km2 values (and possibly several years) for individual land-cover class

Author(s)

Ulrich Kreidenweis

See Also

readEsaCci

Examples

1
## Not run: perc2area()

pik-piam/geodata documentation built on Nov. 5, 2019, 12:21 a.m.