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/delete_bkg_model.py.html
AHELP for Sherpa 4.1

delete_bkg_model

Context: py.sherpa

Synopsis

Delete a background model

Syntax

delete_bkg_model( [id, bkg_id] )

Description

The delete_bkg_model command deletes a background model from the stack.

  • id - the id of the dataset; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • bkg_id - the id of the background with the model to be deleted; default is the first background dataset

Example 1

sherpa> delete_bkg_model()
sherpa> delete_bkg_model(1)
sherpa> delete_bkg_model(1, 1)

These commands are equivalent ways of deleting the background model for the default background associated with the default source dataset.

Example 2

sherpa> delete_bkg_model(bkg_id="bkg")

Delete the model associated with the background "bkg".

Example 3

sherpa> delete_bkg_model("src", 2)

Delete the model for the second background of the dataset "src".

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.