diff options
author | eb | 2007-01-13 05:37:03 +0000 |
---|---|---|
committer | eb | 2007-01-13 05:37:03 +0000 |
commit | 87afa6ff1bb26acf3cd8a2c37a11fd44e655d314 (patch) | |
tree | 98262a4234efe859de1e0b24f94de9f050d52416 /gr-radar/src/python/complex_to_short.py | |
parent | cbe1628f2eb1a1a3c8b0b96a3b1334a039074def (diff) | |
download | gnuradio-87afa6ff1bb26acf3cd8a2c37a11fd44e655d314.tar.gz gnuradio-87afa6ff1bb26acf3cd8a2c37a11fd44e655d314.tar.bz2 gnuradio-87afa6ff1bb26acf3cd8a2c37a11fd44e655d314.zip |
Moved gr-radar out of trunk for now. Needs portability cleanup.
Not to mention some functionality...
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4258 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radar/src/python/complex_to_short.py')
-rwxr-xr-x | gr-radar/src/python/complex_to_short.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gr-radar/src/python/complex_to_short.py b/gr-radar/src/python/complex_to_short.py deleted file mode 100755 index 9c229d857..000000000 --- a/gr-radar/src/python/complex_to_short.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -from gnuradio import gr, gru, eng_notation, optfir -from gnuradio.eng_option import eng_option -from optparse import OptionParser -import os.path -import re - -class my_graph(gr.flow_graph): - def __init__(self): - gr.flow_graph.__init__(self) - - usage="%prog: [options] input_file output_file" - parser = OptionParser (option_class=eng_option, usage=usage) - (options, args) = parser.parse_args() - if len(args) != 2: - parser.print_help() - raise SystemExit, 1 - - input_filename = args[0] - output_filename = args[1] - - inf = gr.file_source(gr.sizeof_gr_complex, input_filename) - c2s = gr.complex_to_interleaved_short() - outf = gr.file_sink(gr.sizeof_short, output_filename) - self.connect(inf, c2s, outf) - - -if __name__ == '__main__': - try: - my_graph().run() - except KeyboardInterrupt: - pass |