1D Fast Fourier Transform (FFT) Filter
Table of contents
How to Use
To apply 1D FFT smoothening to your data:
- Upload data and select the spectra you want to process.
- Navigate to the sidebar and turn on the “Smoothening” toggle.
- Select “1D Fast Fourier Transform filter” from the drop-down menu.
- Configure parameters:
- FFT threshold (defaults to
0.100) - The maximum frequency to keep in your data. - Padding method (can be “mirror,” “edge,” or “zero”).
- FFT threshold (defaults to
Behavior
If using the 1D Fast Fourier Transform (FFT) filter, SpectraGuru uses Numpy’s fft.fft and fft.ifft functions to convert your data to and from frequency space, zeroing out high frequencies in the process and removing noise. The process is as follows:
- Pad the data based on the specified padding method.
- “mirror” pads the data by reflecting it at its edges.
- “edge” pads the data by repeating the data at each edge.
- “zero” pads the data with zeros.
- Convert padded data to frequency space using a Fast Fourier Transform. The frequency space represents your data as a sum of waves of different frequencies.
- Remove the waves in this space that are above the threshold frequency.
- Convert the new frequency space back into readable data using an Inverse Fast Fourier Transform.
References
SpectraGuru uses NumPy’s fft.fft and fft.ifft functions for doing FFT and inverse FFT.
- Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., & others. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2