Go to the documentation of this file.
15 from hawknav.j2000_to_mod
import j2000_to_mod
16 from hawknav.get_nut
import get_nut
17 from hawknav.get_ut1
import get_ut1
18 from hawknav.gha2000
import gha2000
28 xnut = np.squeeze(
get_nut(iy,idy))
29 ut1utc =
get_ut1(iy,idy,strUTCpole)
33 day = idy + (sec+ut1utc)/daysec
35 gham = np.zeros((np.size(iy),3,3))
37 gham[:,0,0] = np.cos(gha)
38 gham[:,1,1] = np.cos(gha)
40 gham[:,1,0] = np.sin(gha)
41 gham[:,0,1] = -np.sin(gha)
46 xnut = np.squeeze(xnut)
47 gham = np.squeeze(gham)
49 ecmat = np.linalg.multi_dot([j2mod,np.transpose(xnut),gham])
51 ecmat = np.matmul(j2mod,np.matmul(xnut.swapaxes(1,2),gham))
def j2000_to_ecr(iy, idy, sec, strUTCpole)