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

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Feb 2 06:33:43 CST 2009


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
 


More information about the Numpy-discussion mailing list