LineSkyRegion¶
- class regions.LineSkyRegion(start, end, meta=None, visual=None)[source]¶
Bases:
regions.core.core.SkyRegion
A line in sky coordinates.
- Parameters
- start
SkyCoord
The start position.
- end
SkyCoord
The end position.
- 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.
- start
Attributes Summary
The end position as a
astropy.coordinates.SkyCoord
.The start position as a
astropy.coordinates.SkyCoord
.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
- end¶
The end position as a
astropy.coordinates.SkyCoord
.
- start¶
The start position 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