dot-zspi: Utils function to calculate the boolean SPI (zSPI) to be used...

.zspiR Documentation

Utils function to calculate the boolean SPI (zSPI) to be used in the CDI

Description

Utils function to calculate the boolean SPI (zSPI) to be used in the CDI

Usage

.zspi(SPI1_data, SPI3_data, threshold_spi1, threshold_spi3)

Arguments

SPI1_data

'SpatRaster' object that contains the SPI-1 data that will be used to calculate the zSPI. This 'SpatRaster' must include the time that corresponds to the dates of the respective layers. They can be set with the function time of the terra package.

SPI3_data

'SpatRaster' object that contains the SPI-3 data that will be used to calculate the zSPI. This 'SpatRaster' must include the time that corresponds to the dates of the respective layers. They can be set with the function time of the terra package.

threshold_spi1

Threshold to construct the Boolean layer for SPI-1. Set to -2 by default.

threshold_spi3

Threshold to construct the Boolean layer for SPI-3. Set to -1 by default.

Value

Returns the zSPI


obaezvil/SpatIndex documentation built on Aug. 9, 2024, 3:42 p.m.