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/paramprompt.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 paramprompt Context: sherpa

Synopsis

Turns on/off prompting for model parameter values.

Syntax

sherpa> PARAMPROMPT {ON | OFF}

Description

By default, prompting for model parameter values is ON. However, when an Sherpa script file name is provided on the UNIX command line (e.g. unix> sherpa example.script) or is provided as the argument of a USE command, prompting for model parameter values is automatically turned off.

For more information about parameter prompting, see the CREATE command.

Example 1

Turn off parameter prompting; set parameter values using the model language syntax:


sherpa> PARAMPROMPT OFF
Model parameter prompting is off
sherpa> SOURCE 2 = POW[modele]
sherpa> modele.ampl = 2.3

Example 2

Call and execute Sherpa script; set parameter values using the model language syntax:


sherpa> $more example.script
# This is my sherpa script
READ DATA example.dat
POLY[modela]
SOURCE = modela
FIT

sherpa> USE example.script
 powll: v1.2
 powll:   initial function value =     3.25453E+02
 powll:     converged to minimum =     9.80351E+01 at iteration =      2
 powll:   final function value    =     9.80351E+01
        modela.c0  10.4657
sherpa>

This example shows that when a Sherpa script is called and executed, prompting for model parameter values is automatically turned off.

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.