This function compensates for drifting instrument clocks, according to
t'=t + a + b*(t-t0), where t' is the
true time and t is the time stored in the object. A single check
on time mismatch can be described by a simple time offset, with a non-zero
a, a zero value of
b, and an arbitrary value of
t0. Checking the mismatch before and after an experiment yields
sufficient information to specify a linear drift, via
t0. Note that
t0 is just a convenience parameter, which
avoids the user having to know the "zero time" used in R and clarifies the
values of the other two parameters. It makes sense for
t0 to have
the same timezone as the time within
an oce object.
intercept (in seconds) in linear model of time drift (see “Details”).
slope (unitless) in linear model of time drift (unitless) (see “Details”).
reference time (in
a flag that, if nonzero, turns on debugging.
The returned object is computed by linear interpolation, using
rule=2, to avoid
NA values at the
start or end. The new time will be as given by the formula above. Note that
if the drift is large enough, the sampling rate will be changed. It is a
good idea to start with an object that has an extended time range, so that,
after this is called,
subset() can be used to trim to a desired
A new object, with time and other data adjusted.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.