def main(options, args):

    logger = log.get_logger(name="mosaic", options=options)

    img_mosaic = mosaic(logger, args, fov_deg=options.fov)

    if options.outfile:
        outfile = options.outfile
        io_fits.use('astropy')

        logger.info("Writing output to '%s'..." % (outfile))
        try:
            os.remove(outfile)
        except __HOLE__:
            pass

        img_mosaic.save_as_file(outfile)
dataset/ETHPy150Open ejeschke/ginga/ginga/util/mosaic.py/main