.zspi | R Documentation |
Utils function to calculate the boolean SPI (zSPI) to be used in the CDI
.zspi(SPI1_data, SPI3_data, threshold_spi1, threshold_spi3)
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. |
Returns the zSPI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.