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

Home » Public Forums » archive » Re: Structure reforming
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: Structure reforming [message #31057 is a reply to message #31053] Tue, 04 June 2002 04:45 Go to previous messageGo to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
"Ivan Valtchanov" <ivanv@discovery.saclay.cea.fr> wrote in message
news:20020604114425.31eda9c4.ivanv@discovery.saclay.cea.fr.. .
> On Tue, 4 Jun 2002 11:30:14 +0200
> "Jaco van Gorkom" <j.c.van.gorkom@fz-juelich.de> wrote:
>> how about:
>> ddd = replicate({name:'', ra:0.d}, 133)
>> ddd.name = ccc.name
>> ddd.ra = ccc.ra
>
> That's the way I am doing it now. But I have some 50-60 tags and they
> are sometimes different from structure to structure...

In that case you might want to create a single-element structure d at
the time you create the ccc array structure. Then you could do
something like
ddd = replicate(d, 133)
for i=0L, n_tags(ccc)-1 do ddd.(i) = ccc.(i)

Alternatively, create the single-element structure d from ccc in a
FOR-loop using TAG_NAMES() and repeated structure concatenation by
CREATE_STRUCT(). Or create the d structure in an EXECUTE() call.

Jaco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: atan in IDL 5.5
Next Topic: how to modify the default 'printf' format

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

Current Time: Fri Oct 10 14:48:38 PDT 2025

Total time taken to generate the page: 0.88118 seconds