Re: [Numpy-discussion] Controlling endianness of ndarray.tofile()
[ 256, 1, 13090], dtype=int16) >>>> map(hex, A) > ['0x100', '0x1', '0x3322'] >>>> A.tofile('a_big.bin') > > Gary > > On Tue, Jun 21, 2011 at 6:22 PM, Ben Forbes wrote: >> Hi, >> >> On my system (Int
[Numpy-discussion] Controlling endianness of ndarray.tofile()
Hi, On my system (Intel Xeon, Windows 7 64-bit), ndarray.tofile() outputs in little-endian. This is a bit inconvenient, since everything else I do is in big-endian. Unfortunately, scipy.io.write_arrray() is deprecated, and I can't find any other routines that write pure raw binary. Are there any o