Go to the documentation of this file.
37 from hawknav.jd
import jd
42 jday =
jd(iyr,imon,iday)
43 t = jday - 2451545.5 + fday
46 gmst = 100.4606184 + 0.9856473663*t + 2.908e-13*np.multiply(t,t)
50 [dpsi,eps,epsm] =
nutate(t,xls,gs,xlm,omega)
53 gha = gmst + np.multiply(dpsi, np.cos(np.deg2rad(eps))) + fday*360.0
92 xls = 280.46592 + 0.9856473516*t
96 gs = 357.52772 + 0.9856002831*t
100 xlm = 218.31643 + 13.17639648*t
101 xlm = np.mod(xlm,360)
104 omega = 125.04452 - 0.0529537648*t
105 omega = np.mod(omega,360)
107 return [xls,gs,xlm,omega]
146 xls_rad = np.deg2rad(xls)
147 gs_rad = np.deg2rad(gs)
148 xlm_rad = np.deg2rad(xlm)
149 omega_rad = np.deg2rad(omega)
152 dpsi = - 17.1996 * np.sin(omega_rad) + 0.2062 * np.sin(2.0*omega_rad) - 1.3187 * np.sin(2.0*xls_rad) + 0.1426 * np.sin(gs_rad) - 0.2274 * np.sin(2.0*xlm_rad)
155 epsm = 23.439291 - 3.560e-7*t
158 deps = 9.2025 * np.cos(omega_rad) + 0.5736 * np.cos(2.0*xls_rad)
161 eps = epsm + deps/3600.0
165 return [dpsi,eps,epsm]
def nutate(t, xls, gs, xlm, omega)