Thanks,
I later discovered that it was a big edian binary as well.
Sheldon
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-03-22, Sheldon <[EMAIL PROTECTED]> wrote:
> I have a script that I want to use to read some binary lon and lat data
> that was written with a C program.
http://www.python.org/doc/current/lib/module-struct.html
--
Grant Edwards grante Yow! UH-OH!! We're out
Hi,
I have a script that I want to use to read some binary lon and lat data
that was written with a C program. My script looks like this:
lat = open(lat_file,'rb').read()
lat = Numeric.fromstring(lat)
print len(lat)
print lat[0]
Results:
1476225
-995001790
Or using the Float typecode:
Results