Esempio n. 1
0
def main(args):
    """
    Main function - launches the program
    """
    if args:
        if args.subs == 'process':
            if args.dir:
                p = Process(args.path, args.dir)
            else:
                p = Process(args.path)
            if args.rgb:
                p.make_rgb()
                p.cleanup()
            elif args.ndvi:
                p.make_ndvi()
                p.cleanup()
            else:
                p.full()