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 #49251 is a reply to message #4812] Wed, 12 July 2006 07:13 Go to previous messageGo to previous message
Dirk1106@googlemail.c is currently offline  Dirk1106@googlemail.c
Messages: 4
Registered: July 2006
Junior Member
for 12 bits

fread(&t0, 3, 1, fp); byteswap(&t0,3);
fread(&tof, 1, 1, fp);
fread(&pos1, 2, 1, fp); byteswap(&pos1,2);
fread(&pos2, 2, 1, fp); byteswap(&pos2,2);
fread(&ang, 2, 1, fp); byteswap(&ang,2);
fread(&e1, 1, 1, fp);
fread(&e2, 1, 1, fp);



for 13 bits.

fread(&t, 8, 1, fp); byteswap(&t,8);
fread(&pos, 2, 1, fp); byteswap(&pos,2);
fread(&ang, 2, 1, fp); byteswap(&ang,2);
fread(&e, 1, 1, fp);
[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: Sat Oct 11 12:57:20 PDT 2025

Total time taken to generate the page: 1.04416 seconds