AsymmetricAnnulusPixelRegion

class regions.AsymmetricAnnulusPixelRegion(center, inner_width, outer_width, inner_height, outer_height, angle=<Quantity 0. deg>, meta=None, visual=None)[source]

Bases: regions.shapes.annulus.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 anti-clockwise. If set to zero (the default), the width axis is lined up with the x axis.

Attributes Summary

angle

The rotation angle measured anti-clockwise 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.

outer_height

The outer height (before rotation) in pixels as a float.

outer_width

The outer width (before rotation) in pixels as a float.

Methods Summary

to_sky_args(wcs)

Attributes Documentation

angle

The rotation angle measured anti-clockwise 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.

outer_height

The outer height (before rotation) in pixels as a float.

outer_width

The outer width (before rotation) in pixels as a float.

Methods Documentation

to_sky_args(wcs)[source]