UNWRAP Name
UNWRAP
Purpose
This function unwraps angular time series such that is it continuous.
Category
Time series analysis
Calling Sequence
Result = UNWRAP( X )
Inputs
X: A vector of type floating point containing angular information
Keyword Parameters
-
Outputs
Result: The unwrapped version of X.
Uses
CONSTANTS.pro
Procedure
This function iteratively unwraps the angular values.
Example
Create an incremental vector of angles.
a = 2. * !pi * findgen( 1000 ) / 100.
Convert this to Cartesian coordinates, then back to polar coordinates.
ang = atan( sin( a ), cos( a ) )
Unwrap the values in ANG.
b = unwrap( ang )
B should be identical to A, while ANG will have discontinuities and be
restricted to the +/-pi interval.
References
-
Modification History
Written by: Daithi A. Stone (stoned@atm.ox.ac.uk), 2004-10-25