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:
centerPixCoord

The position of the center of the annulus.

centerPixCoord

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.

angleQuantity, optional

The rotation angle of the annulus, measured counterclockwise. If set to zero (the default), the width axis is lined up with the x-axis.

metaRegionMeta or dict, optional

A dictionary that stores the meta attributes of the region.

visualRegionVisual or dict, optional

A dictionary that stores the visual meta attributes of the region.

Attributes Summary

angle

The rotation angle measured counterclockwise as a astropy.units.Quantity angle.

center

The center pixel position as a PixCoord.

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 Summary

Attributes Documentation

angle#

The rotation angle measured counterclockwise as a astropy.units.Quantity angle.

center#

The center pixel position as a PixCoord.

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

to_sky_args(wcs)[source]#