Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.naic.edu/~phil/aosoft/unpriVtoi4.html
Дата изменения: Thu Nov 4 00:00:10 2010 Дата индексирования: Tue Oct 2 06:27:11 2012 Кодировка: Поисковые слова: ngc 281 |
unpriVtoi4 is a program to unpack a single channel of RADAR INTERFACE (RI) binary data to ieee integer*4 format. The input is taken from the standard input (pipe or disc file). The header portion of each record should have been removed (see stripVme(1L)). The output data is integer*4 format and is written to standard out.
The radar interface has 2 channels of 2 digitizers each. The digitizers can pack the data to 1,2,4,8, or 12 bits. You specify the number of bits the data has been packed to with the -b option. The -i option specifies how many channels were recorded in the input file (default 1). If two channels were recorded than the -f option specifies which channel to output (1 or 2). A single digitizer of a channel can be output using -d i or q (i and q are the two digitizers in a single channel).
Let In be the n'th sample from the I digitizer and Qn be the n'th sample from the Q digitizer. For 4 bit packing the input would look like: Q4Q3Q2Q1I4I3I2I1 and the output would be: I1,Q1,I2,Q2,I3,Q3,I4,Q4.....
Unpack 1 file from a data tape. Assume it is 4 bit packed data and has one set of I,Q samplers. The output order will be : I1,Q1,I2,Q2,I3,Q3.... Output the data to junk.out.
Unpack 1 file from disc. Assume it is two bit data with one set of I,Q samplers. Only keep the I digitizer data. Write the data to junk.out. The output order will be: I1,I2,I3,I4....
Unpack 1 file from tape. Assume it is 8 bit data and has 2 channels of I,Q digtizers (QA1,IA1,QB1,IB1). Keep channel A. The input order is QA2QA1IA2IA1,QB2QB1IB2IB1,.... The output order will be: IA1,QA1,IA2,QA2,... Write the output to junk.out.
~phil/util/filters/unpriVtoi4.c location of source code
stripVme(1L)
You must tell the program the correct bit packing, number of channels, etc.. If not, you get basura.
Content-type: text/html