daily_spei: Standardised precipitation evapotranspiration index...

View source: R/SPI_SPEI_at_specific_day.R

daily_speiR Documentation

Standardised precipitation evapotranspiration index calculated for a specific day. This function is a wrapper function of daily.spi

Description

Standardised precipitation evapotranspiration index calculated for a specific day. This function is a wrapper function of daily.spi

Usage

daily_spei(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.