summaryrefslogtreecommitdiff
path: root/gr-radio-astronomy/src
diff options
context:
space:
mode:
authormleech2009-01-21 19:08:54 +0000
committermleech2009-01-21 19:08:54 +0000
commit29222e3f472dd690d0caf83f51d96c81d56e7bc2 (patch)
tree61f3827535ec111ccaf4f281c4d2d66cb3a88393 /gr-radio-astronomy/src
parentf1ee6a7c8ae0a57a119d167b6e767138f6c487d1 (diff)
downloadgnuradio-29222e3f472dd690d0caf83f51d96c81d56e7bc2.tar.gz
gnuradio-29222e3f472dd690d0caf83f51d96c81d56e7bc2.tar.bz2
gnuradio-29222e3f472dd690d0caf83f51d96c81d56e7bc2.zip
Added --notch_taps to allow user to specify number of taps in notch filter
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10278 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src')
-rwxr-xr-xgr-radio-astronomy/src/python/usrp_ra_receiver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_ra_receiver.py b/gr-radio-astronomy/src/python/usrp_ra_receiver.py
index d9d9118d0..cf886a41a 100755
--- a/gr-radio-astronomy/src/python/usrp_ra_receiver.py
+++ b/gr-radio-astronomy/src/python/usrp_ra_receiver.py
@@ -82,6 +82,7 @@ class app_flow_graph(stdgui2.std_top_block):
parser.add_option("-D", "--switch_mode", action="store_true", default=False, help="Dicke Switching mode")
parser.add_option("-P", "--reference_divisor", type="eng_float", default=1.0, help="Reference Divisor")
parser.add_option("-U", "--ref_fifo", default="@@@@")
+ parser.add_option("-h", "--notch_taps", type="int", default=64, help="Number of notch taps")
parser.add_option("-n", "--notches", action="store_true",
default=False, help="Notch frequencies after all other args")
(options, args) = parser.parse_args()
@@ -95,7 +96,7 @@ class app_flow_graph(stdgui2.std_top_block):
self.reference_divisor = options.reference_divisor
self.ref_fifo = options.ref_fifo
- self.NOTCH_TAPS = 128
+ self.NOTCH_TAPS = options.notch_taps
self.notches = Numeric.zeros(self.NOTCH_TAPS,Numeric.Float64)
# Get notch locations
j = 0