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

Home » Public Forums » archive » Re: restore all but ! variables
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: restore all but ! variables [message #60633 is a reply to message #60631] Thu, 29 May 2008 09:14 Go to previous messageGo to previous message
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Jeremy Bailin wrote:
> Does anyone know of a convenient way of restoring the contents of a
> SAVEd file created using /ALL that will restore everything except for
> system variables (ie. anything starting with !)? I have some old .sav
> files from a different system with a different file structure, and
> doing a simple RESTORE over-writes things like !PATH that really need
> to be from the new system.
>
> On a related note, is there a way to rename a common block? I.e. I
> have a .sav file that contains a previous version of a common block,
> but in my current code I have extended the common block to include
> some new variables. So I would like to do something like this so that
> I can resurrect the saved data into the new data structure where my
> new code can operate on it:
>
> restore, 'oldsavedfile'
> ***RENAME cb (WITH ASSOCIATED vars) TO oldcb (WITH ASSOCIATED
> oldvars)***
> common_block, cb, LIST OF VARIABLES IN NEW COMMON BLOCK
> ASSIGN oldvars TO EQUIVALENT vars
> save, 'newsavedfile', ....
>
> -Jeremy.

Jeremy,

If you've not seen them you should look at Craig Markwardt's
save/restore routines which could provide some help:

http://cow.physics.wisc.edu/~craigm/idl/cmsave.html

Thanks,

Allan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget, draw and file pickup
Next Topic: Javabridge trial

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

Current Time: Sun Oct 12 19:01:36 PDT 2025

Total time taken to generate the page: 1.43929 seconds