TDRcalibrate object essential for subsequent summaries
of diving behaviour.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)TDR for
calibrateDepth or an object of class
TDRcalibrate for zoc. If not provided, the
offset is obtained using an interactive plot of the data.TDRcalibrate..detPhase and
.detDive, which perform the work on simplified objects. It
performs zero-offset correction of depth, wet/dry phase detection, and
detection of dives, as well as proper labelling of the latter. The procedure starts by first creating a factor with value depth and value dry.thr, then the values in the factor for that phase
are changed to wet.thr, then the corresponding value for the factor is
changed to
The next step is to detect dives whenever the zero-offset corrected
depth in an underwater phase is below the supplied dive threshold. A
new factor with finer levels of activity is thus generated, including
Once dives have been detected and assigned to a period of wet
activity, phases within dives are detected using the descent, ascent
and wiggle criteria. This procedure generates a factor with levels
TDRcalibrate, zocdata(divesTDR)
divesTDR
## Consider a 3 m offset, and a dive threshold of 3 m
dcalib <- calibrateDepth(divesTDR, dive.thr=3, offset=3)
if (dev.interactive(orNone=TRUE)) {
plotTDR(dcalib, labels="dive.phase", surface=TRUE)
}Run the code above in your browser using DataLab