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

Home » Public Forums » archive » read a C written binary file with 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: read a C written binary file with IDL [message #79582 is a reply to message #79309] Sun, 11 March 2012 19:49 Go to previous messageGo to previous message
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Hi all,
thanks for your help. Indeed, the assoc function works fine (without
using the /packed keyword).
Cheers
Bing


> bing999writes:
>> Actually I cannot use assoc i guess. To be fully complete this
>> time :), the binary file contain a header (some int) + the structure
>> mystruct which is replicated N times. From what I understand of the
>> assoc function, it won't work in my case...
>
> I think your understanding must be faulty, as this
> is *exactly* the kind of file ASSOC works best with. :-)
>
> The "offset" is used to account for the header.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: type conversion in GPULIB
Next Topic: Matlab!

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

Current Time: Sun Oct 12 12:34:45 PDT 2025

Total time taken to generate the page: 0.08221 seconds