def cmdLineParse():
parser = argparse.ArgumentParser(description='Download GPS data over SAR coverage.',\
formatter_class=argparse.RawTextHelpFormatter,\
epilog=INTRODUCTION+'\n'+EXAMPLE)
parser.add_argument('-p', dest = 'projectName',help='Project name of the processing datasets.')
parser.add_argument('-t', dest='SLCpar', help='One SLC par file of the resaerch region.')
parser.add_argument('-s', dest='Dbeg', help='Beginning date of available GPS data.')
parser.add_argument('-e', dest='Dend', help='Ending date of available GPS data.')
inps = parser.parse_args()
if not inps.projectName and not inps.SLCpar:
parser.print_usage()
sys.exit(os.path.basename(sys.argv[0])+': error: projectName and SLCpar File, at least one is needed.')
return inps
return inps
################################################################################################
评论列表
文章目录