3D discrete fourier transform

I am trying to perform a 3D discrete fourier transform of a three dimensional data set (x component of the velocity in a cube.

However, i have found no information regarding this. Is there a package or command to perform it in a quick way?

If you could provide a minimal example it would be great.

Thank you in advance.

you can see the example form the source

Thank you very much professor,

I had developed a dfft in 3d performing 3 1D-dfft, and we obtain the same results. But this solution is much more quick.