I am not sure what I am doing wrong here. I have also tried plotting from
[1:] to ignore the zero frequency and applying a highpass filter which have had no effect. My code is below.
# a = signal.detrend(hhe_trim.data, type='constant') a = hhe_trim.data.astype(np.float64) a -= np.mean(a) win = signal.hann(174001) dt = 0.01 n = 174001 X = fftpack.fft(a*win, n=n) freqs = fftpack.fftfreq(len(a), dt) plt.plot(freqs, np.abs(X)) # plt.yscale("log") plt.show()
My data has 174 001 samples and a sampling rate of 100Hz. Any help would be appreciated!