01
Reads time [s] and acceleration [G] pasted from Excel.
Counts the data points and calculates the time step dt and the sampling frequency Fs automatically.
Fs decides the highest frequency that can be analyzed (Fs/2).
02
Converts the time history x[n] into complex frequency components X[k].
Uses the Cooley-Tukey algorithm (NumPy FFT), so N log N operations instead of N².
Frequency resolution is Δf = Fs/N.
03
Divides |X[k]| by N and doubles the positive frequencies.
The result is the real amplitude of each frequency in G, from 0 Hz to Fs/2.
04
Finds local maxima of the spectrum above 0.05 G, at least 10 frequency bins apart.
Peaks are sorted by amplitude and marked on the graph one by one with the Add Peak button.