f_spei: Standard Precipitation Evaporation Index calculation

View source: R/Auxiliar_functions.R

f_speiR Documentation

Standard Precipitation Evaporation Index calculation

Description

Internal funciton to calculate the SPEI

Usage

f_spei(vtime, vdeficit, n)

Arguments

vtime

a data.frame column or vector with daily time stamps (Date type)

vdeficit

a data.frame column or vector with daily hydrological deficit obtained by the difference of precipitation and potential evapotranspitation (P - ET0)

n

a natural number that indicates the accumulation time (pentad, week, month, etc)

Value

The function return a list with two elements. One data frame with time stamped pentad values and a matrix with years organized in columns.


pedroalencar1/DroughtSDF documentation built on May 8, 2023, 6:58 p.m.