GAMMA Land Application Tools (LAT): Reference Manual


ave_cpx

ANSI-C program: ave_cpx.c

NAME
ave_cpx -   Calculate average of input 2D data files in fcomplex format

SYNOPSIS
ave_cpx <cpx_list> <width> <ave> [start] [nlines] [zflag]

cpx_list (input) text file with names of co-registered images in column 1 (fcomplex)
<width> number of samples/line
<ave> (output) average of input images (fcomplex)
[start] starting line (default : 1)
[nlines]
number of lines to process (enter - for default: entire file)
[zero_flag]
zero flag:
  0: interpret 0.0 as missing data value (default)
  1: interpret 0.0 as valid data

EXAMPLE
ave_cpx cpx_list ave_cpx.out 1750 1

average complex  images in fcomplex format listed in the cpx_list file  Each of these files has a width of 1750 samples

DESCRIPTION
ave_cpx
is used to average a stack of 2D data files in fcomplex format (pairs of 32-bit floating point numbers). A subset of the input image can be specified by the start and nlines parameters. Finally, input data values that are 0.0 can either be interpreted as missing data or as a valid value using the zero_flag parameter. If any data in the input stack missing (0.0 valiue), the output pixel is set to 0.0 by default. If  zero_flag is set to 1, then 0.0 is interpreted as a valid data value.

The files (including path) are listed in the cpx_tab text file, one line entry for each file.  Lines containing a # in column 1 and blank lines are ignored. 

SEE ALSO
ave_image


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2006.
UW, CW, TS, last change 11-Apr-2006