![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
save_cmd
Saves current state into a command script file.
To restore the state it is sufficient to run this file as
an ordinary script.
cafe
save
This task saves the state in a sequence of commands which
would create the current state. Following commands will be
issued (if necessary to change the state):
- set
- data (reading data from file which must exist)
- ignore
- select
- model
- chpar
- defpar (name)
- tie
- freeze
- setplot
- plot
- legend
- show
- setformat
- chres
- chgrp
Not covered commands are:
- import
- modify
- error
- merge
- sort
- wplot
- any intermediate products from steppar, hist, pfold
etc.
Not all aspects of the current state are saved but only
the main one which define the plotting/fitting. See
DATA FORMAT.
You can fool the system by using the data command with
appropriate set-configuration and change it afterwards so
the system could not track the origin of the data loaded.
In that respect the save,*.sav task is safer. Also it
could not be guaranteed that the state could be recovered
for different versions of the cafe environment.
This save format has the advantage of being small and
editible, and could be used as a template for writing new
scripts.
Changes content of file.
> ... extended run
> save, state.cmd
> ...
> @state.cmd
-> saves current state, restores it by calling the
command script.
$Id: cafe_save_cmd.pro,v 1.3 2004/02/11 13:59:41 goehler Exp $
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]