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

View source: R/Christian_clean_data_week.R

Christian_clean_data_weekR Documentation

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

Description

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

Usage

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

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


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