Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/ignore_bad.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

ignore_bad

Context: filtering

Synopsis

Ignore bins according to quality flags

Syntax

ignore_bad( [id,] [bkg_id] )

Description

The ignore_bad command ignores bins in the PHA data which have a quality flag > 0 ("bad").

Ignoring the bad quality bins may alter the grouping flag sizes. In this case, any filters which have been applied to the data are removed when ignore_bad is used.


Examples

Example 1

sherpa> ignore_bad()

Ignore bins with quality flags set in the default dataset.

Example 2

sherpa> ignore_bad("src")
sherpa> ignore_bad("src", "bkg1")

Ignore bins with quality flags set in the dataset "src" and the corresponding background file "bkg1".

Example 3

sherpa> notice(0.1,4.0)
sherpa> ignore_bad()
WARNING: filtering grouped data with quality flags, previous filters
deleted

The ignore_bad command alters the size of the grouping flags, so a warning is printed.


Bugs

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

See Also

data
group
filtering
get_filter, ignore, ignore2d, ignore2d_id, ignore_id, notice, notice2d, notice2d_id, notice_id, show_filter