SkyAperture#
- class photutils.aperture.SkyAperture[source]#
Bases:
ApertureAbstract base class for all apertures defined in celestial coordinates.
Attributes Summary
Methods Summary
copy()Make a deep copy of this object.
The aperture positions, as an array of (x, y) coordinates or a
SkyCoord.to_pixel(wcs)Convert the aperture to a
PixelApertureobject defined in pixel coordinates.Attributes Documentation
- isscalar#
Whether the instance is scalar (i.e., a single position).
- shape#
The shape of the instance.
Methods Documentation
- abstractmethod positions()#
The aperture positions, as an array of (x, y) coordinates or a
SkyCoord.
- abstractmethod to_pixel(wcs)[source]#
Convert the aperture to a
PixelApertureobject defined in pixel coordinates.- Parameters:
- wcsWCS object
A world coordinate system (WCS) transformation that supports the astropy shared interface for WCS (e.g.,
astropy.wcs.WCS,gwcs.wcs.WCS).
- Returns:
- aperture
PixelApertureobject A
PixelApertureobject.
- aperture