comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Reading binary data (written using XDR) into IDL??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading Binary [message #49262 is a reply to message #4812] Tue, 11 July 2006 05:43 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
You can't do that. You can only read the file in units of a byte. If
your data is really in 12/13-bit units (which seems highly unusual) -
you'll have to extract them afterwards (paying close attention to
putting them back in the right order!). Where did you get this data?

regards,
Greg



Dirk1106@googlemail.com wrote:
> Hi everyone,
>
> I have a problem reading a binary file.
> The file begins with a Header of 6 unsingned Int.
> After this I have to dicive, if I want to read 12 bits oder 13 bits
> (not byte) as one record.
>
> Has soneone an idea, how to read the 12 or 13 bits best.
> After i read the bits I have so split them in the units, they stand
> for.
>
> Thanks
> .
> Greetz Dirk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: extraction of linear features from satellite imagery
Next Topic: Displaying isosurface- Hollow images

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:33:29 PDT 2025

Total time taken to generate the page: 0.72076 seconds