10 from hawknav.qprod
import qprod
12 nr = np.shape(rates)[0]
13 quats = np.zeros((nr+1,4))
15 quats[0,:] = [0.0,0.0,0.0,1.0]
18 qr[:,0:3] = np.sin(rates/2.0)
19 qr[:,3] = np.sqrt(1.0 - np.sum(qr[:,0:3]**2,axis=1))
22 qt =
qprod(quats[i,:],qr[i,:])
23 qt = qt/np.sqrt(np.sum(qt*qt))