[Numpy-discussion] unwrap for masked arrays?

Eric Firing efiring@hawaii....
Fri Jun 17 13:26:03 CDT 2011


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
>
> Thanks,
> Ben Root
>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list