GPPFourierPreprocess: Pre-process O2 data for GPP calculation

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

View source: R/GPPFourier.R

Description

Removes longer term trend of time series and confine series to integer number of days

Usage

1
2
3
GPPFourierPreprocess(x, dt = NULL, units = c("days", "hours", "mins"),
  Detrend = TRUE, filter = TRUE, Nfilt = NULL, circular = FALSE,
  sides = 2)

Arguments

x

A vector containing consecutive O2 concentrations, sampled at regular intervals (time step = dt).

dt

Sampling time step. Class difftime, or numeric when units are provided.

units

Units of sampling time step

Detrend

Toggle time series detrending

filter

Toggle time series filtering

Nfilt

Moving average filter width (see documentation of filter())

circular

Moving average boundary condition (see documentation of filter())

sides

Moving average central or one sided (see documentation of filter())

Details

GPPFourierPreprocess() is called by GPPFourier() to pre-process the time series before calculating the Fourier amplitude at diel frequency and estimate GPP.

Value

A list with components

filt

The long term trend

res

The original series without the long term trend, confined to an integer number of days

indices

The indices of the subset of the series that are retained, after filtering and confining to an integer number of days.

Author(s)

Tom Cox <tom.cox@uantwerp.be>

References

Cox T.J.S. et al. (2015) 'Estimating primary production from oxygen time series: a novel approach in the frequency domain', Limnology And Oceanography:Methods 13, 529-552. DOI: 10.1002/lom3.10046

See Also

GPPFourier, GPPFourier_t, WindowGPPFourier, WindowGPPFourier.gts


GPPFourier documentation built on Sept. 22, 2017, 5:06 p.m.