Reading IEEE 754 format strings directly into a floating point array
Robert Kern
robert.kern at gmail.com
Fri Oct 14 23:32:12 EDT 2005
Madhusudan Singh wrote:
> I am querying an instrument in a measurement application.
>
> The values are returned as IEEE format binary floating point numbers. There
> are 4 bytes per point. Multiple points are not separated by any delimiter.
>
> Is it possible to read these directly into a floating point array of the
> size of the string ?
>
> Alternatively, I could write a routine to do it, but wanted to find out if
> there was a simpler solution.
http://docs.python.org/lib/module-array.html
http://numeric.scipy.org
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list