Description Usage Arguments Value References See Also Examples
Calculate GPP(t) from by complex demodulation of O2 time series
1 2 3 |
x |
Regularly sampled O2 time series. x can be a dataframe with time (POSIXt) in first column and O2 concentrations in second column or a vector of concentrations sampled with time step = dt |
dt |
Sampling time step. Either a difftime object or a numerical value.
When |
units |
Unit of sampling time step. |
Nfilt |
Moving average filter width for detrending time series. See |
nf |
Number of iterative applications of moving average filter, to reduce filter width |
NLowPass |
Moving average filter width for low pass filtering demodulated O2 series. See |
fDL |
Optional. Relative fraction of light hours during the day. When |
MAcorrect |
correction factor for moving average filter |
phi |
Latitude |
lambda |
Longitude |
... |
Other parameters to be passed to GPPFourierPreprocess |
Data frame with time and GPPt column.
Cox et al (2017). Tune in on 11.57 muHz and listen to primary production. Biogeosciences Discussions. doi:10.5194/bg-2017-81
GPPFourierPreprocess
, GPPFourier
, WindowGPPFourier.gts
, SunRiseSet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Calculate GPP(t) by complex demodulation of simulated water column time series
# More examples in vignette("GPPFourier").
dt <- as.numeric(difftime(watercolumn$time[2], watercolumn$time[1] , units="days"))
Nfilt <- 1/dt
GPPt <- GPPFourier_t(watercolumn[,c("time", "O2")],
dt=dt,
units="days",
Detrend=TRUE,
filter=TRUE,
Nfilt=Nfilt,
NLowPass=Nfilt,
fDL=NULL,
circular=FALSE,
sides=2,
nf=1)
par(mfrow=c(2,1), cex=1.2)
plot(watercolumn[,c("time", "O2")], type="l", xlab="", ylab=expression(paste(O[2], " [", mu, "M]")))
title(main="Water column")
plot(GPPt, type="l", lwd=3, ylim=c(0,30), xlab="", ylab="GPP")
lines(watercolumn[,c("time","GPP")], col="red")
legend("topleft",
lty=1,
col=c("red", "black"),
legend=c( "Simulated GPP", expression(paste("Complex demodulated ", O[2], " series"))),
bty="n")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.