numarray: 3D Fourier transforms
![](https://secure.gravatar.com/avatar/f0bc43b2d3e1ee0cd1852ae8bf06bab7.jpg?s=120&d=mm&r=g)
Hi I only hope that you guys on this list can help me, for I didn't find a list specified on numarray. Well, may problem is that I want to write an algorithm where I combine amplitude data from one 3D-image volume with phase data from another. (Actually they are identical except for one small correction, that's why this should be legal.) Numarray only offers 1D and 2D FFTs. I could possibly implement a 3D transform, but if somebody already has written something like this, it would be very nice if one could point me on an URL for this. Thanks a lot in advance. Cheers Christian Meesters
![](https://secure.gravatar.com/avatar/ba366a43ea0322ddb4cf2462f8ad2596.jpg?s=120&d=mm&r=g)
Numarray has N-dimensional fft's, they are just not documented in the manual (this should be fixed, will do that as soon as find the time). There are the following functions in numarray.fft: fftnd() inverse_fftnd() real_fftnd() inverse_real_fftnd() They are documented in the source code, try the following:
from numarray import fft help(fft.fftnd)
Or alternatively, implement your 3D fft as a sequence of three 1D fft's. Cheers, Peter On Nov 23, 2004, at 8:59 PM, Christian Meesters wrote:
![](https://secure.gravatar.com/avatar/ba366a43ea0322ddb4cf2462f8ad2596.jpg?s=120&d=mm&r=g)
Numarray has N-dimensional fft's, they are just not documented in the manual (this should be fixed, will do that as soon as find the time). There are the following functions in numarray.fft: fftnd() inverse_fftnd() real_fftnd() inverse_real_fftnd() They are documented in the source code, try the following:
from numarray import fft help(fft.fftnd)
Or alternatively, implement your 3D fft as a sequence of three 1D fft's. Cheers, Peter On Nov 23, 2004, at 8:59 PM, Christian Meesters wrote:
participants (2)
-
Christian Meesters
-
Peter Verveer