diff --git a/src/classes/PFourier.cpp b/src/classes/PFourier.cpp index 643b7179..c0b8cfbc 100644 --- a/src/classes/PFourier.cpp +++ b/src/classes/PFourier.cpp @@ -189,27 +189,20 @@ void PFourier::Transform(unsigned int apodizationTag) if (!fValid) return; -//cout << endl << ">> PFourier::Transform (apodizationTag=" << apodizationTag << ") ..." << endl; - PrepareFFTwInputData(apodizationTag); -/* -if (fNoOfBins < 200) { -for (unsigned int i=0; i> PFourier::PrepareFFTwInputData: " << i << ": fIn[i][0] = " << fIn[i][0]; -} -cout << endl; -} -*/ - fftw_execute(fFFTwPlan); -/* -for (unsigned int i=fNoOfBins-10; i> PFourier::PrepareFFTwInputData: " << i << ": fOut[i][0] = " << fOut[i][0]; -} -cout << endl; -*/ + // correct the phase for tstart != 0.0 + double phase, re, im; + for (unsigned int i=0; i