fourier_analysis_2d

fourier_analysis_2d(scan_result)[source]

Compute the 2D Fourier power spectrum of a scan grid.

Applies numpy.fft.fft2() to the values grid and returns the shifted power spectrum.

Note

Assumes uniform grid spacing (as produced by scan_2d(), scan_pca(), and all interpolation scans which use numpy.linspace()). Non-uniform grids will produce incorrect frequency axes.

Parameters:

scan_result (Scan2DResult | PCAScanResult) – A Scan2DResult or PCAScanResult whose values grid will be transformed.

Returns:

Shifted frequencies and power spectrum.

Return type:

Fourier2DResult