Python Forum

Full Version: power spectrum from 2Dfft
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to calculate 2D fast fourier transform (2DFFT) of temperature data in mesosphere and lower thermosphere (MLT). Data are time vs altitude format temperature is function of time (24 hours; hourly) and altitude so Temperature(time, altitude). Could you please provide me the python code to get the 2DFFT of the data? I would like to get output as function of wavelength and altitude etc.

I would highly appreciate your help on this.

Regards,

Dipti
I am not ready to write full code, but I can point you to the package called NumPy, that provides functionality that you are looking for. You can directly apply this function to your data, if it is presented as 2D array. Also, this package provides tools for frequency computation, e.g. this.