rtqc_attenuation: Attenuation Test

Description Usage Arguments Value Examples

View source: R/rtqc.r

Description

Perform a signal attenuation test. For more information see U.S. Integrated Ocean Observing System, 2015. Manual for Real-Time Quality Control of In-situ Temperature and Salinity Data Version 2.0: A Guide to Quality Control and Quality Assurance of In-situ Temperature and Salinity Observations. 56 pp. DOI: 10.7289/V5V40SD4.

Usage

1
rtqc_attenuation(x, threshold, n.obs, ...)

Arguments

x

A vector of values.

threshold

A length-2 vector specifying "suspect" and "fail" thresholds for the minimum standard deviation of a set of observations.

n.obs

The number of observations, including the current observation, to use for calculating standard deviation.

...

Other arguments to pass to stats::sd(), i.e., the argument na.rm.

Value

An ordered factor of test flags of same length as x.

Examples

1
2
fake.data = sin(seq(0, 10, by = 0.1) * pi) * seq(10, 0, by = -0.1)
rtqc_attenuation(fake.data, c(1, 0.5), 10)

mkoohafkan/wqptools documentation built on May 2, 2021, 8:12 p.m.