def METHOD_NAME(self, idxs, coords='data'):
    # Kapteyn's WCS needs pixels referenced from 1
    if coords == 'data':
        idxs = tuple(map(lambda x: x + 1, idxs))
    else:
        idxs = tuple(idxs)
    # print("indexes=%s" % (str(idxs)))
    try:
        res = self.wcs.toworld(idxs)
        if ((self.wcs.lonaxnum is not None) and
                (self.wcs.lataxnum is not None)):
            ra_deg = res[self.wcs.lonaxnum - 1]
            dec_deg = res[self.wcs.lataxnum - 1]
        else:
            ra_deg, dec_deg = res[0], res[1]
    except Exception as e:
        self.logger.error("Error calculating pixtoradec: %s" % (str(e)))
        raise common.WCSError(e)
    return ra_deg, dec_deg