operations to get spectral data in different forms