[Numpy-discussion] problem reading binary data from file

Christopher Barker Chris.Barker at noaa.gov
Fri Apr 6 15:31:33 EDT 2007


> In fact numpy.fromfile was the first function I tried to use but I
> couldn't manage to get it working with the byteorder I needed
> (big-endian).

a = fromfile(...)
a.byteswap(True)


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list