def trans_array(data, _axes):
    """Calculate indices for an array transpose use by anFFT.

    :param data: The data, used for dimension purposes (rank)
    :type data: numpy array
    :param _axes: axes to FFT over, and hence transpose to the end
    :type _axes: list
    :return: tuple of axes values
    :rtype: tuple of integers

    """
    ind = list(range(data.ndim))
    try:
        axes = list(_axes)
    except Exception:  # integer
        axes = [_axes]
    axes.sort()
    axes.reverse()
    for a in axes:
        ind.pop(a)
    ind.extend(axes)
    return ind