CircleSkyRegionArray#
- class gammapy.utils.regions.CircleSkyRegionArray[source]#
Bases:
CircleSkyRegionCircle sky region with array support for radius
Attributes Summary
Methods Summary
to_pixel(wcs)Return a pixel region from this sky region.
Attributes Documentation
- is_regular = False#
- radius#
Methods Documentation
- to_pixel(wcs)[source]#
Return a pixel region from this sky region.
- Parameters:
- wcsWCS object
A world coordinate system (WCS) transformation that supports the astropy shared interface for WCS (e.g.,
astropy.wcs.WCS).- as_ellipsebool, optional
If
True, return anEllipsePixelRegioninstead of aCirclePixelRegion. An ellipse is generally a better approximation when the WCS has distortions or different pixel scales along different axes. Default isFalse.
- Returns:
- region
CirclePixelRegionorEllipsePixelRegion The pixel region. An ellipse is returned if
as_ellipseisTrue.
- region
- __init__(center, radius, meta=None, visual=None)#
- classmethod __new__(*args, **kwargs)#