[Numpy-discussion] Appending/combining masked arrays

Pierre GM pgmdevlist@gmail....
Wed Sep 29 17:19:55 CDT 2010


On Sep 30, 2010, at 12:01 AM, Gökhan Sever wrote:

>> You're using a standard numpy function on a masked array. It's hardly surprising that you run into some issues. You should use the np.ma equivalent. Except of course that the equivalent doesn't exist yet... Please open a ticket.
> 
> Here it comes -> http://projects.scipy.org/numpy/ticket/1623

Thank you

> Probably I will need a loop to construct a similar ma array for 7
> different masked arrays in a list.

I think so. Just do what you would do if you had only ndarrays, but do it twice, once on the .data part and once on the .mask part, keeping in mind that you may have a nomask in the way, as I mentioned before (so use a getmaskarray to get the .mask)


More information about the NumPy-Discussion mailing list