Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-19 Thread Nikos Balkanas
IQ files are binary files with the raw stream and no headers. Depending on sample resolution, these are complex pairs of either floats or bytes. Conversion of bytes to floats is given by the code: float f; byte b; f = (b - 127)/128; HTH Nikos On Wed, Mar 16, 2016 at 4:04 PM, Henry Barton

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-19 Thread Ralph A. Schmid, dk5ras
This works! Thanks a lot! Ralph. >-Original Message- >From: Marcus Müller [mailto:marcus.muel...@ettus.com] >Sent: Wednesday, March 16, 2016 10:24 >To: Ralph A. Schmid, dk5ras; discuss-gnuradio@gnu.org >Subject: Re: [Discuss-gnuradio] lack of understanding the different formats to

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-19 Thread Henry Barton
This sounds interesting; I too have been wondering how IQ files worked. I thought it must be alternating I bytes and Q bytes, or with >8-bit radios, I words and Q words. But maybe the packed byte system is right, since I can feed IQ recordings in WAV format directly into GNUradio without

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-19 Thread Marcus Müller
Exactly that's the case; the "normal" complex type of GNU Radio is really just 32bit floats IQIQIQIQ... ie. a single complex is nothing but two consecutive floating point numbers. WAV files come in all types, encodings and storage quantizations. Typically, the header/tail are much shorter than

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-16 Thread Marcus Müller
Ok, let "I" and "Q" be single bits each, so each byte would then be IQIQIQIQ if I had to take a guess. You can get get back something that GR commonly deals with by doing packed to unpacked (type=B, bits per chunk = 1, endianness=your machine) -> IChar to Complex Best regards, Marcus On

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-16 Thread Ralph A. Schmid, dk5ras
OK, I will give this a try :) I hoped that there would be some overview, explaining the different interconnect formats when connecting gnuradio blocks... Tnx! Ralph. From: Jacob Gilbert [mailto:mrjacobagilb...@gmail.com] Sent: Friday, March 11, 2016 3:50 PM To: Ralph A. Schmid,

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-16 Thread Ralph A. Schmid, dk5ras
Each byte seems to contain 4 1 bit I/Q samples. This is the text from the readme: "The output file size can be reduced by using "-b 1" option to store four 1-bit I/Q samples into a single byte." Ralph. > -Original Message- > From: discuss-gnuradio-bounces+ralph=schmid@gnu.org >

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-11 Thread Jacob Gilbert
Ralph, If I understand this, each 8-bit byte of data contains four two-bit IQ samples, in which case the "Unpack K Bits" block is likely what you are looking for. It will treat each bit in a byte (from Byte File Source in this case) as an individual item, which can then be type-converted and

Re: [Discuss-gnuradio] lack of understanding the different formats to store samples

2016-03-11 Thread Marcus Müller
In what format are your 1bit samples? I'd assume they are just the fact whether a byte is 0x00 or 0x01; in that case, just use unpacked to packed. On 03/11/2016 10:24 AM, Ralph A. Schmid, dk5ras wrote: > Hi, > > Being an RF guy I must admit that I am somehow lost in the different ways > how