AnnulusSphericalSkyRegion#

class regions.AnnulusSphericalSkyRegion[source]#

Bases: SphericalSkyRegion, ABC

A base class for spherical sky annulus regions.

Attributes Summary

bounding_circle

Bounding circle for the spherical sky region.

bounding_lonlat

Bounding longitude and latitude of the spherical sky region, in the region's frame.

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 contains function and DE-9IM semantics.

Parameters:
coordSkyCoord

The position or positions to check.

See also

covers

Check 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 covers function and DE-9IM semantics.

Parameters:
coordSkyCoord

The position or positions to check.

See also

contains

Check if points are strictly inside (excludes boundary).