Exclude a spatial region from all data sets.
Select a spatial region to exclude in the fit. The filter is applied to all data sets.
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 (set_coord). If
None, then all points are included.
The region syntax is described in the notice2d function.
Exclude points that fall within the two regions:
>>> ignore2d('ellipse(200,300,40,30,-34)') >>> ignore2d('box(40,100,30,40)')
Use a region file called ‘reg.fits’, by using either:
Exclude all points.