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

delete_data

Context: py.sherpa

Synopsis

Delete a data set by ID

Syntax

delete_data( [id] )

Description

The delete_data() function deletes a data set from a Sherpa session by data set ID.

  • id - the id of the data set to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")

Example 1

sherpa> delete_data()

When called with no arguments, delete_data() will remove the default data set from the Sherpa session.

sherpa> print(get_data().name)
obsid_1843.pi

sherpa> delete_data()

sherpa> print(get_data().name)
IdentifierError'>: data set 1 has not been set

Example 2

sherpa> delete_data("src")

If supplied with a data set ID, delete_data() will remove the specified data set.

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.