roundprecip: Rounding in precipitation data

Description Usage Arguments Value Examples

View source: R/roundprecip.R

Description

This function splits data by month and looks if a decimal value is repeated too many times

Usage

1
roundprecip(y, blocksize = 20, exclude = 0)

Arguments

y

two columns with date and data

blocksize

maximum number of repeated values with the same decimal

exclude

value to be excluded (zero for precipitation)

Value

list of positions which do not pass this QC test. If all positions pass the test, returns NULL

Examples

1
2
3
4
5
6
#Extract the ECA&D data file from the example data folder
path2inptfl<-system.file("extdata", "RR_SOUID132730.txt", package = "INQC")
#Read the data file
y<-readecad(input=path2inptfl,missing= -9999)[,3:4]
#Find all suspicious positions in the precipitation time series
roundprecip(y,blocksize=20,exclude=0) 

INQC documentation built on May 24, 2021, 5:07 p.m.