I have a record array r and I want to add a new field to it.  I have
been looking at setfield but I am not sure how to use it for this
purpose.  Eg

# r is some npy record array
N = len(r)
x = npy.zeros(N)
# add array of floats x to r with dtype name 'jdh' and type '<f8'

Any suggestions?

JDH
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to