GenPK generates the 3D matter power spectra for each particle species from a Gadget snapshot. Written in C++, it requires both FFTW3 and GadgetReader.
https://ui.adsabs.harvard.edu/abs/2017ascl.soft06006B