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

Synopsis

Module functions for ignoring bad (quality > 0) channels.

Syntax

Integer_Type set_ignore_bad([Integer_Type])
Integer_Type set_signore_bad([Integer_Type])
Integer_Type set_bignore_bad([Integer_Type])

Success/Error Return Values: 1/0

Arguments:

(1) Dataset number (default 1)

Description

The commands set_ignore_bad, set_signore_bad, and set_bignore_bad allow the user to ignore bad quality (quality > 0) channels in both source and background datasets, a source dataset, or a background dataset respectively. These functions have no impact if the data quality has not been defined, either within a column of a PHA dataset or via the READ QUALITY command.

See the related Sherpa commands NOTICE and IGNORE for more information.

Example

Read in a PHA file; ignore the bad channels:

sherpa> () = load_dataset(1,"example.pha")
sherpa> f = get_filter()
sherpa> print(length(where(f>0)))
95                                        # 95 noticed bins
sherpa> set_ignore_bad
1
sherpa> f = get_filter()
sherpa> print(length(where(f>0)))    
80                                        # now only 80 noticed bins

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.