BGlib.gmode.proc.fft.BandPassFilter

class BGlib.gmode.proc.fft.BandPassFilter(signal_length, samp_rate, f_center, f_width, fir=False, fir_taps=1999)[source]

Bases: FrequencyFilter

Builds a bandpass filter

Parameters:
  • signal_length (unsigned int) – Points in the FFT. Assuming Signal in frequency space (ie - after FFT shifting)

  • samp_rate (unsigned integer) – Sampling rate

  • f_center (unsigned integer) – Center frequency for filter

  • f_width (unsigned integer) – Frequency width of the pass band

  • fir (bool, optional) – True uses a finite impulse response (FIR) response instead of a standard boxcar. FIR is causal

  • fir_taps (int) – Number of taps (length of filter) for finite impulse response filter

Returns:

bpf

Return type:

1D numpy array describing the bandpass filter

Methods

get_parms

is_compatible