SkyAperture#
- class photutils.aperture.SkyAperture[source]#
Bases:
Aperture
Abstract base class for all apertures defined in celestial coordinates.
Attributes Summary
Methods Summary
copy
()Make an 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
PixelAperture
object 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
- copy()#
Make an deep copy of this object.
- Returns:
- result
Aperture
A deep copy of the Aperture object.
- result
- abstract to_pixel(wcs)[source]#
Convert the aperture to a
PixelAperture
object 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
PixelAperture
object A
PixelAperture
object.
- aperture