[Numpy-discussion] Fortran binary files and numpy/scipy

Matthieu Brucher matthieu.brucher@gmail....
Mon Feb 2 06:39:32 CST 2009


Hi,

There was a discussion about this last week. You can find it int he archives ;)

Matthieu

2009/2/2 Nils Wagner <nwagner@iam.uni-stuttgart.de>:
> Hi all,
>
> How can I import FORTRAN binary files using numpy ?
>
> In FORTRAN I can do
>
>       OPEN(10,FILE='test.mat',FORM='unformatted')
>
>  100  CONTINUE
>         READ(10,END=999) IROW, ICOL, VALUE
>       GOTO 100
>
>  999  CONTINUE
>       END
>
> And In Python/numpy ?
>
> ....
>
>
> Any pointer would be appreciated.
>
> Thanks in advance
>                      Nils
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher


More information about the Numpy-discussion mailing list