eddi_percentile: Function to calculate EDDI in percentiles on a week...

View source: R/eddi_percentile.R

eddi_percentileR Documentation

Function to calculate EDDI in percentiles on a week accumulation time

Description

Function to calculate EDDI in percentiles on a week accumulation time

Usage

eddi_percentile(vtime, vet0, dist = "tukey")

Arguments

vtime

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

vet0

a data.frame column or vector with ordered daily ET0 values. They can be obtained directly from reanalysis/models or from the functions penman_day or hargreaves_day

dist

string containing the distribution used to calibrate EDDI. It can either be 'tukey' following the original method from Hobbings et al (2016) or log-logist' according to Noguera et al. (2021)

Examples

ET0 <- penman_day(vtime = df_d$time, vwind = df_d$wind_speed,
                  vvpd = df_d$vapor_p_def, vtemp = df_d$temperature,
                  vheatflux = (df_d$sensible_heat + df_d$latent_heat))

percentiles_eddi <- eddi_percentile(vtime = de_tha_d$time, ET0$et0, dist = 'tukey')


pedroalencar1/fdClassify documentation built on Sept. 15, 2023, 3:46 a.m.