Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""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,
)