-
classmethod craftutils.observation.epoch.SkyCoord.from_pixel(xp, yp, wcs, origin=
0, mode='all') Create a new SkyCoord from pixel coordinates using a World Coordinate System.
Parameters¶
- xp, ypfloat or ndarray
The coordinates to convert.
- wcs~astropy.wcs.WCS
The WCS to use for convert
- 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').
Returns¶
- coord~astropy.coordinates.SkyCoord
A new object with sky coordinates corresponding to the input
xpandyp.
See Also¶
to_pixel : to do the inverse operation astropy.wcs.utils.pixel_to_skycoord : the implementation of this method