[SciPy-user] phase wrapping algorithm

Ryan Krauss ryanlists at gmail.com
Tue Oct 10 13:43:31 CDT 2006

Thanks Travis.

I looked in scipy.signal and when I didn't see, I just assumed it didn't exist.

I was just starting to make good progess on my FORTRAN version too.....

I may need to revisit this when I need more control over messy
experimental data.  Is there a tricky in-place way to calculate the
difference between a vector and itself shift by 1 or more elements?



On 10/10/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> 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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

More information about the SciPy-user mailing list