plot_decimals {dataresqc}R Documentation

Plot decimals

Description

Plot year-by-year distribution of the decimals in order to investigate the actual reporting resolution.

Usage

plot_decimals(Data, outfile, startyear = NA, endyear = NA)

Arguments

Data

A character string giving the path of the input file, or a 5 or 7-column matrix (depending on data type) with following columns: variable code, year, month, day, (hour), (minute), value.

outfile

Character string giving the path of the output pdf file.

startyear

First year to plot. If not indicated, all available years until endyear will be plotted.

endyear

Last year to plot. If not indicated, all available years since startyear will be plotted.

Details

The input file must follow the C3S Station Exchange Format (SEF).

Only the first digit after the decimal point is analysed. If there is more than one digit, the data will be rounded to the first decimal place.

Note

For precipitation and other bounded variables one needs to remove the values at the boundaries from the input data (e.g., zeros for precipitation).

Author(s)

Stefan Hunziker, Yuri Brugnara

References

Hunziker et al., 2017: Identifying, attributing, and overcoming common data quality issues of manned station observations. Int. J. Climatol, 37: 4131-4145.

Hunziker et al., 2018: Effects of undetected data quality issues on climatological analyses. Clim. Past, 14: 1-20.

Examples

plot_decimals(Rosario$Tx, outfile = paste0(tempdir(),"/test.pdf"))


[Package dataresqc version 1.1.1 Index]