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

Home » Public Forums » archive » structure arrays with different structures
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
structure arrays with different structures [message #81384] Sat, 08 September 2012 18:08
Søren Frimann is currently offline  Søren Frimann
Messages: 13
Registered: November 2010
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem starting non IDL program with SPAWN
Next Topic: Format code to trim leading zeroes?

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

Current Time: Wed Oct 08 15:36:13 PDT 2025

Total time taken to generate the page: 0.00420 seconds