convert_spectral_resolution#

madcubapy.utils.convert_spectral_resolution(spectral_res, rest_freq)[source]#

Convert a channel width between velocity and frequency.

Parameters:
spectral_resQuantity

Width of channel in velocity or frequency units.

rest_freqQuantity

Rest frequency of the spectrum.

Returns:
Quantity

Spectral rest converted to the other units.