                                 EX884


Program Description:

  Allows you to read an input multi-polarization ADTS file, extract
  a user-specified polarization sub-image (HH, HV, VH, or VV),
  and write it back out along with the appropriate headers as a
  single-polarization file in 8-8-4 format.

Program Usage:

  ex884 [<switches>]

        Switches:

           -i <ifile> --> [Input ADTS 4-polarization file]
           -o <ofile> --> [Output 8-8-4 sub-image file]
           -p <popt>  --> [Polarization: 0=HH, 1=HV, 2=VH, 3=VV]


Description of Arguments:

  -i <ifile> : Standard 4-polarization ADTS input file
  -o <ofile> : Single-polarization 8-8-4 image output file
  -p <popt>  : Polarization to extract and write out 
               (0=HH, 1=HV, 2=VH, 3=VV) 


Files Necessary to Compile:
 
   * Include: adts.h
   * Source : ex884.c, getimgloc.c read_switch.c
   * Make   : ex884.mk (optional)


Compiling & Linking Code:

   a) gcc -c getimgloc.c [enter]    <-- Creates getimgloc.o
      gcc -c read_switch.c [enter]  <-- Creates read_switch.o

      gcc -o ex884 ex884.c getimgloc.o read_switch.o [enter]

      NOTE: You can use other C compilers. Edit .mk file as necessary.

   b) Using the Makefile [ex884.mk]:

      Perform the following steps:

      % make -f ex884.mk         [Creates executable:  ex884]
      % make -f ex884.mk clean   [Deletes object code       ]
      % make -f ex884.mk install [Moves ex884 to INSTALLDIR ]
 
