Last modified: December 2013

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


AHELP for CIAO 4.11 Sherpa v1

save

Context: saving

Synopsis

Save the current Sherpa session to a file

Syntax

save([filename=sherpa.save, clobber=False])

Description

The save command stores all information about the current Sherpa session, including the data. The restore command may then be used to recreate the session later ("ahelp restore"). The file is platform-independent, allowing collaborators to send a Sherpa session to one another.

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 instead, use the "save_all" command.


Examples

Example 1

sherpa> save()

The session is saved with the default name - sherpa.save - in the current working directory.

Example 2

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

The session is saved in 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, save_marx_spectrum
modeling
save_model, save_source
saving
restore, 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