Physical mechanism
A stellar atmosphere radiates photons at precise rest wavelengths governed by atomic energy levels. When the star moves radially with velocity vr, the wavelengths of received photons are shifted by Δλ = λ₀ vr/c. This is the first-order Doppler effect. A receding source (positive vr) stretches photon wavelengths — redshift. An approaching source compresses them — blueshift.
Spectral lines shown
The visualiser uses the sodium D lines (Na I doublet at 588.995 and 589.592 nm) as the primary indicator, alongside representative Fe I, Mg I, Hα, and Ca II H&K lines. In a real spectrograph, hundreds of such lines are cross-correlated simultaneously to build a high-precision velocity measurement.
Astrophysical applications
Radial-velocity spectroscopy is one of two main methods for detecting exoplanets. A planet gravitationally tugs its host star; the stellar reflex velocity for an Earth-mass planet in a 1-AU orbit is only ~9 cm s⁻¹. Detecting that requires σRV < 10 cm s⁻¹, motivating ultra-stabilised spectrographs such as HARPS, ESPRESSO, and EXOhSPEC.
Na D lines — why they matter
Sodium D lines are strong, narrow, and appear in virtually every late-type stellar spectrum. Their sharpness (small intrinsic width) makes centroid measurement precise. In the solar spectrum they are among the most prominent absorption features, detected in stellar atmospheres, interstellar medium, and exoplanet atmospheres via transmission spectroscopy.