Table of Contents

apply_cal

Undo calibrations steps

Syntax

Matlab & Octave

X = apply_cal(X)
or
X = apply_cal(X,T)

R

list <- apply_cal(X)
or
list <- apply_cal(X, T)

Description

Undo any calibration steps that have been applied to sensor data. This will reverse any re-mapping, scaling and offset adjustments that have been applied to the data, reverting the sensor data to the state it was when read in from the source (excluding any filtering or decimation steps).

Inputs

Input var

Description

Units

X

is a sensor structure/list or set of sensor structures in the 'tag frame', i.e., with calibrations applied.

N/A

T

A vector of temperature measurements with the same number of samples and sampling rate as the data in the input sensor data structure/list X. T indicates the temperature experienced by the sensor during data collection (not necessarily the ambient temperature experienced by the animal), and may affect calibration because many sensors’ output values change depending on the temperature.

degrees Celsius

Outputs

Output var

Description

Units

X

is a sensor structure/list reverted to the 'sensor frame', i.e., without calibrations.