Go to the documentation of this file. 1 subroutine interp_att( msecl, nlin, msecg, attg, attl, iret)
37 real*4 attg(3,*), attl(3)
39 integer*4 msecg(*), msecl, nlin, iret
40 integer*4 ind, i, limdif, lactim
41 data ind/0/, limdif/505/, lactim/166/
47 dowhile((msecl.ge.msecg(ind+1)) .and. (ind.lt.(nlin-1)))
52 if (ind.ge.nlin-1)
then
53 if ((msecl-msecg(nlin)).gt.limdif)
then
54 iret = (msecl-msecg(nlin))/lactim
55 write(*,*)
'interp_att: LAC time after available GAC', msecl
62 if ((msecg(1)-msecl).gt.limdif)
then
63 iret = (msecg(1)-msecl)/lactim
64 write(*,*)
'interp_att: LAC time before available GAC',msecl
71 dt = msecg(ind+1) - msecg(ind)
72 fac = (msecl - msecg(ind)) / dt
76 attl(i) = attg(i,ind)*(1.0 -
fac) + attg(i,ind+1)*
fac
subroutine interp_att(msecl, nlin, msecg, attg, attl, iret)