calibrateDepth(x, dry.thr=70, wet.thr=3610, dive.thr=4, offset,
descent.crit.q=0.1, ascent.crit.q=0.1, wiggle.tol=0.8)
calibrateSpeed(x, tau=0.1, contour.level=0.1, z=0, bad=c(0, 0),
main=slot(getTDR(x), "file"), coefs, plot=TRUE,
postscript=FALSE, ...)TDR for
calibrateDepth or an object of class
TDRcalibrate for calibrateSpeed.detPhase.detDive.zoc.rq.x.rqPlot.TDRcalibrate-class for
calibrateDepth and an object of class
TDRspeed-class for calibrateSpeed. calibrateDepth performs zero-offset correction of depth,
wet/dry phase detection, and detection of dives, as well as proper
labelling of the latter.
calibrateSpeed calibrates speed readings.
detPhase, detDive,
zoc, rqPlot, for the underlying
functions.data(divesTDR)
## Consider a 3 m offset, and a dive threshold of 3 m
dcalib <- calibrateDepth(divesTDR, dive.thr=3, offset=3)
plotTDR(dcalib, labels="dive.phase", surface=TRUE)
## Calibrate speed using only changes in depth > 2 m
vcalib <- calibrateSpeed(dcalib, z=2)Run the code above in your browser using DataLab