discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Converting to array of doubles


From: Brian Cain
Subject: Re: [Discuss-gnuradio] Converting to array of doubles
Date: Thu, 28 Jul 2005 11:38:03 -0500

On 7/27/05, address@hidden <address@hidden> wrote:
> Hello,
> 
> I'm using the attached code to write NTSC files from our USRP.  I wanted to
> convert the files to an array of doubles in Python so that I can process it 
> out
> of the flowgraph, but can't read the file right.  f.readlines() gives me lines
> of text and i've tried struct.unpack with.  I know there must be a way to do
> this but have had no luck finding it online.  Any help would be appreciated.

http://pleac.sourceforge.net/pleac_python/filecontents.html#AEN475 has
an example of struct.unpack() usage.  Does this help?
-- 
-Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]