def METHOD_NAME(self, ra_deg, dec_deg, coords='data', naxispath=None):
    args = [ra_deg, dec_deg]
    if naxispath:
        args += [0] * len(naxispath)
    args = tuple(args)
    try:
        pix = self.wcs.topixel(args)
    except Exception as e:
        self.logger.error("Error calculating radectopix: %s" % (str(e)))
        raise common.WCSError(e)
    if coords == 'data':
        # Kapteyn's WCS returns pixels referenced from 1
        pix = tuple(map(lambda x: x - 1, pix))
    x, y = pix[0], pix[1]
    return (x, y)