hci_diff {geohabnet} | R Documentation |
Calculate difference map
Description
This function produces a map of difference b/w mean and sum indexes in rank of cropland harvested area fraction.
Usage
hci_diff(x, y, global, geoscale, res = reso(), outdir = tempdir())
Arguments
x |
SpatRaster. |
y |
SpatRaster. |
global |
Logical. |
geoscale |
Numeric vector. |
res |
Numeric. Map resolution. This value is used in aggregation and dis-aggregation operation.
Default is |
outdir |
Character. Output directory for saving raster in TIFF format.
Default is |
Details
Ideally, the function is tested to yield desired results when
length(which(y[] > 0)) > length(which(x[] > 0))
.
Value
RiskMap. Contains result in the form of SpatRaster
objects
and file path of the saved maps.
[Package geohabnet version 2.1.3 Index]