reading tabular data

Travis Oliphant oliphant at ee.byu.edu
Wed Nov 28 20:57:53 CET 2001


> Mark Fardal wrote:
> > what do people use when they want to read in long tabular files into
> > a (NumPy) array?  I have only tried Scientific.IO.readArray and
> > read_ascii from Nick Bower's PYDL.  read_ascii is very simple and
> > needs some work to be robust, but it was much faster than readArray
> > for the example I tried. Is there something else I should know
> > about?
>
> You might also want to take a look at TableIO
> (http://www.python.org/topics/scicomp/storage.html) and FortranFormat.

You could try scipy.io.read_array  in the SciPy package as well.





More information about the Python-list mailing list