Spectrum reduce

Draft of code to spectrum reduction via intgration
I don't think that case should raise an error