|
From: | Garver, Paul W |
Subject: | Re: [Discuss-gnuradio] Loading 16-bit IQ pairs in GnuRadio Companion |
Date: | Thu, 1 Dec 2016 17:07:58 +0000 |
There are two different metadata types:
1) Inline
2) Detached
Here, you are using the detached headers. With detached, the raw samples are in a file, say myfile.sc16, and the metadata in myfile.sc16.hdr. See [1] for more information on GNURadio metadata.
So suppose you have myfile.sc16 as your raw sample file. Then you generate headers for it, since you didn’t record it with any. You also need to give gr_mkheader -l num_samps so it knows how long the file is. For sc16 you just do file_size_bytes/4
to get # of samples in a file.
# gr_mkheader -r 1.8e6 -t sc16 -f 408e6 myfile.sc16
This generates the file: myfile.sc16.hdr containing the file type, center frequency, sample rate, etc. This is simply my convention, but the metadata is “linked” to the raw samples by the filename
raw data: myfile.sc16, where sc16 specifies the file format.
metadata: myfile.sc16.hdr
Then, you can give this to gr_fileman to convert the type:
# gr_fileman myfile.sc16 myfile.fc32 -o fc32
gr_fileman looks for filename.hdr for the detached header info. So in this case, it files myfile.sc16.hdr, and should happily convert for you.
PWG
[1] http://gnuradio.org/doc/doxygen/page_metadata.html
|
[Prev in Thread] | Current Thread | [Next in Thread] |