libgs.hardware.RadioBase.get_spectrum

RadioBase.get_spectrum(old=False)[source]

Return the latest spectrum from the radio as well as an associated frequency vecgor

>>> fvec, famp = get_spectrum()
Parameters:old (bool) – If False, only return a spectrum if it has changed.
Returns:Frequency vector famp (list(float)) : Associated amplitudes (in dBm)
Return type:fvec (list(float))