Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2010

URL: http://cxc.harvard.edu/sherpa/restore.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.3 Sherpa v1

restore

Context: saving

Synopsis

Restore a previous Sherpa session from a file

Syntax

restore([filename=sherpa.save])

Description

The restore command restores all information about a Sherpa session, including the data, from a save file ("ahelp save"). The file is platform-independent, allowing collaborators to send a Sherpa session to one another.

  • filename - name, including path, of the save file; default is "sherpa.save" in the working directory

Currently the session is stored as a binary file, so it cannot be viewed or modified outside of Sherpa. To save the output as an ASCII file, use the "save_all" command.

Example 1

sherpa> restore()

The session is restored from the default file, sherpa.save.

Example 2

sherpa> restore("/data/m31/model2.shp")

The session is restored from the file /data/m31/model2.shp.

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

contrib
save_chart_spectrum
modeling
save_model, save_source
saving
save, save_all, save_arrays, save_data, save_delchi, save_error, save_filter, save_grouping, save_image, save_pha, save_quality, save_resid, save_staterror, save_syserror, save_table, script

Last modified: December 2010
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2019. All rights reserved.