void fft() {
numberOfTraces = this.fid.length;
numberOfSamples = this.fid[0].getLength();
this.spec = new ComplexArray[numberOfTraces];
DoubleFFT_1D fourierTransform = new DoubleFFT_1D(numberOfSamples);
//ComplexArray specElement;
for (int i = 0; i < numberOfTraces; i++) {
double[] interleaved = this.fid[i].toDoubleArray(
ComplexArray.reductionMode.INTERLEAVED);
fourierTransform.complexForward(interleaved);
ComplexArray tmp = new ComplexArray(numberOfSamples);
tmp.setInterleavedDoubles(interleaved);
this.spec[i] = tmp.circShift().clone();
}