PointSkyRegion¶
- class regions.PointSkyRegion(center, meta=None, visual=None)[source]¶
Bases:
SkyRegion
A pixel region in sky coordinates.
- Parameters:
- center
SkyCoord
The position of the point.
- meta
RegionMeta
ordict
, optional A dictionary that stores the meta attributes of the region.
- visual
RegionVisual
ordict
, optional A dictionary that stores the visual meta attributes of the region.
- center
Attributes Summary
The point position as a
astropy.coordinates.SkyCoord
.The meta attributes as a
RegionMeta
The visual attributes as a
RegionVisual
.Methods Summary
contains
(skycoord, wcs)Check whether a sky coordinate falls inside the region.
to_pixel
(wcs)Return the equivalent region defined in pixel coordinates.
Attributes Documentation
- center¶
The point position as a
astropy.coordinates.SkyCoord
.
- meta¶
The meta attributes as a
RegionMeta
- visual¶
The visual attributes as a
RegionVisual
.
Methods Documentation
- to_pixel(wcs)[source]¶
Return the equivalent region defined in pixel coordinates.
- Parameters:
- wcs
WCS
The world coordinate system transformation to use to convert between sky and pixel coordinates.
- wcs
- Returns:
- pixel_region
PixelRegion
A pixel region.
- pixel_region