Christian_clean_data_week: Function to clean the ESR data (necessary before running...

Description Usage Arguments Details Value Examples

View source: R/Christian_clean_data_week.R

Description

Function to clean the ESR data (necessary before running Christian et al. method)

Usage

1
Christian_clean_data_week(vtime, vET0, vETa, threshold = 1)

Arguments

vtime

data frame column or vector containing date data

vET0

data frame column or vector containing daily potential evapotranspiration (mm.day-1)

vETa

data frame column or vector containing daily actual evapotranspiration (mm.day-1)

threshold

a positive number, indicates the maximum ratio ETa/ET0 allowed.

Details

Due to data and modelling quality, eventualy ETa >> ET0, causing errors, particularly in cold days when ET0 ≈ 0. This function allows the reduction o distortions. Pentads discarded are interpolated.

Value

It returns a list with two elements. A data frame with time stamps and pentad ESR and a matrix with ESR data distributed in a 73 lines (pentads).

Examples

1
2
3
Christian2020_clean_data(vtime = df_d$time,
                         vET0 = ET0$et0, vETa = ETa$eta,
                         threshold = 1)

pedroalencar1/fdClassify2 documentation built on Dec. 22, 2021, 7:38 a.m.