@@ -0,0 +1,1454 @@
+#!/usr/bin/python%0A%0Aimport sys%0Asys.path.insert(0, %22/usr/local/opencv3/lib/python2.7/site-packages/%22)%0A%0Aimport argparse%0Aimport commands%0Aimport cv2%0Aimport fnmatch%0Aimport os.path%0A%0Asys.path.append('../lib')%0Aimport ATICorrelate%0Aimport Pose%0Aimport ProjectMgr%0A%0A# for all the images in the project image_dir, detect features using the%0A# specified method and parameters%0A%0Aparser = argparse.ArgumentParser(description='Set the aircraft poses from flight data.')%0Aparser.add_argument('--project', required=True, help='project directory')%0Aparser.add_argument('--flight', required=True, help='directory containing flight data')%0Aparser.add_argument('--shutter-latency', type=float, default=0.7, help='shutter latency from time of trigger to time of picture')%0A%0Aargs = parser.parse_args()%0A%0Aproj = ProjectMgr.ProjectMgr(args.project)%0Aproj.load_image_info()%0A%0A# correlate shutter time with trigger time (based on interval%0A# comaparison of trigger events from the flightdata vs. image time%0A# stamps.)%0Ac = ATICorrelate.Correlate()%0Ac.load_all(args.flight_dir, args.project + %22/Images%22)%0Abest_correlation, best_camera_time_error = c.test_correlations()%0A%0Aproj.interpolateAircraftPositions(c, shutter_latency=args.shutter_latency,%0A                                  force=True, weight=True)%0A%0A# compute the project's NED reference location (based on average of%0A# aircraft poses)%0Aproj.compute_ned_reference_lla()%0Aprint %22NED reference location:%22, proj.ned_reference_lla%0A%0Aproj.save()%0A    %0A

Rename script for consistency so I don't forget where to look for it.