impossible_values | R Documentation |
Applicable to a series (daily or sub-daily) of relative humidity (rh) in percent or to a series of cloud cover (n) in percent or oktas.
impossible_values(series, meta = NULL, outpath)
series |
A character string giving the path of the SEF file, or a five or seven-column (daily or subdaily) data frame with the series. |
meta |
A character vector with 6 elements: station ID, latitude, longitude,
altitude, variable code, units. If |
outpath |
Character string giving the path for the QC results. |
Input:
A SEF file or a data frame and metadata. The observations data frame must have five or seven columns: variable code, year (YYYY), month (MM), day (DD), (hour (HH), minute (MM)), observation.
Output:
A text file of flagged observations with six or eight columns: variable code, year (YYYY), month (MM), day (DD), (hour (HH), minute (MM)), observation, test. The test column has the description "gross_errors".
The flagged observations correspond to values that don't belong to the integer interval (0, 100) if the unit is percent or that don't belong to the integer interval (0, 9) if the unit is oktas.
Clara Ventura, Yuri Brugnara
impossible_values(series = Rosario$n, meta = Meta$n, outpath = tempdir())
impossible_values(series = Rosario$rh, meta = Meta$rh, outpath = tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.