TextSkyRegion

class regions.TextSkyRegion(center, text, meta=None, visual=None)[source]

Bases: PointSkyRegion

A text string in sky coordinates.

Parameters:
centerSkyCoord

The leftmost position of the text string before rotation.

textstr

The text string.

metaRegionMeta or dict, optional

A dictionary that stores the meta attributes of the region.

visualRegionVisual or dict, optional

A dictionary that stores the visual meta attributes of the region.

Attributes Summary

center

The leftmost position (before rotation) as a astropy.coordinates.SkyCoord.

meta

The meta attributes as a RegionMeta

visual

The visual attributes as a RegionVisual.

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.

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:
wcsWCS

The world coordinate system transformation to use to convert between sky and pixel coordinates.

Returns:
pixel_regionPixelRegion

A pixel region.