Low Pass Filterlow_pass_filterfrom gnuradio import grfrom gnuradio.gr import firdesgr.$(type)(#if str($type).startswith('interp') then $interp else $decim#, firdes.low_pass(
$gain, $samp_rate, $cutoff_freq, $width, $win, $beta))set_taps(firdes.low_pass($gain, $samp_rate, $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_raterealCutoff Freqcutoff_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.