1 subroutine asap_int2( nstp, tsap, asap, pos_erri, ngps,
2 * gpsec, vecs, pos_erro )
35 real*8 asap(6,*),tsap(*),vecs(6,*),gpsec(*)
36 real*8 a0(3),a1(3),a2(3),a3(3),vt(6,2)
37 real*8 tsap1,tsap2,t,dift,dt,x,x2,x3
40 integer*4 nstp,iyinit,idinit,ngps,igyr,igday,jd
41 integer*4 ind, i, j, i1, nr
55 if ((t.gt.tsap2).or.(t.lt.tsap1))
then
56 if (t.gt.tsap(ind+1))
then
57 dowhile(t.gt.tsap(ind+1))
60 write(*,*)
'GPS times after available ASAP data'
70 dowhile(t.lt.tsap(ind))
73 write(*,*)
'GPS times before available ASAP data'
86 dt = tsap(ind+1) - tsap(ind)
90 vt(j,2) = asap(j,ind+1)
95 a2(j) = 3.d0*vt(j,2) - 3.d0*vt(j,1)
96 * - 2.d0*vt(j+3,1)*dt - vt(j+3,2)*dt
97 a3(j) = 2.d0*vt(j,1) - 2.d0*vt(j,2)
98 * + vt(j+3,1)*dt + vt(j+3,2)*dt
110 vecs(j,i) = a0(j) + a1(j)*x + a2(j)*x2 + a3(j)*x3
111 vecs(j+3,i) = (a1(j) + 2.*a2(j)*x + 3.*a3(j)*x2)/dt
114 pos_erro(i) = pos_erri(ind) * ( 1. - x ) + pos_erri(ind+1) * x