return arrays from spectrum and timeseries functions