[SciPy-user] phase wrapping algorithm

Travis Oliphant oliphant.travis at ieee.org
Tue Oct 10 14:35:39 EDT 2006


Ryan Krauss wrote:
> I am rethinking an algorithm for unwrapping phase data from arctan2
> for a vector of complex numbers (coming from lti models of feedback
> control systems).  I had written something a while ago using weave,
> but my old code causes seg faults with a recent scipy update.  So, I
> am rethinking the algorithm.

There is already a phase unwrapping algorithm in NumPy for 1-d data 
called unwrap.

numpy.unwrap(b) seems to work fine on the second column of the data you 
posted.

Best,

-Travis




More information about the SciPy-User mailing list