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 2007

URL: http://cxc.harvard.edu/sherpabeta/set_source.py.html
AHELP for Sherpa 4.0 Beta set_source Context: py.sherpa

Synopsis

Set the source model expression to be used for fitting a dataset.

Syntax

set_source( id, [model=None] )

Description

Set the source model expression to be used for fitting a dataset.

  • id - the model id. If no id is specified, the default model id is used.
  • model - Sherpa model

Example

sherpa> set_source( 2, xswabs.a1 * xsbbody.b2)

Set the source model for dataset "2" to "xswabs.a1 * xsbbody.b2".

Bugs

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

Last modified: December 2007



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.