#!/usr/bin/env python import os import warnings import open3d as o3 import matplotlib.pyplot as plt import numpy as np import progressbar import pyquaternion as pq import transforms3d as t3 import util import time T_w_o = np.identity(4) T_w_o[:3, :3] = [[0, 1, 0], [1, 0, 0], [0, 0, -1]] T_o_w = util.invert_ht(T_w_o) eulerdef = 'sxyz' csvdelimiter = ',' datadir = '/mnt/c/Users/SabrinaB/Desktop/nclt' resultdir = 'nclt' snapshotfile = 'snapshot.npz' sessionfile = 'sessiondata.npz' sessions = [ #'2012-01-08', '2012-01-15', #'2012-01-22', #'2012-02-02', #'2012-02-04', #'2012-02-05', #'2012-02-12', #'2012-02-18', #'2012-02-19', #'2012-03-17', #'2012-03-25', #'2012-03-31', #'2012-04-29', #'2012-05-11', #'2012-05-26', #'2012-06-15', #'2012-08-04', #'2012-08-20', #'2012-09-28', #'2012-10-28', #'2012-11-04', #'2012-11-16', #'2012-11-17', #'2012-12-01', #'2013-01-10', #'2013-02-23', '2013-04-05'] lat0 = np.radians(42.293227) lon0 = np.radians(-83.709657) re = 6378135.0 rp = 6356750 rns = (re * rp)**2.0 \ / ((re * np.cos(lat0))**2.0 + (rp * np.sin(lat0))**2.0)**1.5 rew = re**2.0 / np.sqrt((re * np.cos(lat0))**2.0 + (rp * np.sin(lat0))**2.0) veloheadertype = np.dtype({ 'magic': ('