View source: R/Combined_drought_indices.R
spatial_cdi | R Documentation |
Combined Drought Indicator (CDI; Cammalleri et al. 2021)
spatial_cdi(
SPI1_data,
SPI3_data,
zSM,
zfAPAR,
threshold_spi1 = -2,
threshold_spi3 = -1
)
SPI1_data |
'SpatRaster' object that contains spatially-distributed SPI-1 data that will be used to calculate the CDI. 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 spatially-distributed SPI-3 data that will be used to calculate the CDI. 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. |
zSM |
'SpatRaster' object that contains spatially-distributed zSM data that will be used to calculate the CDI (to calculate this index see the 'spatial_zscore' function). 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. |
zfAPAR |
'SpatRaster' object that contains spatially-distributed zfAPAR data that will be used to calculate the CDI (to calculate this index see the 'spatial_zscore' function). 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. @param threshold_spi1 Threshold to convert the SPI-1 data to a Boolean 'SpatRaster' (1 values > threshold; 0, otherwise). The default value of this threshold is -2 (Cammalleri et al. 2021). #' @param threshold_spi3 Threshold to convert the SPI-3 data to a Boolean 'SpatRaster' (1 values > threshold; 0, otherwise). The default value of this threshold is -1 (Cammalleri et al. 2021). |
Spatially-distributed CDI values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.