CircleSkyRegion¶
- class regions.CircleSkyRegion(center, radius, meta=None, visual=None)[source]¶
Bases:
SkyRegion
A circle defined using sky coordinates.
- Parameters:
- center
SkyCoord
The center position.
- radius
Quantity
The radius in angular units.
- meta
RegionMeta
ordict
, optional A dictionary that stores the meta attributes of the region.
- visual
RegionVisual
ordict
, optional A dictionary that stores the visual meta attributes of the region.
- center
Attributes Summary
The center position as a
astropy.coordinates.SkyCoord
.The meta attributes as a
RegionMeta
The radius as a
astropy.units.Quantity
angle.The visual attributes as a
RegionVisual
.Methods Summary
to_pixel
(wcs)Return the equivalent region defined in pixel coordinates.
Attributes Documentation
- center¶
The center position as a
astropy.coordinates.SkyCoord
.
- meta¶
The meta attributes as a
RegionMeta
- radius¶
The radius as a
astropy.units.Quantity
angle.
- visual¶
The visual attributes as a
RegionVisual
.
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