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

Home » Public Forums » archive » Re: Need ideas for a data structure
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: Need ideas for a data structure [message #3073] Fri, 04 November 1994 17:22 Go to previous message
mark_cadwell is currently offline  mark_cadwell
Messages: 10
Registered: February 1994
Junior Member
I don't know about IDL, but in PV-Wave I created a flexable record type
that works similarly to what you describe.

There is a set of non-changing header elements with things like titles,
axes annotation, data start and stop times, etc. There is also an element
that contains the size of the data arrays that follow. The file is opened
and read into PV-Wave with a READU function call. You have to create a
data structure in which to put the stuff you read. You can define one
data structure that has everything up to and including the element that
tells you array sizes.

Once you have that information, use it to create a second data structure
that has all the header stuff AND arrays of the proper size. Rewind the
data file with the function "POINT_LUN, UNIT, 0". This sets the I/O
pointer back to the beginning of your file so you can read it again (this
time with your data arrays).

It may not be the most elegant solution, but it has worked very well for
me. The only thing you have to look out for is that the data arrays must
start on a fullword boundry. If you need to, you can pad your data
structures with a few empty bytes to get to the fullword boundry.

--
----------------------------------
mark_cadwell@qmail4.trw.sp.com
[Message index]
 
Read Message
Read Message
Previous Topic: multiplot solution
Next Topic: Re: Help with co-ordinate conversions...

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

Current Time: Sat Oct 11 16:24:24 PDT 2025

Total time taken to generate the page: 0.12478 seconds