View source: R/Christian_clean_data_week.R
Christian_clean_data_week | R Documentation |
Function to clean the ESR data (necessary before running Christian et al. method)
Christian_clean_data_week(vtime, vET0, vETa, threshold = 1)
vtime |
data frame column or vector containing |
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. |
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.
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).
Christian2020_clean_data(vtime = df_d$time,
vET0 = ET0$et0, vETa = ETa$eta,
threshold = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.