summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/gr_plot_psd_c.py
diff options
context:
space:
mode:
authortrondeau2008-10-25 22:11:31 +0000
committertrondeau2008-10-25 22:11:31 +0000
commit57b846ed17b0084563988d7817302f4f5b0d8e3c (patch)
tree5ae89826f468b476bfd481c7ec2bbd28c363a1db /gr-utils/src/python/gr_plot_psd_c.py
parent0c743f55580109e868610f534b5b9310988f8a23 (diff)
downloadgnuradio-57b846ed17b0084563988d7817302f4f5b0d8e3c.tar.gz
gnuradio-57b846ed17b0084563988d7817302f4f5b0d8e3c.tar.bz2
gnuradio-57b846ed17b0084563988d7817302f4f5b0d8e3c.zip
added real PSD plotting tool with optional spectrogram plot.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9846 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src/python/gr_plot_psd_c.py')
-rwxr-xr-xgr-utils/src/python/gr_plot_psd_c.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/gr-utils/src/python/gr_plot_psd_c.py b/gr-utils/src/python/gr_plot_psd_c.py
new file mode 100755
index 000000000..1edc04c2b
--- /dev/null
+++ b/gr-utils/src/python/gr_plot_psd_c.py
@@ -0,0 +1,47 @@
+#!/usr/bin/env python
+#
+# Copyright 2008 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., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+#
+
+from optparse import OptionParser
+import gr_plot_psd
+
+# This is a wrapper program for gr_plot_psd specifically for complex data
+
+def main():
+ parser = gr_plot_psd.setup_options()
+ parser.remove_option("--data-type")
+
+ (options, args) = parser.parse_args ()
+ if len(args) != 1:
+ parser.print_help()
+ raise SystemExit, 1
+ filename = args[0]
+
+ dc = gr_plot_psd.gr_plot_psd("complex64", filename, options)
+
+if __name__ == "__main__":
+ try:
+ main()
+ except KeyboardInterrupt:
+ pass
+
+
+