Am working on 1D Coherence test. It seems to work with a hamming window rather than a hann window. This commit from soleil.