[SciPy-User] writing data to binary for fortran
Gideon
gideon.simpson at gmail.com
Tue May 11 15:09:32 EDT 2010
I've previously used the FortranFile.py to read in binary data
generated by fortran computations, but now I'd like to write data from
NumPy/SciPy to binary which can be read in by a fortran program. Does
anyone have an example of using fortranfile.py to create and write
data to binary? Alternatively, can anyone suggest a way to write
numpy arrays to binary in away that permits me to specify the correct
offset (4 bytes on my machine) for fortran to then properly read the
data in?
More information about the SciPy-User
mailing list