[Numpy-discussion] How do I change endianess?
Mon Feb 25 12:57:05 CST 2008
> I would like to change the Endianess of a large of data written on PC so I can process it on a Solaris box. I see that the dtype.str attribute is read-only.
> David Lees
You can use the byteswap method to change the byte order of your array.
>>> obj = obj.byteswap()
Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
More information about the Numpy-discussion