Chandra X-Ray Observatory
Skip to the navigation links
Last modified: December 2013

Jump to: Description · Examples · Bugs · See Also

AHELP for CIAO 4.10 ChIPS v1


Context: preference


Saves ChIPS preferences to a file.




The function arguments.

Argument Description
filename The file name to write to.

The save_preferences command saves ChIPS preferences to the specified file. If not specified, uses "$HOME/.chips.rc".

If the output file exists, ChIPS behavior is determined by the value of the export.clobber preference. If export.clobber is set to true, ChIPS will attempt to overwrite the existing file.

The preferences can be loaded into a new ChIPS session with the load_preferences command.

See "ahelp preferences" for general information on the attribute values and settings in ChIPS.


Example 1

chips> save_preferences()

Save preferences to the file "$HOME/.chips.rc". If the file already exits then setting the export.clobber preference to true will cause the file to be over-written (but note that this new setting for export.clobber will be saved to your preferences file!):

chips> set_preference("export.clobber", "true")

Example 2

chips> save_preferences("/some/path/chips.pref")

Save preferences to the file "/some/path/chips.pref".


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

See Also

get_preference, get_preferences, load_preferences, set_preference, set_preference_autoload, set_preferences

Last modified: December 2013
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: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.