Go to the documentation of this file.
9 from hawknav.gha2000
import gha2000
15 day = iday + sec/86400.0
17 ghar = np.deg2rad(gha)
21 sunr = np.zeros((3,n))
22 sunr[0][:] = su[0][:]*np.cos(ghar) + su[1][:]*np.sin(ghar)
23 sunr[1][:] = su[1][:]*np.cos(ghar) - su[0][:]*np.sin(ghar)
38 from hawknav.jd
import jd
39 from hawknav.gha2000
import gha2000,ephparms,nutate
42 imon = np.ones(np.shape(iyr))
48 jday =
jd(iyr,imon,iday)
49 t = jday - 2451545.0 + (sec-43200.0)/86400.0
60 [dpsi,eps,epsm] =
nutate(t,xls,gs,xlm,omega)
64 g2 = 50.40828 + 1.60213022*t
68 g4 = 19.38816 + 0.52402078*t
72 g5 = 20.35116 + 0.08309121*t
76 rs = 1.00014-0.01671*np.cos(np.deg2rad(gs))-0.00014*np.cos(2.0*np.deg2rad(gs))
79 dls = (6893.0 - 4.6543463e-4*t)*np.sin(np.deg2rad(gs)) \
80 + 72.0*np.sin(2.0*np.deg2rad(gs)) \
81 - 7.0*np.cos(np.deg2rad(gs - g5)) \
82 + 6.0*np.sin(np.deg2rad(xlm - xls)) \
83 + 5.0*np.sin(np.deg2rad(4.0*gs - 8.0*g4 + 3.0*g5)) \
84 - 5.0*np.cos(np.deg2rad(2.0*gs - 2.0*g2)) \
85 - 4.0*np.sin(np.deg2rad(gs - g2)) \
86 + 4.0*np.cos(np.deg2rad(4.0*gs - 8.0*g4 + 3.0*g5)) \
87 + 3.0*np.sin(np.deg2rad(2.0*gs - 2.0*g2)) \
88 - 3.0*np.sin(np.deg2rad(g5)) \
89 - 3.0*np.sin(np.deg2rad(2.0*gs - 2.0*g5))
91 xlsg = xls + dls/3600.0
95 xlsa = xlsg + dpsi - xk/rs
98 sun[0][:] = np.cos(np.deg2rad(xlsa))
99 sun[1][:] = np.sin(np.deg2rad(xlsa))*np.cos(np.deg2rad(eps))
100 sun[2][:] = np.sin(np.deg2rad(xlsa))*np.sin(np.deg2rad(eps))
def l_sun(iyr, iday, sec)
def sun2000(iyr, iday, sec)
short int nutate(double tjd, short int fn1, double *pos, double *pos2)
int ephparms(double t, double &xls, double &gs, double &xlm, double &omega)