#!/usr/bin/env python3

import sys
from pixcorrect.skyplot import pcaReport
from argparse import ArgumentParser

if __name__=='__main__':
    parser = ArgumentParser(description=
      "Produce a PDF file of diagnostic plots for a sky_pca output")
    parser.add_argument('pcafile',
                        help='File containing sky_pca output')
    parser.add_argument('pdffile',
                        help='Name for output pdf file')
    args = parser.parse_args()
    pcaReport(args.pcafile, args.pdffile)
    sys.exit(0)

