def xy_to_rc(arr2d, x, y):
    """Returns the rc coordinates

    :param arr2d: an numpy array
    :param r: row coordinate
    :param c: column coordinates
    :returns: (x,y) coordinates
    """
    return arr2d.shape[0] - 1 - y, x
