Re: Reading Fortran binary files

2005-01-10 Thread Michael Fuhr
"drife" <[EMAIL PROTECTED]> writes: > I need to read a Fortran binary data file in Python. > The Fortran data file is organized thusly: > > nx,ny,nz,ilog_scale # Record 1 (Header) > ihour,data3D_array# Record 2 > > Where every value above is a 2 byte Int. Have you looked at the struct modul

Reading Fortran binary files

2005-01-10 Thread drife
Hello, I need to read a Fortran binary data file in Python. The Fortran data file is organized thusly: nx,ny,nz,ilog_scale # Record 1 (Header) ihour,data3D_array# Record 2 Where every value above is a 2 byte Int. Further, the first record is a header containing the dimensions of the data t