calibrateDepth {diveMove}R Documentation

Calibrate and build a "TDRcalibrate" object

Description

These functions create a "TDRcalibrate" object which is necessary to obtain dive summary statistics.

Usage

calibrateDepth(x, landerr=65, seaerr=3605, divethres=4, offset)
calibrateVel(x, type="all", calType="pooled", bad=c(0, 0),
z=0, filename=slot(tdr(x), "file"), coefs, ...)

Arguments

x an object of class TDR for calibrateDepth, and an object of class TDRcalibrate-class for calibrateVel.
landerr, seaerr arguments to detPhase.
divethres argument to detDive.
offset argument to zoc.
type, calType, bad, z, filename further arguments for .getVelCalib and doVelCalib.
coefs known velocity calibration coefficients from quantile regression as a vector of length 2 (intercept, slope). If provided, these coefficients are used for calibrating velocity, ignoring all other arguments, except x.
... argument passed to doVelCalib.

Details

These functions are really wrappers around functions that are usually called in sequence, so they provided an abbreviated method for running them together during analyses. See the functions in the ‘See Also’ section for more details.

calibrateDepth performs zero-offset correction of depth, wet/dry phase detection, and detection of dives, as well as proper labelling of the latter.

calibrateVel calibrates velocity readings.

Value

An object of class TDRcalibrate-class

Author(s)

Sebastian P. Luque spluque@gmail.com

See Also

detPhase, detDive, doVelCalib, zoc, for the underlying functions.


[Package diveMove version 0.1-6 Index]