Re: best way to find the variable name of a structure from RESTORE-ing a sav file [message #32192] |
Fri, 20 September 2002 11:40 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Robert Stockwell <rgs1967@hotmail.com> writes:
> anyone have good ideas on how to programatically find
> the name of a variable in memory, that happens to be
> a structure. The reason I don't know the name is that I
> am restoring a structure from an IDL sav file. The structure
> is the only thing in the sav file.
>
>
How about using CMSAVEDIR? It reports all of the variables in a save
file without having to restore it. Then you'll know ahead of time.
In fact, with CMRESTORE, you can rename the variable to something else
if you wish.
Craig
http://cow.physics.wisc.edu/~craigm/idl/idl.html (under SAVE files)
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|