TextSkyRegion

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

Bases: regions.PointSkyRegion

A Text string in sky coordinates

Parameters:
center : SkyCoord

The position of the leftmost point of the text string

text : str

The text string.

meta : RegionMeta object, optional

A dictionary which stores the meta attributes of this region.

visual : RegionVisual object, optional

A dictionary which stores the visual meta attributes of this region.

Methods Summary

to_pixel(self, wcs) Returns the equivalent region defined in pixel coordinates.

Methods Documentation

to_pixel(self, wcs)[source]

Returns the equivalent region defined in pixel coordinates.

Parameters:
wcs : WCS instance

The world coordinate system transformation to assume

Returns:
pixel_region : PixelRegion object.