Hi, > if it's just a block of bytes in a standard type from and n-d array, you > can use numpy.fromfile()
I should also say that I have just committed a rewrite of the binary file reading stuff to scipy, so if you have the latest scipy SVN (as of a few minutes ago), you can do something like: from StringIO import StringIO import numpy as N from scipy.io import npfile arr = N.arange(10).reshape(5,2) # write in Fortran order, Big endian, read back in C, system endian my_file = StringIO() npf = npfile(my_file, order='F', endian='>') npf.write_array(arr) npf.rewind() npf.read_array((5,2), arr.dtype) Best, Matthew ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users