90 integer,
dimension(5),
parameter:: itd=(/1,24,1440,86400,86400000/),
92 integer,
dimension(4),
parameter:: itn=itd(2:5)/itd(1:4)
93 integer,
parameter:: np=16
94 integer iinc(4),jinc(5),kinc(5)
100 jinc(5)=nint(dot_product(rinc(1:4)-iinc,real(itm(1:4)))+rinc(5))
101 kinc(5)=modulo(jinc(5),itn(4))
103 jinc(4)=iinc(4)+(jinc(5)-kinc(5))/itn(4)
104 kinc(4)=modulo(jinc(4),itn(3))
106 jinc(3)=iinc(3)+(jinc(4)-kinc(4))/itn(3)
107 kinc(3)=modulo(jinc(3),itn(2))
109 jinc(2)=iinc(2)+(jinc(3)-kinc(3))/itn(2)
110 kinc(2)=modulo(jinc(2),itn(1))
112 kinc(1)=iinc(1)+(jinc(2)-kinc(2))/itn(1)
113 ms=dot_product(kinc(2:5),itm(2:5))
117 if(it.ge.1.and.it.le.5)
then
120 rp=(np*ms)/itm(it)+mod(np*ms,itm(it))/real(itm(it))
122 dinc(it)=real(kinc(1))*itd(it)+rp/np
127 if(it.eq.0.and.kinc(1).lt.0.and.ms.gt.0)
then
129 dinc(2:5)=mod(ms-itm(1),itm(1:4))/itm(2:5)
subroutine w3reddat(it, rinc, dinc)
This subprogram reduces an ncep relative time interval into one of seven canonical forms,...