Reading complex numbers from file dump

Hi,

I have created a file dump with samples from USRP output. Samples are
in
gr_complex format. Now I want to read data from the file to compute FFT.
How can I read complex numbers in python from this binary file?

On Mon, Jul 29, 2013 at 9:38 AM, Manu T S [email protected] wrote:

Hi,

I have created a file dump with samples from USRP output. Samples are in
gr_complex format. Now I want to read data from the file to compute FFT. How
can I read complex numbers in python from this binary file?


Manu T S

There are examples of this in gr-utils/python/utils . One of the
scripts even plots the fft for you.

-Nathan

On Mon, Jul 29, 2013 at 9:38 AM, Manu T S [email protected] wrote:

Hi,

I have created a file dump with samples from USRP output. Samples are in
gr_complex format. Now I want to read data from the file to compute FFT. How
can I read complex numbers in python from this binary file?


Manu T S

See here:
http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#What-is-the-file-format-of-a-gr_file_sink

There are also a handful of plotting tools in gr-qtgui/apps that read
from files using the scipy.fromfile function mentioned in the above
FAQ. You can use these for references.

Tom