NAME:
  mmaspli
 PURPOSE:
  Splice multi-amp CCD images back together.
 DESCRIPTION:
  Originally written for the WIYN mini-mosiac imager, it now is also
    used for Mosaic imager data (NOAO).

 CATEGORY:
  CCD data processing

 CALLING SEQUENCE:
  mmaspli,filelist,outdir

 INPUTS:
  filelist - List of flies to process.
  outdir  - The directory to write the calibrated files to.  Don't make
              this the same as the input directory.

 OPTIONAL INPUT PARAMETERS:

 KEYWORD INPUT PARAMETERS:
  LEFT - vector or scalar of extension number of the left side of the CCD
         default=[1,3,5,7]
  RIGHT - vector = extention number of the right side of the CCD
          scalar = offset to add to left to get the right side
          (default=1)

   SKIP - Flag, if set will direct the program to skip any output files
             that are already present.

 OUTPUTS:
   The calibrated images are written to outdir.  Don't make this the same
   as the current directory!

 KEYWORD OUTPUT PARAMETERS:

 COMMON BLOCKS:

 SIDE EFFECTS:

 RESTRICTIONS:

 PROCEDURE:

 MODIFICATION HISTORY:
  2000/02/28, Written by Marc W. Buie, Lowell Observatory
  2001/08/19, MWB, modified to work on any even number of groups.
  2002/03/14, MWB, added special case for NEXTEND from 2 down to 1.
  2013/03/13, MWB, added LEFT and RIGHT keywords