About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/use.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 use Context: sherpa

Synopsis

Calls and executes a Sherpa script.

Syntax

sherpa> USE <script_name>

Description

where <script_name> is the name of an ASCII file containing Sherpa commands. A Sherpa script should contain Sherpa commands as they would be typed on the Sherpa command-line. Comments may be placed in the script by putting a # symbol at the start of the line.

Note that Sherpa scripts may also be run directly from the UNIX command line, using the following syntax:

unix% sherpa <script_name>

Note that when a script is run, either from within Sherpa or from the UNIX command line, parameter prompting is automatically turned off. Thus there is no need to include a PARAMPROMPT OFF command in the script.

Also note that if a {BYE | EXIT | QUIT} command is not given in the script, control over the Sherpa session will revert to the user when Sherpa finishes processing the scripted commands.

Sherpa scripts may be created by using the SAVE command.

Example

Call and execute a Sherpa script:


sherpa> $more example.script
# This is my sherpa script
READ DATA data/example1.dat
PARAMPROMPT OFF
POLY[modela]
THAW modela.2 modela.3
SOURCE = modela
FIT
sherpa> USE example.script

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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