fourier_analysis_2d¶
- fourier_analysis_2d(scan_result)[source]¶
Compute the 2D Fourier power spectrum of a scan grid.
Applies
numpy.fft.fft2()to thevaluesgrid and returns the shifted power spectrum.Note
Assumes uniform grid spacing (as produced by
scan_2d(),scan_pca(), and all interpolation scans which usenumpy.linspace()). Non-uniform grids will produce incorrect frequency axes.- Parameters:
scan_result (
Scan2DResult|PCAScanResult) – AScan2DResultorPCAScanResultwhosevaluesgrid will be transformed.- Returns:
Shifted frequencies and power spectrum.
- Return type: