[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-discuss
Subject: Re: [Discuss-gnuradio] Converting to array of doubles
From: Brian Cain <brian.cain () gmail ! com>
Date: 2005-07-28 16:38:03
Message-ID: 17e3a31c050728093875a95cbc () mail ! gmail ! com
[Download RAW message or body]
On 7/27/05, bditri@umich.edu <bditri@umich.edu> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic