______________________________________________________________________________

			     AP

      AVERAGE_SUBFRAMES is a module which averages subframes in one map and 
 writes the result to a new file of size equal to that of the subframe.  
 This operation is useful for combining several power spectra when they are
 formatted as subframes in a map, such as in the UM speckle format.
 The subframe size is input by the user with the default size being
 65X65 pixels in a 325X520 file.  This is the size that results from
 computing the symmetric power spectrum of 32 64X64 subframes in a
 320X512 map.  For a nonsymmetric power spectrum, the subframes are 33X33
 pixels in a 165X264 map.  

 ______________________________________________________________________________

 Enter an option:                               7-NOV-2000 12:04:40.20
 OPTION=AP
 AVERAGE_SUBFRAME, Version 2
 Open the input file
 Enter the filename:  (<CR> for default)
 FILE_IN=POWER5
 There is one map in the file
 Reading from the file
  520 rows of  325 pixels in R4 format
 Enter the width and height of the subframe:  (default = 65 65)
 WIDTH_AND_HEIGHT=
         65
         65
 The number of complete subframes in the X direction is   5
 The number of complete subframes in the X direction is   8
 Enter the numbers of the subframes to be added;  number 1 is at the
 upper left:  (default = 1:32), maximum = 100
 SUBFRAMES=			!  We took the default here
 Do you want to exclude data from the sums based on the average
 value of a subframe?  (default = N)
 EXCLUDE_BY_SUBFRAME=
 F
 Do you want to exclude data from the sums based on an individual
 pixel's values?  (default = N)
 EXCLUDE_BY_PIXEL=
 F
 Open the output file
 NMAPS=    1 NPLNS=    1 NROWS=    65 NELS=    65
 Enter the filename:  (<CR> for default)
 FILE_OUT=POWER_SUM
 Creating new file
 There were  32 subframes successfully added.
 The subframes added were:
     1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
    16   17   18   19   20   21   22   23   24   25   26   27   28   29   30
    31   32
 Do you wish to keep the weighting function?  (default = Y)
 KEEP_WEIGHT=N

 Enter an option:                               7-NOV-2000 12:05:30.58
 OPTION=
 ______________________________________________________________________________