structure concatenation [message #20745] |
Fri, 21 July 2000 00:00  |
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  |
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
|
|
|