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

Home » Public Forums » archive » Re: Renaming tags in an array of structures
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: Renaming tags in an array of structures [message #72540 is a reply to message #72539] Thu, 16 September 2010 13:40 Go to previous messageGo to previous message
Michael Williams is currently offline  Michael Williams
Messages: 17
Registered: December 2008
Junior Member
On Sep 16, 8:50 pm, David Fanning <n...@dfanning.com> wrote:
>> Can anyone see how to fix these problems so that the function works
>> for arbitrarily many tag names, copies the data (ideally without using
>> execute statements, which is the only way I can think of doing it),
>> and the old fields are deleted? Or is there another solution
>> altogether?
>
> Yes, I think I can see how to do it. I can't see how to
> do it in a couple of lines of code. And I can't see how
> to do it without either using EXECUTE or FOR loops. But
> I think it can be done.

Thanks. If there isn't a more elegant way (short of migrating to
hashes or a post-Cold War language ;-) then I think I can see a way of
doing it too. Luckily, I don't need to worry about nested structures.
I'm just dealing with what is essentially a 2-D matrix where the
columns have names and each element is a float, so I can afford to be
fairly braindead about this.

> Is this worth something to you? :-)

I'm afraid I'm a PhD student with (i) no money (ii) no time! :-) I'll
post my solution, and comments (and improvements) are of course
appreciated!

-- Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: color tiffs
Next Topic: Re: IDL 8.0; difficulties with "New Graphics"

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

Current Time: Sun Oct 12 00:43:52 PDT 2025

Total time taken to generate the page: 1.51964 seconds