Restore AGC action in sync_qra65().

This commit is contained in:
Joe Taylor 2020-09-25 13:31:43 -04:00
parent 7fd2f1afe6
commit 443aee5355

View File

@ -54,10 +54,10 @@ subroutine sync_qra65(iwave,nmax,mode65,nsps,nfqso,ntol,xdt,f0,snr1)
s1max=20.0 s1max=20.0
! Apply AGC ! Apply AGC
! do j=1,jz do j=1,jz
! smax=maxval(s1(i0-64:i0+192,j)) smax=maxval(s1(i0-64:i0+192,j))
! if(smax.gt.s1max) s1(i0-64:i0+192,j)=s1(i0-64:i0+192,j)*s1max/smax if(smax.gt.s1max) s1(i0-64:i0+192,j)=s1(i0-64:i0+192,j)*s1max/smax
! enddo enddo
! do i=1,iz ! do i=1,iz
! write(60,3060) i,i*df,sum(s1(i,1:jz)) ! write(60,3060) i,i*df,sum(s1(i,1:jz))