Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tagwiki:tools:calibration:apply_cal [2017/08/04 14:01] (current)
das39 created
Line 1: Line 1:
 +====== apply_cal ======
 +Undo calibrations steps
 +-----
  
 +===== Syntax =====
 +=== Matlab & Octave ===
 +<​code>​
 +X = apply_cal(X)
 + or
 +X = apply_cal(X,​T)
 +</​code>​
 +=== R ===
 +<​code>​
 +list <- apply_cal(X)
 +     or
 +list <- apply_cal(X,​ T)
 +</​code>​
 +
 +===== 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.|N/​A|
 +
 +
 +===== Example =====
 +
 +==== Matlab & Octave ====
 +<​code>​
 +BW <- load_nc('​testset1.nc'​)
 +undo_cal(BW)
 +</​code>​
 +
 +==== R ====
 +<​code>​
 +BW <- beaked_whale
 +undo_cal(BW)
 +</​code>​
 +
 +===== About =====
 +[[bugs@animaltags.org]]
 +Last modified: 4 August 2017
  • tagwiki/tools/calibration/apply_cal.txt
  • Last modified: 2017/08/04 14:01
  • by das39