crosscorrelate

jwst.ami.utils.crosscorrelate(a=None, b=None)[source]

Calculate cross correlation of two identically-shaped real or complex arrays.

Parameters:
a2D complex float array

First input array

b2D complex float array

Second input array

Returns:
fft.fftshift(c)

Complex array that is the correlation of the two input arrays.