PolygonSkyRegion¶
- class regions.PolygonSkyRegion(vertices, meta=None, visual=None)[source]¶
Bases:
regions.core.core.SkyRegion
A polygon defined using vertices in sky coordinates.
- Parameters
- vertices
SkyCoord
The vertices of the polygon.
- meta
RegionMeta
, optional A dictionary that stores the meta attributes of this region.
- visual
RegionVisual
, optional A dictionary that stores the visual meta attributes of this region.
- vertices
Attributes Summary
The vertices of the polygon as a
astropy.coordinates.SkyCoord
array.Methods Summary
to_pixel
(wcs)Return the equivalent region defined in pixel coordinates.
Attributes Documentation
- vertices¶
The vertices of the polygon as a
astropy.coordinates.SkyCoord
array.
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