This function checks range of values for METData
and implements
various test on daily weather data (persistence tests, internal
consistency tests) provided by the user.
qc_raw_weather_data( daily_weather_data, info_environments, path_flagged_values, et0 = F )
daily_weather_data | a
Additional weather data provided by user must be a subset of the following weather variable names (= next columns): (Any imputation step should be performed before providing this daily weather dataset to the package. ):
Default is |
---|---|
info_environments |
The data.frame should contain as many rows as Year x Location combinations. Example: if only one location evaluated across four years, 4 rows should be present. |
path_flagged_values | where to save the file with flagged values to check on (they are not removed from the data, only indicated in the output file) |
et0 | whether evapotranspiration should be calculated. False by default. |
daily_weather_data a data.frame
after quality check with the
same columns as before the QC.
Vapor pressure deficit is calculated if T2M_MIN, T2M_MAX, and either
RH2M_MIN + RH2M_MAX or only RH2M are provided.
et0 calculated if indicated (et0 = TRUE) .
The function checks for multiple daily observations at the same EnvID.
Warning messages are also thrown if some observations do not pass either
the range test, persistence test or the internal consistency test. A
data.frame, with dubious values signaled by a column flagged and with the
corresponding explanation in the column "reason", is provided as output.
None of the flagged values is assigned as missing values or transformed;
therefore we strongly recommend the user to have a second look at the daily
weather data provided and to correct potential dubious values indicated by
the output of the present function.
Solar radiation or wind data are automatically retrieved from NASA, if they
are not provided without any missing data by the user. As for any other
weather variable used in this function, these data cannot be only partially
provided (no missing values accepted).
Zotarelli L, Dukes MD, Romero CC, Migliaccio KW, Morgan KT (2010). “Step by step calculation of the Penman-Monteith Evapotranspiration (FAO-56 Method).” Institute of Food and Agricultural Sciences. University of Florida.
Cathy C. Westhues cathy.jubin@uni-goettingen.de