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

Home » Public Forums » archive » Re: best way to find the variable name of a structure from RESTORE-ing a sav file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
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 is currently offline  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
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: custom color table
Next Topic: Re: best way to find the variable name of a structure from RESTORE-ing a sav file (thanks)

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

Current Time: Thu Oct 09 21:43:19 PDT 2025

Total time taken to generate the page: 0.08363 seconds