[Numpy-discussion] unwrap for masked arrays?

Benjamin Root ben.root@ou....
Fri Jun 17 14:26:22 CDT 2011

On Fri, Jun 17, 2011 at 1:26 PM, Eric Firing <efiring@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


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.

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110617/bb8d3038/attachment-0001.html 

More information about the NumPy-Discussion mailing list