def residuals_center( param, data):
    """Residual function for minimizing the deviations from the mean radial distance.

    Parameters
    ----------
        param : np.ndarray
            The center to optimize.
        data : np.ndarray
            The points in x,y coordinates of the original image.

    Returns
    -------
        : np.ndarray
           Residuals.

    """