
Karshi Hasanov wrote:
Does NumPy provide "unwrap" function like in MatLab?
For those who are wondering, this is unwrap in MATLAB: UNWRAP Unwrap phase angle. UNWRAP(P) unwraps radian phases P by changing absolute jumps greater than pi to their 2*pi complement. It unwraps along the first non-singleton dimension of P. P can be a scalar, vector, matrix, or N-D array. UNWRAP(P,TOL) uses a jump tolerance of TOL rather than the default TOL = pi. UNWRAP(P,[],DIM) unwraps along dimension DIM using the default tolerance. UNWRAP(P,TOL,DIM) uses a jump tolerance of TOL. See also ANGLE, ABS. And I think the answer is no, but It would be nice... -chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------

Karshi Hasanov wrote:
Does NumPy provide "unwrap" function like in MatLab?
For those who are wondering, this is unwrap in MATLAB: UNWRAP Unwrap phase angle. UNWRAP(P) unwraps radian phases P by changing absolute jumps greater than pi to their 2*pi complement. It unwraps along the first non-singleton dimension of P. P can be a scalar, vector, matrix, or N-D array. UNWRAP(P,TOL) uses a jump tolerance of TOL rather than the default TOL = pi. UNWRAP(P,[],DIM) unwraps along dimension DIM using the default tolerance. UNWRAP(P,TOL,DIM) uses a jump tolerance of TOL. See also ANGLE, ABS. And I think the answer is no, but It would be nice... -chris -- Christopher Barker, Ph.D. ChrisHBarker@home.net --- --- --- http://members.home.net/barkerlohmann ---@@ -----@@ -----@@ ------@@@ ------@@@ ------@@@ Oil Spill Modeling ------ @ ------ @ ------ @ Water Resources Engineering ------- --------- -------- Coastal and Fluvial Hydrodynamics -------------------------------------- ------------------------------------------------------------------------
participants (2)
-
Chris Barker
-
Karshi Hasanov