aggregate_spectra function

Aggregates spectral and data information