suspectacumprec: Detects precipitation values above limit

Description Usage Arguments Value Examples

View source: R/suspectacumprec.R

Description

This function detects values above limit preceded by a number of "non precipitation days", given by tolerance

Usage

1
suspectacumprec(datos, limit = 2000, tolerance = 10)

Arguments

datos

two columns vector, date and data, in the ECA&D format

limit

threshold/limit value for atmospheric precipitation

tolerance

how many consecutive days with 0 or NA you need to jump

Value

list of positions which do not pass this QC test

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
datos<-readecad(input=path2inptfl,missing= -9999)[,3:4]
#Find all suspicious positions in the precipitation time series
suspectacumprec(datos,limit=2000,tolerance=10)

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