John Machin wrote:
> On Dec 8, 9:34 pm, "Mario M. Mueller" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a binary file containing 3 byte float values (big endian). How can
>> I read them into python? The struct module does not work, since it
>> ex
Bjoern Schliessmann wrote:
[...]
> BTW, who in his mind designs three byte floats? Memory isn't that
> expensive anymore. Even C bool is four bytes long.
It's output of a digitizer (but not that old). I was also wondering about
the reason for this limitation (maybe the design is ~20 years old).
Hi,
I have a binary file containing 3 byte float values (big endian). How can I
read them into python? The struct module does not work, since it expects 4
byte floats.
Any hints?
Mario
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a binary file containing 3 byte float values. How can I read them
into python? The struct module does not work, since it expects 4 byte
floats.
Any hints?
Mario
--
http://mail.python.org/mailman/listinfo/python-list
Tommy Nordgren wrote:
[...]
> One thing to consider: It is possible that one of the bytes
> contributes bits to BOTH the mantissa and the exponent ;
>From todays point of view I cannot exclude this.
> Do you know the relative
> accurazy of the digitizer?
Not yet. It's seismic data, that implie
Hendrik van Rooyen schrieb:
[...]
> What is it digitising - if its an Analogue to Digital converter, then the
> 24 bits may not be floats at all, but simple integer counts.
Personally I would expect simple counts (since other seismic formats don't
even think of using floats because most digitizer
[EMAIL PROTECTED] wrote:
[...]
>> But I'm experiencing some strange jumps in the data (seismic data is
>> mostly quite smooth at 40 Hz sampling rate). I think I did some mistake
>> in the byte order...
>
> Probably. In your code sample, when you pad it to 32-bits, why are you
> inserting every thi
Hendrik van Rooyen wrote:
> "Mario M. Mueller" <[EMAIL PROTECTED]> wrote:
>
>
>> I uploaded a short sample data file under
>> http://www.FastShare.org/download/test.bin - maybe one can give me
>> another hint... In a full data example max value is 11