'Convert this coordinate to pixel coordinates using a `~astropy.wcs.WCS`
object.
Parameters
wcs : `~astropy.wcs.WCS`
The WCS to use for convert
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\'``).
Returns
xp, yp : `numpy.ndarray`
The pixel coordinates
See Also
astropy.wcs.utils.skycoord_to_pixel : the implementation of this method'

def to_pixel(self, wcs, origin=0, mode=u'all'):

    return skycoord_to_pixel(self, wcs=wcs, origin=origin, mode=mode)
