"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 module?

http://www.python.org/doc/2.4/lib/module-struct.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to