![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
On Mon, Apr 11, 2022 at 11:38 PM ashwin .D <winash12@gmail.com> wrote:
Hello, I have looked at both these answers from SO - https://stackoverflow.com/questions/34428886/discrete-fourier-transformation... and https://stackoverflow.com/questions/25735153/plotting-a-fast-fourier-transfo...
My question is somewhat similar. I have data from a CSV file that has measurements of a mean sea level pressure. The data is available every 5 minutes. That means 8928 sample points over a month. But during a hurricane event there was a power failure and only 8867 data points are available. I am short by 61 points to get a uniformly spaced sample. I am wanting to take an FFT of the data in order to check for periodicity, waves and frequencies there of. What are my best options ?
The first SO answer is reliable (the second is mostly useless for the kind of gap you are talking about); the Lomb-Scargle periodogram is a very reasonable way to do the task. To answer those questions, you will likely want a periodogram, not the more fundamental Fourier transform. But if you do want a full complex-valued Fourier transform for whatever reason, `nfft` should do the job: https://github.com/jakevdp/nfft/ -- Robert Kern