"""Main call for MVCM.""" import argparse from pkg_resources import get_distribution # type: ignore from mvcm.main_tests_only import main if __name__ == "__main__": _VERSION = get_distribution("mvcm").version parser = argparse.ArgumentParser(prog="MVCM", description="") parser.add_argument( "--data", help=( "file name and path containing satellite data and ancillary " "data interpolated to sensor resolution" ), ) parser.add_argument( "--pixel-type", help="file name and path containing all info on pixel and scene type" ) parser.add_argument("-t", "--threshold", help="thresholds file name") parser.add_argument( "-v", "--verbose", action="count", default=1, help="print verbose information" ) parser.add_argument("-o", "--out", help="output file name") parser.add_argument("-d", "--debug", action="store_true", help="activate debug mode") parser.add_argument("-H", "--hires", action="store_true", help="run using hires data") parser.add_argument( "-V", "--version", action="version", version=_VERSION, help="print version and exit", ) args = parser.parse_args() threshold_file = args.threshold out_file = args.out verbose = args.verbose or False debug = args.debug or False use_hires = args.hires or False main( threshold_file=threshold_file, input_data=args.data, pixel_data=args.pixel_type, out_file=out_file, verbose=verbose, debug=debug, use_hires=use_hires, )