# 3D discrete fourier transform

**URL:** <https://community.freefem.org/t/3d-discrete-fourier-transform/1983>\
**Category:** General Discussion\
**Created:** [September 2, 2022, 5:08pm UTC](https://community.freefem.org/t/3d-discrete-fourier-transform/1983 "2022-09-02T17:08:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abanderam](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/abanderam/32/1258_2.png) [@abanderam](https://community.freefem.org/u/abanderam)\
**Post date:** [September 2, 2022, 5:08pm UTC](https://community.freefem.org/t/3d-discrete-fourier-transform/1983/1 "2022-09-02T17:08:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [September 8, 2022, 8:24am UTC](https://community.freefem.org/t/3d-discrete-fourier-transform/1983/2 "2022-09-08T08:24:32Z")

</div>

you can see the example form the source

> <https://github.com/FreeFem/FreeFem-sources/blob/master/examples/plugin/dfft-3d.edp>

---

<div class="post-metadata">

**Author:** ![abanderam](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/abanderam/32/1258_2.png) [@abanderam](https://community.freefem.org/u/abanderam)\
**Post date:** [September 8, 2022, 9:21am UTC](https://community.freefem.org/t/3d-discrete-fourier-transform/1983/3 "2022-09-08T09:21:22Z")

</div>

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.
