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. The O₂ B feature is explicitly telluric and remains fixed in the observer frame; stellar features shift. Real pipelines combine many pixels or lines against a template rather than reading one painted stripe.
Astrophysical applications
Radial-velocity spectroscopy is one of two main methods for detecting exoplanets. A planet gravitationally tugs its host star; an edge-on Earth–Sun analogue produces a stellar semi-amplitude of about 9 cm s⁻¹. Detecting such a signal also requires modelling stellar activity, barycentric motion, tellurics, wavelength calibration, and sampling—not merely resolving a single line displacement.
Na D lines — why they matter
The displayed Na I D₂/D₁ air wavelengths, 588.995 and 589.592 nm, are an illustrative doublet anchored to the NIST Atomic Spectra Database. Line positions alone are not an RV uncertainty model: precision depends on the full spectrum's gradients, photon counts, line-spread function, wavelength solution, and stellar variability.