how to convert 3 byte to float
Mario M. Mueller
news.mueller at arcor.de
Mon Dec 10 07:23:45 EST 2007
Hendrik van Rooyen wrote:
> "Mario M. Mueller" <ne...ller at arcor.de> 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 1179760 (in case one
>> looks only at the eye-cathing "65535"+- values).
>
> I clicked on the link and got nothing but rubbish trying to predict how
> old I would get, so I gave up and am flying blind.
Sorry, it's a one click hoster. I cannot tell anything about this rubbish -
I use Adblock Plus. :)
> Some A to D's are not two's complement, but have strange formats with an
> independent sign bit in the highest order.
>
> And of course there is big and little endian - so there are something like
> 2x2 = 4 things to try - twos compl. big and little, and signed big and
> little.
>
> Unless there is a protocol interfering - how do you know, in the byte
> stream, where a value starts and stops - is it cr,lf delimited?
I have files containing only the data. Marek's fix to my code solves the
challenge.
Mario
More information about the Python-list
mailing list