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

Home » Public Forums » archive » structure concatenation
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 concatenation [message #20745] Fri, 21 July 2000 00:00 Go to next message
Stuart Colley is currently offline  Stuart Colley
Messages: 17
Registered: February 2000
Junior Member
I'm trying to concatenate two structures using:

plot_params=[TEMPORARY(plot_params), tmp_struct]

but get:

% Conflicting data structures: TMP_STRUCT,concatenation.

But the structures have exactly the same tag names, and the type of data,
INT, FLOAT, etc, is the same for each tag in both structures. I even put
a STOP statement before the concatenation to double check the structures.

Am I missing something?
cheers,
S


____________________________________________________________ __________

telephone: +44 (0)20 7419 3483
home page: http://www.star.ucl.ac.uk/~src/

Please e-mail me in plain text ONLY: MS Word, html, etc,
are automatically sent to /dev/null (i.e. deleted).
Re: structure concatenation [message #20822 is a reply to message #20745] Tue, 25 July 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Stuart Colley (src@star.ucl.ac.uk) writes:

> I'm trying to concatenate two structures using:
>
> plot_params=[TEMPORARY(plot_params), tmp_struct]
>
> but get:
>
> % Conflicting data structures: TMP_STRUCT,concatenation.
>
> But the structures have exactly the same tag names, and the type of data,
> INT, FLOAT, etc, is the same for each tag in both structures. I even put
> a STOP statement before the concatenation to double check the structures.
>
> Am I missing something?

I'm back in the office and getting caught up.
Pavel has already pointed out the solution to this.
I just want to let you know, however, that this
kind of thing *will* be possible in IDL 5.4. :-)

Structures that set aside the same amount of storage
space will be allowed to be concatenated like this,
despite having different "internal" names.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: selecting model objects
Next Topic: Re: Cyrillic post selling church candles

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

Current Time: Fri Oct 10 11:30:53 PDT 2025

Total time taken to generate the page: 0.24071 seconds