daily_spi: Standardised precipitation index calculated for a specific...

View source: R/SPI_SPEI_at_specific_day.R

daily_spiR Documentation

Standardised precipitation index calculated for a specific day.

Description

Standardised precipitation index calculated for a specific day.

Usage

daily_spi(params_list, P_lyr)

Arguments

params_list

A list object that contains a 'SpatRaster' of 365 layers for each parameter of the selected distribution.

P_lyr

'SpatRaster' object that contains spatially-distributed monthly data for a specific date (e.g., " This object contains the daily accumulated values of a specific day according to the scale provided. This object can be computed with the 'spi_agregate_daily' function. This 'SpatRaster' must only contain the days that corresponds to the specific selection.

Value

This function returns one layer of SPI-n according to a selected day. The input object 'Prod_data' has to be created before, which can be achieved with the 'spi.agregate_daily' function.


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