Ask Your Question
1

performing a higher resolution FFT

asked 2015-03-17 07:13:22 +0100

Geremia gravatar image

How do I interpolate (up-sample) a discrete function so that I can perform a more refined FFT spectral analysis on it?

(Note: By default, NumPy's FFT command produces a list of the same dimension as the input list.)

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-03-17 14:54:43 +0100

ADuC812 gravatar image

updated 2015-03-17 14:55:46 +0100

I am not sure if this is what you want, but if you add some number of zeros in the end of your input list you will get higher resolution (just more points) in the output. This trick works best if your signal decays to zero in the end (and is zero at the beginning). It does not, however, improve the actual resolution of the FFT, for example in case the characteristic frequency in your signal is not an exact multiple of the sampling rate. In the latter case, you can use Hamming window for example to improve resolution.

edit flag offensive delete link more

Comments

Oh, yes, using a windowing function is a good idea. thanks

Geremia gravatar imageGeremia ( 2015-03-17 18:00:59 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-17 07:13:22 +0100

Seen: 1,066 times

Last updated: Mar 17 '15