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 2008

URL: http://cxc.harvard.edu/sherpa4.1/set_pileup_model.py.html
AHELP for Sherpa 4.1

set_pileup_model

Context: py.sherpa

Synopsis

Set a pileup model to be used in fitting a dataset

Syntax

set_pileup_model( [id], model] )

Description

The set_pileup_model command establishes a pileup model to be used in fitting the data. There is one pileup model available in Sherpa: jdpileup ("ahelp jdpileup")

  • id - the id of the dataset; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • model - the name of the pileup model

The pileup parameter values are reported with the source model parameters after a fit:

     jdp.alpha      0.5
     jdp.f          1
     intrin.nh      3.14395
     power.phoindex   0.621892
     power.norm     1348.33

Example 1

sherpa> set_pileup_model(jdpileup.jdp)

An instance of the pileup model named "jdp" is established for the default data set.

Example 2

sherpa> set_pileup_model( 2, mypileup )

A previously-established pileup model called "mypileup" is set for dataset 2.

Bugs

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

Last modified: December 2008



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.