Skip to contents

This function produces a map of variance of CCRI based on input parameters

Usage

hci_variance(
  indices,
  rast,
  global,
  east = NULL,
  west = NULL,
  geoscale,
  res = reso(),
  outdir = tempdir()
)

Arguments

indices

SpatRaster. Collection of risk indices.

rast

SpatRaster. Template for variance output

global

Logical. TRUE if global analysis is desired, FALSE otherwise. east and west are required when TRUE.

east

SpatRaster. Collection of risk indices on eastern extent.

west

SpatRaster. Collection of risk indices on western extent. When TRUE, geoscale is ignored. Default is TRUE.

geoscale

Vector. geographical scale. Default is NULL.

res

Numeric. Map resolution. This value is used in aggregation and dis-aggregation operation. Default is reso().

outdir

Character. Output directory for saving raster in TIFF format. Default is tempdir().

Value

RiskMap. Contains result in the form of SpatRaster objects and file path of the saved maps.