Newbie Q: (NumPy) how to write an array in a file ?

Johann Hibschman johann at physics.berkeley.edu
Tue Oct 10 13:43:50 EDT 2000


Alex Martelli writes:

> "binary format" is *NOT* portable.  If you write binary data on a
> big-endian machine, you can't just transparently re-read it on a
> little-endian machine -- it's even worse for floating-point data
> in different formats!

There's a CDF module out there somewhere, which sounds like precisely
what you need, if portability is important.  See

http://starship.python.net/crew/hinsen/netcdf.html

-- 
Johann Hibschman                           johann at physics.berkeley.edu



More information about the Python-list mailing list