11 if __name__ ==
"__main__":
16 parser = argparse.ArgumentParser(prog=
"modis_atteph")
17 parser.add_argument(
'--version', action=
'version', version=
'%(prog)s ' + version)
18 parser.add_argument(
"geofile", nargs=
'?',
19 help=
"Input GEO file", metavar=
"GEOFILE")
20 parser.add_argument(
"--threshold", dest=
'geothresh', default=95, type=float,
21 help=
"percentage of geo-populated pixels required to pass geocheck validation test", metavar=
"THRESHOLD")
22 parser.add_argument(
"-v",
"--verbose", action=
"store_true",
23 default=
False, help=
"print status messages")
25 args = parser.parse_args()
27 if not os.path.exists(args.geofile):
28 print (
"*** ERROR: Provided geolocation file does not exist.")
29 print (
"*** Validation test failed for geolocation file:", geofile)
36 m = modisGEO.modis_geo(filename=args.geofile, geofile=args.geofile,
37 geothresh=args.geothresh,