[Numpy-discussion] more recfunctions, structured array help

John [H2O] washakie@gmail....
Tue Dec 8 15:53:52 CST 2009


This is what I get:

In [74]: type(cd)
Out[74]: <class 'numpy.core.records.recarray'>

In [75]: type(cd.co)
Out[75]: <type 'numpy.ndarray'>

In [76]: cd[cd['co']==-9999.] = np.ma.masked
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/jfb/Research/arctic_co/co_plot.py in <module>()
----> 1 
      2 
      3 
      4 
      5 

ValueError: tried to set void-array with object members using buffer.



-- 
View this message in context: http://old.nabble.com/more-recfunctions%2C-structured-array-help-tp26700380p26701484.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.



More information about the NumPy-Discussion mailing list