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

Home » Public Forums » archive » Re: structure arrays with different structures
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: structure arrays with different structures [message #81377] Mon, 10 September 2012 06:43 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Why not use a list of structures? (Assuming you have IDL v8.x).

Just add each structure to the list as it's created.

If you can avoid using pointers (directly at least), you should (IMO).

cheers,

paulv


On 09/08/12 21:08, S�ren Frimann wrote:
> Hi all,
>
> I'm having some data that's gathered together in different structures
> and arrays, and I want to collect everything in a structure array in
> this manner:
>
> struct_template = { name:'', select:{} , obs:dblarr(2,100)}
>
> I want to put my data into struct_template, with name being a string,
> select being another structure, and obs being an array.
>
> I then want to make an array of structures using struct_template, but
> naturally with different sets of data.
>
> The issue is that the select structure does not always have the same
> skeleton, nor does the obs array always have the same size.
>
> The question basically is if there's any way of making an array of
> structures with the structures sharing the same keys, but with the
> values having different 'skeletons'
>
> I hope I'm making sense
>
> Cheers, S�ren
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can't launch IDL DE anymore...
Next Topic: Re: Off-kilter z-axis label in function graphics?

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

Current Time: Thu Oct 09 20:44:23 PDT 2025

Total time taken to generate the page: 1.51350 seconds