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

Home » Public Forums » archive » Re: programme driven variable names
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: programme driven variable names [message #52601 is a reply to message #52600] Thu, 22 February 2007 06:30 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ingo von Borstel writes:

> I have a set of routines that act on similar sets of data. In order to
> have these pre-processed data easily available for further analysis I
> save the appropriate data structures in an IDL sav file for later
> retrieval via the restore command.
>
> Unfortunately, the variables saved will always bear the same name. This
> is inconvenient, if I like to compare data from several of these data
> sets, restored from several *.sav files.
>
> Is there a way to rename variables during run-time without user interaction?

I think it would make more sense to write an IDL
retrieval FUNCTION that could restore the data, stuff
it into a structure of some sort, and return that.

IDL> data_1 = GetSavedVarariables('file_1.sav')
IDL> data_2 = GetSavedVarariables('file_2.sav')
IDL> Plot, data_1.experiment, data_2.experiment

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: programme driven variable names
Next Topic: Drawing horizontal bars

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

Current Time: Fri Oct 10 16:54:50 PDT 2025

Total time taken to generate the page: 0.32323 seconds