qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. doppler  (  f ,  v ,  alpha ,  return_frame='atom'  )[source]

The Doppler-shifted frequency

$$ f^\prime = \begin{cases}f\gamma(v)\left[1 - \frac{v}{c}\cos(\alpha)\right], & \text{atom}\\ \frac{f}{\gamma(v)\left[1 - \frac{v}{c}\cos(\alpha)\right]}, & \text{lab}\end{cases}, $$

where $\alpha = 0$ corresponds to collinear alignment of the velocity and the light.

Parameters:
farray_like

The frequency $f$ of light (arb. units).

varray_like

The velocity $v$ of a body (m/s).

alphaarray_like

The angle $\alpha$ between the velocity- and the light-vector in the laboratory frame (rad).

return_framestr

The coordinate system for which the frequency is returned. Can be either "atom" or "lab".

Returns:
f_dopplerndarray

The Doppler-shifted frequency $f^\prime$ in either the rest frame of the atom or the laboratory frame (unit of f).

Raises:
ValueError

return_frame must be either "atom" or "lab".