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_d1  (  f ,  v ,  alpha ,  return_frame='atom'  )[source]

The first derivative of the Doppler-shifted frequency doppler

$$ \frac{\partial f^\prime}{\partial v} = a\frac{f^\prime}{c}\gamma^3(v)\left[\frac{v}{c} - \cos(\alpha)\right],\quad a = \begin{cases}f / f^\prime, & \text{atom}\\ -f^\prime / f, & \text{lab}\end{cases}. $$
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:
df_dvndarray

The first derivative $\partial f^\prime / \partial v$ of the Doppler-shifted frequency $f^\prime$ with respect to v in either the rest frame of the atom or the laboratory frame (f s/m).

Raises:
ValueError

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