CircleSkyRegion

class regions.CircleSkyRegion(center, radius, meta=None, visual=None)[source]

Bases: regions.core.core.SkyRegion

A circle defined using sky coordinates.

Parameters
centerSkyCoord

The center position.

radiusQuantity

The radius in angular units.

metaRegionMeta, optional

A dictionary that stores the meta attributes of this region.

visualRegionVisual, optional

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

Attributes Summary

center

Descriptor class for SkyRegion, which takes a scalar SkyCoord object.

radius

Descriptor class for SkyRegion, which takes a scalar Quantity object.

Methods Summary

to_pixel(wcs)

Return the equivalent region defined in pixel coordinates.

Attributes Documentation

center

Descriptor class for SkyRegion, which takes a scalar SkyCoord object.

radius

Descriptor class for SkyRegion, which takes a scalar Quantity object.

Methods Documentation

to_pixel(wcs)[source]

Return the equivalent region defined in pixel coordinates.

Parameters
wcsWCS

The world coordinate system transformation to use to convert between sky and pixel coordinates.

Returns
pixel_regionPixelRegion

A pixel region.