AsymmetricAnnulusPixelRegion¶
- class regions.AsymmetricAnnulusPixelRegion(center, inner_width, outer_width, inner_height, outer_height, angle=<Quantity 0. deg>, meta=None, visual=None)[source]¶
Bases:
AnnulusPixelRegion
Helper class for asymmetric annuli sky regions.
Used for ellipse and rectangle pixel annulus regions.
- Parameters:
- center
PixCoord
The position of the center of the annulus.
- center
PixCoord
The position of the center of the annulus.
- inner_widthfloat
The inner width of the annulus (before rotation) in pixels.
- outer_widthfloat
The outer width of the annulus (before rotation) in pixels.
- inner_heightfloat
The inner height of the annulus (before rotation) in pixels.
- outer_heightfloat
The outer height of the annulus (before rotation) in pixels.
- angle
Quantity
, optional The rotation angle of the annulus, measured anti-clockwise. If set to zero (the default), the width axis is lined up with the x axis.
- 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 rotation angle measured anti-clockwise as a
astropy.units.Quantity
angle.The center pixel position as a
PixCoord
.The inner height (before rotation) in pixels as a float.
The inner width (before rotation) in pixels as a float.
The meta attributes as a
RegionMeta
The outer height (before rotation) in pixels as a float.
The outer width (before rotation) in pixels as a float.
The visual attributes as a
RegionVisual
.Methods Summary
to_sky_args
(wcs)Attributes Documentation
- angle¶
The rotation angle measured anti-clockwise as a
astropy.units.Quantity
angle.
- inner_height¶
The inner height (before rotation) in pixels as a float.
- inner_width¶
The inner width (before rotation) in pixels as a float.
- meta¶
The meta attributes as a
RegionMeta
- outer_height¶
The outer height (before rotation) in pixels as a float.
- outer_width¶
The outer width (before rotation) in pixels as a float.
- visual¶
The visual attributes as a
RegionVisual
.
Methods Documentation