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

Synopsis

Module functions to retrieve a model stack expression.

Syntax

String_Type get_source_expr([Integer_Type])
String_Type get_bg_expr([Integer_Type])
String_Type get_inst_expr([Integer_Type])
String_Type get_sinst_expr([Integer_Type])
String_Type get_binst_expr([Integer_Type])

Error Return Value: NULL

Arguments:

(1) Dataset number (default 1)

Description

These functions get model stack expressions; get_sinst_expr and get_binst_expr get instrument model stack expressions for the source dataset only, and the background dataset only, respectively.

See the related Sherpa commands SOURCE, BACKGROUND, and INSTRUMENT for more information.

Example 1

Specify the source model stack expression for dataset 3, then retrieve it:

sherpa> PARAMPROMPT OFF
sherpa> GAUSS[g]
sherpa> POW[p]
sherpa> () = set_source_expr(3,"p+g")
sherpa> get_source_expr(3)
(p + g)

Example 2

Specify and retrieve a source model stack expression for dataset 1:

sherpa> () = set_source_expr("xswabs[xs1]*(pow[p]+gauss[g])")
sherpa> get_source_expr()
(xs1 * (p + g))

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.