[Numpy-discussion] Masked array elements where mask = True?

Olivier Delalleau shish at keba.be
Fri Feb 3 14:17:16 EST 2012


numpy.where(x.mask) should do it.

-=- Olivier

Le 3 février 2012 14:02, Howard <howard at renci.org> a écrit :

>  Is there a method that gives an array of all the array indices of a
> masked array where the mask is True? I've been looking through the docs and
> don't see it yet...
>
> Thanks
> Howard
> --
> Howard Lander <howard at renci.org>
> Senior Research Software Developer
> Renaissance Computing Institute (RENCI) <http://www.renci.org>
> The University of North Carolina at Chapel Hill
> Duke University
> North Carolina State University
> 100 Europa Drive
> Suite 540
> Chapel Hill, NC 27517
> 919-445-9651
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120203/8e2ede04/attachment.html>


More information about the NumPy-Discussion mailing list