TextSkyRegion¶
- class regions.TextSkyRegion(center, text, meta=None, visual=None)[source]¶
Bases:
regions.shapes.point.PointSkyRegion
A text string in sky coordinates.
- Parameters
- center
SkyCoord
The leftmost position of the text string before rotation.
- textstr
The text string.
- 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.
- center
Attributes Summary
The leftmost position (before rotation) as a
astropy.coordinates.SkyCoord
.Methods Summary
to_pixel
(wcs)Return the equivalent region defined in pixel coordinates.
Attributes Documentation
- center¶
The leftmost position (before rotation) as a
astropy.coordinates.SkyCoord
.
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