craftutils.observation.epoch.SkyCoord.to_pixel(wcs, origin=0, mode='all')

Convert this coordinate to pixel coordinates using a ~astropy.wcs.WCS object.

Parameters

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

xp, ypnumpy.ndarray

The pixel coordinates

See Also

astropy.wcs.utils.skycoord_to_pixel : the implementation of this method