pixel_to_skycoord¶
-
astropy.wcs.utils.pixel_to_skycoord(xp, yp, wcs, origin=0, mode='all', cls=None)[source]¶ Convert a set of pixel coordinates into a
SkyCoordcoordinate.- Parameters
- xp, ypfloat or
numpy.ndarray The coordinates to convert.
- wcs
WCS The WCS transformation to use.
- originint
Whether to return 0 or 1-based pixel coordinates.
- mode‘all’ or ‘wcs’
Whether to do the transformation including distortions (
'all') or only including only the core WCS transformation ('wcs').- clsclass or None
The class of object to create. Should be a
SkyCoordsubclass. If None, defaults toSkyCoord.
- xp, ypfloat or
- Returns
- coordsWhatever
clsis (a subclass ofSkyCoord) The celestial coordinates
- coordsWhatever