1 subroutine asap_rots(iyinit,idinit,tsap,asap,nstp,vecs)
30 #include "nav_cnst.fin"
32 integer*4 nstp, iyinit, idinit, i, ier
33 real*8 asap(6,nstp), vecs(6,nstp), tsap(nstp)
34 real*8 gha, cogha, sigha, td, ut1c/0.d0/
38 call get_ut1(iyinit,idinit,ut1c,ier)
41 print *,
'-E- utcpole.dat file could not be read.'
47 td = idinit + (tsap(i)+ut1c)/864.d2
49 cogha = cos(gha/radeg)
50 sigha = sin(gha/radeg)
51 vecs(1,i) = asap(1,i)*cogha + asap(2,i)*sigha
52 vecs(2,i) = asap(2,i)*cogha - asap(1,i)*sigha
54 vecs(4,i) = asap(4,i)*cogha + asap(5,i)*sigha + omegae*vecs(2,i)
55 vecs(5,i) = asap(5,i)*cogha - asap(4,i)*sigha - omegae*vecs(1,i)