BGlib.gmode.proc.fft.get_noise_floor

BGlib.gmode.proc.fft.get_noise_floor(fft_data, tolerance)[source]

Calculate the noise floor from the FFT data. Algorithm originally written by Mahmut Okatan Baris

Parameters:
  • fft_data (1D or 2D complex numpy array) – Signal in frequency space (ie - after FFT shifting) arranged as (channel or repetition, signal)

  • tolerance (unsigned float) – Tolerance to noise. A smaller value gets rid of more noise.

Returns:

noise_floor – One value per channel / repetition

Return type:

1D array-like