To derive the equation for the information one can get from a spectrum.
Doppler shift:
Assuming that the Doppler shift is small compared to absorption line width, the observable intensity change at a given pixel:
Doppler shift restated:
Add over available spectrum. Each pixel contributes according to the optimal weight: