1 subroutine fitrng(meas, nmeas, nquant, flag, nper,
33 integer*4 nmeas, nquant, nper
34 real*4 meas(nquant,nmeas), measout(nquant,nmeas*nper)
35 integer*4 flag(nmeas), flgout(nmeas*nper)
38 integer*4 imeas, iquant, i1, i2
46 do imeas = 1,nmeas * nper
54 flgout( ( imeas - 1 ) * nper + 1 ) = flag( imeas )
56 measout( iquant, ( imeas - 1 ) * nper + 1 ) =
57 1 meas( iquant, imeas )
65 call fndflg(flag, nmeas, 1, i1 )
66 call fndflg(flag, nmeas, ( i1 + 1 ), i2 )
68 if( flag(1) .eq. 1)
then
71 del(iquant) = ( meas(iquant,i2) - meas(iquant,i1) ) /
75 do imeas = 1, (i1 - 1) * nper
78 measout(iquant, imeas ) =
79 1 meas(iquant,i1) - del(iquant) *
80 1 ( (i1 - 1) * nper + 1 - imeas )
90 call fndflg(flag, nmeas, (i1 + 1), i2 )
95 del(iquant) = ( meas(iquant,i2) - meas(iquant,i1) ) /
99 if( ( i2 * nper - i1 * nper ) .gt. 1 )
then
103 do imeas = (i1 - 1) * nper + 2, (i2 - 1) * nper
105 do iquant = 1, nquant
106 measout(iquant,imeas) =
107 1 meas(iquant,i1) + del(iquant) *
108 1 ( imeas - ( i1 - 1 ) * nper - 1 )
122 if( ( flag(nmeas) .eq. 1 ) .or. ( nper .ne. 1 ) )
then
123 do imeas = (i1 - 1 ) * nper + 2, nmeas * nper
125 do iquant = 1, nquant
126 measout(iquant,imeas) = meas(iquant,i1) + del(iquant) *
127 1 ( imeas - ( i1 - 1 ) * nper - 1 )