spikegornik: Despike ADV data using the GoringNikora phase-space procedure

Description Usage Arguments Details Value Author(s) References Examples

Description

Despike ADV data

Usage

1
2
spikegornik(fpath, outpath = NULL, maxcounter = 5, plotting = TRUE,
  plotwin = c(1, nrow(dt)))

Arguments

fpath

file.path to ADV output where the column of interest is named "Speed"

outpath

file.path to save results. optional.

maxcounter

numeric number of smoothing passes

plotting

logical output progress to plots?

plotwin

numeric vector of length 2 specifying the plotting window

Details

This function is nearly a direct translation of the MacVicar et al. (2014) SpikeGoringNikora.m script from MATLAB to R. Single value spikes are not removed if they are the same as a linear interpolation between adjacent points. Remove measurements where the SNR > 5 per the ADV manual?

Value

data.frame datetime of class POSIXct and speed of class numeric

Author(s)

Joseph Stachelek

References

https://github.com/macvicab/MITT

Examples

1
2
3
4
5
6
7
8
## Not run: 
fpath <- "inst/extdata/2014-10-14_R322_001_Z5-3.dat"
outpath <- "inst/extdata/2014-10-14_R322_001_Z5-3.csv"
res <- spikegornik(fpath)
res <- spikegornik(fpath, outpath)
plot(res, type = "l")

## End(Not run)

jsta/adv documentation built on May 14, 2019, 2:07 p.m.