Band Reject Filterband_reject_filterfrom gnuradio import grfrom gnuradio.gr import firdesgr.$(type)(#if str($type).startswith('interp') then $interp else $decim#, firdes.band_reject(
$gain, $samp_rate, $low_cutoff_freq, $high_cutoff_freq, $width, $win, $beta))set_taps(firdes.band_reject($gain, $samp_rate, $low_cutoff_freq, $high_cutoff_freq, $width, $win, $beta))FIR TypetypeenumDecimationdecim1int#if str($type).startswith('interp') then 'all' else 'none'#Interpolationinterp1int#if str($type).startswith('interp') then 'none' else 'all'#Gaingain1realSample Ratesamp_ratesamp_raterealLow Cutoff Freqlow_cutoff_freqrealHigh Cutoff Freqhigh_cutoff_freqrealTransition WidthwidthrealWindowwinfirdes.WIN_HAMMINGintBetabeta6.76realin$type.inputout$type.output
This filter is a convenience wrapper for an fir filter and a firdes taps generating function.
Sample rate, cutoff frequency, and transition width are in Hertz.
The beta paramater only applies to the Kaiser window.