Module functions for noticing source and background regions in 2-D datasets.
Integer_Type set_notice2d([Integer_Type],String_Type[,String_Type])
Integer_Type set_snotice2d([Integer_Type],String_Type[,String_Type])
Integer_Type set_bnotice2d([Integer_Type],String_Type[,String_Type])
Success/Error Return Values: 1/0
Arguments:
(1) Dataset number (default 1)
(2) A filter expression: <filterExpr>
(3) The coordinate system expression
The commands set_notice2d, set_snotice2d,
and set_bnotice2d allow the user to specify regions
to notice in both source and background datasets, a source dataset, or
a background dataset respectively. These functions may only be applied
to 2-D data. Use
set_notice to
set ranges to notice in 1-D spectra.
See the
Sherpa Filtering
Chapter for the full definition of
<filterExpr>. (Also see examples below.)
The default coordinate system expression is "logical" (i.e., image coordinates).
Allowed coordinate system expressions include:
- "logical" | "image" - image coordinates
- "physical" - physical coordinates
- "wcs" | "world" - world coordinates
See the related Sherpa commands
NOTICE
and
IGNORE
for more information.
Read in an image; notice the central source using a circular
include region:
sherpa> load_image(2,"example_img.fits")
1
sherpa> set_notice2d(2,"circle(247,257,20)")
1
In this example, all data within a radius of 20 pixels of the image
coordinate (247,257) are noticed.
Apply a box filter to an image in physical coordinates:
sherpa> load_image(1,"example_img2.fits")
1
sherpa> set_notice2d(,"box(4050,3920,30,30)","physical")
1
- sherpa
-
analysis,
get_groups,
ignore,
notice,
set_filter,
set_groups,
set_ignore,
set_ignore2d,
set_ignore_all,
set_ignore_bad,
set_notice,
set_notice_all
|