def ftShift2d(inputData, outputData=None):
    """
    Helper function to shift an array of 2-D FFT data

    Args:
        inputData(ndarray): array of data to be shifted. Will shift final 2 axes
        outputData(ndarray, optional): array to place data. If not given, will overwrite inputData
    """
    if not outputData:
        outputData = inputData.view()
    shape = inputData.shape
    shape_1 = int(round(shape[-2] * 0.5))
    shape_2 = int(round(shape[-1] * 0.5))
    outputData[(...), :shape_1, :shape_2] = inputData[(...), :shape_1, :shape_2
        ][(...), ::-1, ::-1]
    outputData[(...), shape_1:, :shape_2] = inputData[(...), shape_1:, :shape_2
        ][(...), ::-1, ::-1]
    outputData[(...), :shape_1, shape_2:] = inputData[(...), :shape_1, shape_2:
        ][(...), ::-1, ::-1]
    outputData[(...), shape_1:, shape_2:] = inputData[(...), shape_1:, shape_2:
        ][(...), ::-1, ::-1]
    return outputData
