[Numpy-discussion] Masked array elements where mask = True?
Howard
howard at renci.org
Fri Feb 3 14:22:32 EST 2012
Indeed it does!
Thanks very much. I was not aware of the numpy where command.
Howard
On 2/3/12 2:17 PM, Olivier Delalleau wrote:
> numpy.where(x.mask) should do it.
>
> -=- Olivier
>
> Le 3 février 2012 14:02, Howard <howard at renci.org
> <mailto: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 <mailto: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 <mailto:NumPy-Discussion at scipy.org>
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
--
Howard Lander <mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120203/cd0365f9/attachment.html>
More information about the NumPy-Discussion
mailing list