;The Fourier transform of the cross correlation function is the ;product of the Fourier transform of the first series and the ;complex conjugate of the Fourier transform of the second series. Function CrossCorrelatemax, X, Y cc=CrossCorrelate(X,Y) junk=max(cc,index) return,array_indices(cc,index) end