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

Home » Public Forums » archive » Re: newbie question / concatenation of arrays of nested 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: newbie question / concatenation of arrays of nested structure [message #17049 is a reply to message #17047] Wed, 08 September 1999 00:00 Go to previous messageGo to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Liam Gumley wrote:
> The only way to create equivalent structures is to use named structures,
> e.g.
>
> IDL> record = {z, a:0, b:'name', c:0}
> IDL> first = replicate(record, 5)
> IDL> second = replicate(record, 3)
> IDL> combo = [first, second]

Note to self: Any time you say "The only way" in this newsgroup, you're
bound to be wrong.

David's web page correctly points out that copies of an anonymous
structure are equivalent, and thus can be concatenated, e.g.

IDL> record = {a:0, b:'name', c:{d:0, e:0}}
IDL> a = record
IDL> b = record
IDL> c = [a, b]

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Nautical Miles to Lat/Lon Degrees
Next Topic: Updates to SAVEIMAGE and SHOWIMAGE

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

Current Time: Sat Oct 11 04:25:30 PDT 2025

Total time taken to generate the page: 0.55392 seconds