[Numpy-discussion] ufuncs of ma

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Jun 9 09:29:46 EDT 2005

>>>>> "John" == John Hunter <jdhunter at ace.bsd.uchicago.edu> writes:

    John> MAError: Cannot automatically convert masked array to
    John> Numeric because data is masked in one or more locations.

Please ignore me -- I now see you have to use ma.sin not nx.sin (slaps
self on head!)

import numarray as nx
import numarray.ma as ma
t = ma.arange(0.0, 2.0, 0.01)
tm = ma.masked_outside(t, .2, 1.2)
s = ma.sin(tm)


More information about the NumPy-Discussion mailing list