Go to the documentation of this file.
6 omegae = 7.29211585494e-5
7 for i
in np.arange(len(posr)):
8 velr[i][0] += posr[i][1]*omegae
9 velr[i][1] -= posr[i][0]*omegae
15 omf2 = (1.0-f) * (1.0-f)
17 xyz = np.array([p/1000.0
for p
in posr], dtype=np.float64)
18 x, y, z = [xyz[:,i]
for i
in np.arange(3)]
21 lon = np.arctan2(y, x)
24 rad = np.linalg.norm(xyz,axis=1)
25 omf2p = (omf2*rem + rad - rem)/rad
27 temp = np.sqrt(z*z + omf2p*omf2p*pxy)
28 lat = np.arcsin(z/temp)
31 clatg = np.cos(np.arctan(omf2*np.tan(lat)))
32 rl = re*(1.0-f)/np.sqrt(1.0-(2.0-f)*f*clatg*clatg)
37 orbitparams[
'posr'] = posr
38 orbitparams[
'velr'] = velr
39 orbitparams[
'lon'] = np.rad2deg(lon)
40 orbitparams[
'lat'] = np.rad2deg(lat)
41 orbitparams[
'alt'] = alt * 1000.0
def derive_orbitparams(posr, velr)