NAME:
     maxloc
 PURPOSE: (one line)
     Find the column-wise, row-wise, or point location of the image maximum.
 DESCRIPTION:
 CATEGORY:
  CCD data processing
 CALLING SEQUENCE:
     maxloc,array,xpos,ypos,start,stop
 INPUTS:
     array - Input array to be scanned.
 OPTIONAL INPUT PARAMETERS:
     start - starting location in array to begin scanning (def=0)
     stop  - ending location in array for scan (def=end of array)
 KEYWORD INPUT PARAMETERS:
     X     - FLAG, find maxima as a function of x in the image.
     Y     - FLAG, find maxima as a function of y in the image.
     POINT - FLAG, find location of absolute maximum in the image (default).
 OUTPUTS:
     xpos  - x index for maximum location.
     ypos  - y index for maximum location.
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
     93/04/27 - Written by Marc W. Buie, Lowell Observatory
     95/03/24, MWB, added start and stop optional inputs.
     99/07/12, MWB, fixed bug with start