17 lon = np.rad2deg(np.arctan2(orb[:,1],orb[:,0]))
20 rad = np.sqrt(np.square(orb[:,0])+np.square(orb[:,1])+np.square(orb[:,2]))
21 omf2p = (OMF2*REM + rad - REM)/rad
22 pxy = np.square(orb[:,0])+np.square(orb[:,1])
23 temp = np.sqrt(np.square(orb[:,2]) + omf2p*omf2p*pxy)
24 lat = np.rad2deg(np.arcsin(np.array(orb[:,2])/temp))
27 clatg = np.cos(np.arctan(OMF2*np.tan(np.deg2rad(lat))))
28 rl = RE*(1.0-F)/np.sqrt(1.0-(2.0-F)*F*np.square(clatg))