[SciPy-User] mask an array using another array

questions anon questions.anon@gmail....
Sun Nov 20 00:40:03 CST 2011

I am trying to mask one array using another array.

I have created a masked array using
that looks something like:
[1  -  -  1,
 1  1  -  1,
 1  1  1  1,
 -   1  -  1]

I have an array of values that I want to mask whereever my mask has a nan.
how do I do this?
I have looked at
http://www.cawcr.gov.au/bmrc/climdyn/staff/lih/pubs/docs/masks.pdf but the

d = array(a, mask=c.mask()

 does not work.
I basically want to do exactly what that article does in that equation.

Any feedback will be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20111120/89b59316/attachment.html 

More information about the SciPy-User mailing list