NAME:
  tmplinfo
 PURPOSE:   (one line only)
  Generate information about a template image based on an image header
 DESCRIPTION:
 CATEGORY:
  CCD data processing
 CALLING SEQUENCE:
  tmplfn,input,info
 INPUTS:
  input - There are two options for input.
           1 - a scalar string that is the name of the image file.  This
                  should include the path if the file cannot be found in
                  the current directory.
           2 - a string array with the FITS header from an image file.
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
  KEYLIST  - Name of a file containing a correspondence list. This list
                associates a set of standard names with the actual keyword
                names found in a FITS file header. If this keyword is
                omitted, a default list is used, as if a file with the
                following contents had been supplied:
                   AIRMASS   K  AIRMASS
                   DATE      K  DATE-OBS
                   DATETMPL  T  DD-MM-YYYY
                   EXPDELTA  V  0.0
                   EXPTIME   K  EXPTIME
                   FILTER    K  FILTERS
                   FILENAME  K  CCDFNAME
                   OBJECT    K  OBJECT
                   UT        K  UT 
                   RA        K  RA
                   DEC       K  DEC
                The middle column is a flag. It may be K, for Keyword,
                T, for Template, or V, for Value. If it is V, the contents
                of the third field on that line should make sense for the
                name in the first field.

 OUTPUTS:
   info - Anonymous structure with information about a template image
             if constructed from this data image.  This information is
             intended to help with populating the refim and template
             database tables.
   error - Flag, if set indicates there was an error building the desired
             information structure.  In this case the info structure
             is ill defined.  If error is not set then everything is fine.
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
  The image header must contain the astrometric solution in a form
    compatible with astinfo.pro
 PROCEDURE:
 MODIFICATION HISTORY:
  2010/08/06, Written by Marc W. Buie, Southwest Research Institute