It is assumed that the instrument clock matches the real time at the start of the sampling, and that the clock drifts linearly (i.e. is uniformly fast or slow) over the sampling interval. Linear interpolation is used to infer the values of all variables in the data slot. The data length is altered in this process, e.g. a slow instrument clock (positive slowEnd) takes too few samples in a given time interval, so undriftTime will increase the number of data.

undriftTime(x, slowEnd = 0, tname = "time")

## Arguments

x an oce object. number of seconds to add to final instrument time, to get the correct time of the final sample. This will be a positive number, for a "slow" instrument clock. Character string indicating the name of the time column in the data slot of x.

## Value

An object of the same class as x, with the data slot adjusted appropriately.

## Examples

if (FALSE) {
library(oce)
}