mail.python.org
[Tutor] create numpy array from list of strings
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
If the above is intended to be Python code, it has problems. Rewrite it thusly?Then let a numpy expert finish the task. -- Bob Gailer 919-636-4239 Chapel Hill, NC.
I wish to convert it to a numpy array of floats. How do I accomplish this? THanks!!
we should see several ways to do this. One way is with reshape: http://www.scipy.org/Numpy_Example_List_With_Doc#reshape.
Previous message (by thread): [AstroPy] Data Analysis and Programming in Python.All you would need to do would be define the functions you need to interpret the image formats from your hardware into numpy arrays, and plug it into this example to write it out as a FITS file.