freq_to_chan

MonitorControl.BackEnds.freq_to_chan(frequency, bandwidth, n_chans)

Returns the channel number where a given frequency is to be found.

:param frequency : frequency of channel in sane units as bandwidth. :type frequency : float

:param bandwidth : upper limit of spectrometer passband :type bandwidth : float

:param n_chans : number of channels in the spectrometer :type n_chans : int

Returns

channel number (int)