summaryrefslogtreecommitdiff
path: root/gr-atsc/python/interp.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2013-06-03 16:54:24 -0700
committerBen Reynwar <ben@reynwar.net>2013-06-03 16:54:24 -0700
commitec2d40b8db3f078a8f8f7ab06dd1fcf07e907548 (patch)
tree1ac0a00dd2f3fa8e9a4d101fc7c442cfffae0f4e /gr-atsc/python/interp.py
parentbceb96b021bab0168e501e74ac38c7e31213b1a1 (diff)
uninstalled imports: Fixed gr-audio and gr-atsc.
Diffstat (limited to 'gr-atsc/python/interp.py')
-rwxr-xr-xgr-atsc/python/interp.py66
1 files changed, 0 insertions, 66 deletions
diff --git a/gr-atsc/python/interp.py b/gr-atsc/python/interp.py
deleted file mode 100755
index ee2d234892..0000000000
--- a/gr-atsc/python/interp.py
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/env /usr/bin/python
-#
-# Copyright 2004,2007 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-# This module starts the atsc processing chain taking the captured
-# off-air signal created with:
-#
-# uhd_rx_cfile.py --samp-rate=6.4e6
-# -f <center of tv signal channel freq>
-# -g <appropriate gain for best signal / noise>
-#
-# All this module does is multiply the sample rate by 3, from 6.4e6 to
-# 19.2e6 complex samples / sec, then lowpass filter with a cutoff of 3.2MHz
-# and a transition band width of .5MHz. Center of the tv channels is
-# then at 0 with edges at -3.2MHz and 3.2MHz.
-
-from gnuradio import gr
-from gnuradio import blocks
-import sys
-
-def graph(args):
-
- nargs = len(args)
- if nargs == 1:
- infile = args[0]
- else:
- sys.stderr.write('usage: interp.py input_file\n')
- sys.exit(1)
-
- tb = gr.top_block()
-
- src0 = blocks.file_source(gr.sizeof_gr_complex, infile)
-
- lp_coeffs = filter.firdes.low_pass(3, 19.2e6, 3.2e6, .5e6,
- filter.firdes.WIN_HAMMING )
- lp = filter.interp_fir_filter_ccf(1, lp_coeffs)
-
- file = blocks.file_sink(gr.sizeof_gr_complex, "/tmp/atsc_pipe_1")
-
- tb.connect(src0, lp, file)
-
- tb.start()
- raw_input('Head End: Press Enter to stop')
- tb.stop()
-
-if __name__ == '__main__':
- graph(sys.argv[1:])
-
-