5 from os.path
import dirname, realpath
6 sys.path.append(dirname(dirname(realpath(__file__))))
15 parser = argparse.ArgumentParser()
16 parser.add_argument(
"-d",
"--database", help=
"Database filename", required =
True)
17 parser.add_argument(
"-m",
"--max-records", help=
"maximum number of records to process", default=MAX_RECORDS, type=int )
18 parser.add_argument(
"-s",
"--system-range", help=
"Range of systems to display",type=RangeType(int),default=Range.universal());
19 parser.add_argument(
"-t",
"--time-range", help=
"Range of time to display", type=RangeType(float), default=Range.universal())
20 parser.add_argument(
"-b",
"--body-range", help=
"Range of bodies to display", type=RangeType(int), default=Range.universal())
21 parser.add_argument(
"-e",
"--evt-id", help=
"The type of event to display (provide codes)",type=RangeType(int), default=Range.universal());
22 parser.add_argument(
"-k",
"--keplerian", help=
"Keplerian output. The argument defines the type of coordinate system used", choices = Keplerian.choices)
23 parser.add_argument(
"--initial-conditions", action=
"store_true",default=
False)
24 parser.add_argument(
"--final-conditions", action=
"store_true", default=
False)
26 args = parser.parse_args()
31 if __name__ ==
'__main__':