Spectrum reduce

Draft of code to spectrum reduction via intgration
does `ROI` need to be `roi` for PEP8 reasons?