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