check_adv: performs user-specified checks on adv data

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

checks data for various quality metrics

Usage

1
check_adv(chunk.adv, tests = "all", verbose = FALSE, ...)

Arguments

chunk.adv

a data.frame created with load.ADV, with the window.idx column

tests

a character array of test names, or 'all' to run all tests

verbose

boolean for diagnostic print outs

...

additional args passed to check functions

Details

a GDopp function for checking data quality.

Value

failed, T or F

Author(s)

Jordan S. Read

References

Vachon, Dominic, Yves T. Prairie, and Jonathan J. Cole. The relationship between near-surface turbulence and gas transfer velocity in freshwater systems and its implications for floating chamber measurements of gas exchange. Limnology and Oceanography 55, no. 4 (2010): 1723.

Kitaigorodskii, S. A., M. A. Donelan, J. L. Lumley, and E. A. Terray. Wave-turbulence interactions in the upper ocean. Part II. Statistical characteristics of wave and turbulent components of the random velocity field in the marine surface layer. Journal of Physical Oceanography 13, no. 11 (1983): 1988-1999.

#'Lien, Ren-Chieh, and Eric A. D'Asaro. Measurement of turbulent kinetic energy dissipation rate with a Lagrangian float. Journal of Atmospheric and Oceanic Technology 23, no. 7 (2006): 964-976.

See Also

get_adv_checks

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
folder.nm  <- system.file('extdata', package = 'GDopp')
file.nm <- "ALQ102.dat"
data.adv <- load_adv(file.nm=file.nm, folder.nm =folder.nm)
window.adv <- window_adv(data.adv,freq=32,window.mins=10)
chunk.adv <- window.adv[window.adv$window.idx==7, ]
check_adv(chunk.adv,tests=c('signal.noise_check_adv','frozen.turb_check_adv'),verbose=TRUE)
check_adv(chunk.adv,tests = 'beam.correlation_check_adv', verbose=TRUE, correlation_threshold = 95)
## low threshold
check_adv(chunk.adv,tests = 'beam.correlation_check_adv', verbose=TRUE, correlation_threshold = 55)

check_adv(chunk.adv,tests = 'signal.noise_check_adv', verbose=TRUE, signal_threshold = 15)
## higher ratio requirement
check_adv(chunk.adv,tests = 'signal.noise_check_adv', verbose=TRUE, signal_threshold = 50)

## End(Not run)

USGS-R/GDopp documentation built on May 9, 2019, 6:09 p.m.