Spectrum reduce

Draft of code to spectrum reduction via intgration
might it make sense to print out the `y` values as well as the `x` values (or is this the `x` indices?)