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 #31059 is a reply to message #31058] Tue, 04 June 2002 02:30 Go 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:20020604105617.671832ff.ivanv@discovery.saclay.cea.fr.. .
> I have an IDL structure variable like this:
> help, ccc
> CCC STRUCT = -> <Anonymous> Array[1]
> help, ccc, /struct
> NAME STRING Array[133]
> RA DOUBLE Array[133]
>
> and I would like to reform it like this
> help,ccc
> CCC STRUCT = -> <Anonymous> Array[133]
> help,ccc,/struct
> NAME STRING g01
> RA DOUBLE 316.022
>
> Is there any fast way to do it?

how about:
ddd = replicate({name:'', ra:0.d}, 133)
ddd.name = ccc.name
ddd.ra = ccc.ra

cheers,
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: Sat Oct 11 08:45:40 PDT 2025

Total time taken to generate the page: 1.11425 seconds