Principal component spectral analysis