pixel_to_skycoord¶
-
astropy.wcs.utils.pixel_to_skycoord(xp, yp, wcs, origin=0, mode='all', cls=None)[source] [edit on github]¶ Convert a set of pixel coordinates into a
SkyCoordcoordinate.Parameters: xp, yp : float or
numpy.ndarrayThe coordinates to convert.
wcs :
WCSThe WCS transformation to use.
origin : int
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').cls : class or None
Returns: coords : Whatever
clsis (a subclass ofSkyCoord)The celestial coordinates