convert_spectrum_2d1d function

Converts a 2D spectrum time series to a 1D spectrum