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

Home » Public Forums » archive » Expanding Arrays of 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
Expanding Arrays of Structures [message #50351] Thu, 28 September 2006 08:33
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Hi,
It's one of those days. You think you know IDL but you really don't.
Well, may be someone can help.

I have an array of structures created like
s1={a:0,b:0,c:0}
s2=replicate(s1,10)

Is there a way to expand this array by another tag "d" so that
essentially every array index contains the structure {a,b,c,d}?

The reason why I don't include "d" right away is thatI read the
structure content from files, where the additional variable is not
available.

I have looked at struct_assign and create_struct, but I don't think
they can do what I want.

Does anyone have any idea except copying every freakin' tag
separately???

Thanks,
Haje
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Closing out of GUI window
Next Topic: class_doit Maximum Likelihood errors

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

Current Time: Fri Oct 10 02:34:20 PDT 2025

Total time taken to generate the page: 1.12157 seconds