- sherpa.astro.ui.ignore2d_id(ids, val=None)
Exclude a spatial region from a data set.
Select a spatial region to exclude in the fit. The filter is applied to the given data set, or sets.
Changed in version 4.15.0: The change in the filter is now reported for the dataset.
ids (int or str, or array of int or str) – The data set, or sets, to use.
val (str, optional) – A region specification as a string or the name of a file containing a region filter. The coordinates system of the filter is taken from the coordinate setting of the data sets (
None, then all points are included.
Exclude a spatial region from all data sets.
Select the region to exclude from the image viewer.
Include a spatial region of all data sets.
Include a spatial region from a data set.
Select the region to include from the image viewer.
Set the coordinate system to use for image analysis.
The region syntax is described in the
Ignore the pixels within the rectangle from data set 1:
>>> ignore2d_id(1, 'rect(10,10,20,290)')
Ignore the spatial region in the file
>>> ignore2d_id(1, 'srcs.reg')
>>> ignore2d_id(1, 'region(srcs.reg)')