Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/aosoft/unpriVtoi4.html
Дата изменения: Thu Nov 4 00:00:10 2010
Дата индексирования: Tue Oct 2 06:27:11 2012
Кодировка:

Поисковые слова: п п п п п п п п
Content-type: text/html Manpage of UNPRIVTOI4

UNPRIVTOI4

Section: Misc. Reference Manual Pages (1L)
Updated: 2 April 1991
Index Return to Main Contents
 

NAME

unpriVtoi4 - filter to unpack ri data to int*4 (ao)  

SYNOPSIS

unpriVtoi4 [ -b bits ] [ -i numInputFifos ] [ -f fifoToOutput ] [ -d dataFormat ]  

DESCRIPTION

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.....  

OPTIONS

-b
bits The number of bits the data has been packed to. It can be 1,2,4,8, or 12. The default is 12 bits.
-d
digitizer Use only one of the two digitizers. The value can be i for the I digitizer or q for the Q digitizer.
-i
numFifos 1 or 2 to specify the number of channels in the input data. The default is 1 fifo.
-f
fifoToOutput If the input data has two channels then this specifies which of the two to output (1 or 2). The default is channel 1.
 

EXAMPLES

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.

dd if=/dev/nrst12 bs=64k|stripVme -h|unpriVtoi4 -b 4 > 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....

stripVme -h < input.dat|unpriVtoi4 -b 2 -d i > junk.out

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.

dd if=/dev/nrst12 bs=64k|stripVme -h|unpriVtoi4 -b 8 -i 2 -f 1 > junk.out
 

FILES

~phil/util/filters/unpriVtoi4.c location of source code
 

SEE ALSO

stripVme(1L)  

BUGS

You must tell the program the correct bit packing, number of channels, etc.. If not, you get basura.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
FILES
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 21:00:10 GMT, November 03, 2010