Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.naic.edu/~phil/aosoft/unpriV.html
Дата изменения: Fri Sep 23 00:06:20 2011
Дата индексирования: Tue Oct 2 05:03:09 2012
Кодировка:

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

unpriV

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

NAME

unpriV - filter to unpack ri data  (ao)  

SYNOPSIS

unpriV [ -b bits ] [ -i numInputFifos ] [ -f fifoToOutput ] [ -d dataFormat ] [-t type] 

DESCRIPTION

unpriV is a program to unpack a single channel of RADAR INTERFACE (RI) binary data to the specified output format type. 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 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).

The -t type option specifies the data type for the output (the default is integer*4).

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.
-d     datatype   for output. datatype can be:  i4,i2,f4,f8.
 

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|unpriV -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. make the output data real*4. The output order will be: I1,I2,I3,I4....


stripVme -h < input.dat|unpriV -b 2 -d i -t f4 > 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|unpriV -b 8 -i 2 -f 1 > junk.out
 

FILES

 

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