AnnulusSphericalSkyRegion#
- class regions.AnnulusSphericalSkyRegion[source]#
Bases:
SphericalSkyRegion,ABCA base class for spherical sky annulus regions.
Attributes Summary
Bounding circle for the spherical sky region.
Bounding longitude and latitude of the spherical sky region, in the region's frame.
Coordinate frame of the region.
Methods Summary
contains(coord)Check whether a sky coordinate falls inside the spherical sky region, excluding the boundary.
covers(coord)Check whether a sky coordinate falls inside the spherical sky region, including the boundary.
Attributes Documentation
- bounding_circle#
- bounding_lonlat#
- frame#
Methods Documentation
- contains(coord)[source]#
Check whether a sky coordinate falls inside the spherical sky region, excluding the boundary.
This method considers points on the boundary as outside the region, consistent with Shapely’s
containsfunction and DE-9IM semantics.- Parameters:
- coord
SkyCoord The position or positions to check.
- coord
See also
coversCheck if points are inside or on the boundary.
- covers(coord)[source]#
Check whether a sky coordinate falls inside the spherical sky region, including the boundary.
This method considers points on the boundary as inside the region, consistent with Shapely’s
coversfunction and DE-9IM semantics.- Parameters:
- coord
SkyCoord The position or positions to check.
- coord
See also
containsCheck if points are strictly inside (excludes boundary).