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

Description Usage Arguments Examples

View source: R/eddi_percentile.R

Description

Function to calculate EDDI in percentiles on a week accumulation time

Usage

1
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

1
2
3
4
5
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/fdClassify2 documentation built on Dec. 22, 2021, 7:38 a.m.