Hi,
> > I want to import binary files generated from C/FORTRAN into matplotlib for
> > plotting.
> > Can this be done using 'load'?
>
> If you are using SciPy, scipy.io has a few functions which may
> help. scipy.io.fromfile, for example.
Ah - just to be clear, for scipy 0.5.2, scipy.io.fromfile
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:
fr
>>> I want to import binary files generated from C/FORTRAN into matplotlib for
>>> plotting.
if it's just a block of bytes in a standard type from and n-d array, you
can use numpy.fromfile()
If not, then you may have to read through the file in chunks, with
various calls to file.read(), to get
Kumar Appaiah wrote:
> On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote:
>> Hi,
>>
>> I want to import binary files generated from C/FORTRAN into matplotlib for
>> plotting.
>> Can this be done using 'load'?
>
> If you are using SciPy, scipy.io has a few functions which may
> help. sci
On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote:
>
> Hi,
>
> I want to import binary files generated from C/FORTRAN into matplotlib for
> plotting.
> Can this be done using 'load'?
If you are using SciPy, scipy.io has a few functions which may
help. scipy.io.fromfile, for example.
Le Friday 02 February 2007 08:14:37 Vijay Kumar, vous avez écrit :
> Hi,
>
> I want to import binary files generated from C/FORTRAN into matplotlib for
> plotting.
> Can this be done using 'load'?
>
> Thanks
> Vijay
no load can read only text file.
--
Hi,
I want to import binary files generated from C/FORTRAN into matplotlib for
plotting.
Can this be done using 'load'?
Thanks
Vijay
--
View this message in context:
http://www.nabble.com/Importing-Binary-files-tf3160765.html#a8766617
Sent from the matplotlib - users mailing list archive at N
Hi,
I want to import binary files generated from C/FORTRAN into matplotlib for
plotting.
Can this be done using 'load'?
Thanks
Vijay
--
View this message in context:
http://www.nabble.com/Importing-Binary-files-tf3160763.html#a8766615
Sent from the matplotlib - users mailing list archive at N