rest_to_vel#

madcubapy.utils.rest_to_vel(rest_freq, radial_velocity, doppler_rest, doppler_convention='radio')[source]#

Convert rest frequency to velocity.

Parameters:
rest_freqQuantity

Observed frequency.

radial_velocityQuantity

Radial velocity of the source relative to the observer.

doppler_restQuantity

Rest frequency of the line.

doppler_convention{“radio”, “relativistic”}, default: “radio”

The Doppler convention to use.

Returns:
velQuantity

Velocity.