[Numpy-discussion] unwrap for masked arrays?

Benjamin Root ben.root at ou.edu
Fri Jun 17 15:26:22 EDT 2011


On Fri, Jun 17, 2011 at 1:26 PM, Eric Firing <efiring at hawaii.edu> wrote:

> On 06/17/2011 06:56 AM, Benjamin Root wrote:
> > It does not appear that unwrap works properly for masked arrays.  First,
> > it uses np.asarray() at the start of the function.  However, that alone
> > would not fix the problem given the nature of how unwrap works
> > (performing diff operations).  I tried a slightly modified version of
> > unwrap, but I could not get it to always work properly.  Anybody know of
> > an alternative or a work-around?
>
>
> http://currents.soest.hawaii.edu/hgstage/pycurrents/file/08f9137a2a08/data/navcalc.py
>
> Eric
>

Eric,

Are you looking over my shoulder or something?  This module is exactly what
I needed.  Need some tweaks to support a 2-D array so that all 1-D parts get
the same amount of unwrapping, but it is pretty much what I needed.

Thanks!
Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110617/bb8d3038/attachment.html>


More information about the NumPy-Discussion mailing list