From 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 9 Jan 2025 22:12:06 +0100 Subject: New upstream version 2.7.0~rc8+repack --- lib/sync9f.f90 | 110 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) (limited to 'lib/sync9f.f90') diff --git a/lib/sync9f.f90 b/lib/sync9f.f90 index 8e4f0b0a..8aca06bb 100755 --- a/lib/sync9f.f90 +++ b/lib/sync9f.f90 @@ -1,55 +1,55 @@ -subroutine sync9f(s2,nq,nfa,nfb,ss2,ss3,lagpk,ipk,ccfbest) - -! Look for JT9 sync pattern in the folded symbol spectra, s2. -! Frequency search extends from nfa to nfb. Synchronized symbol -! spectra are put into ss2() and ss3(). - - integer ii4(16) - real s2(240,340) - real ss2(0:8,85) - real ss3(0:7,69) - include 'jt9sync.f90' - - ii4=4*ii-3 - ccf=0. - ccfbest=0. - nfft=4*nq - df=12000.0/nfft - ia=nfa/df - ib=nfb/df + 0.9999 - - do i=ia,ib - do lag=0,339 - t=0. - do n=1,16 - j=ii4(n)+lag - if(j.gt.340) j=j-340 - t=t + s2(i,j) - enddo - if(t.gt.ccfbest) then - lagpk=lag - ipk=i - ccfbest=t - endif - enddo - enddo - - do i=0,8 - j4=lagpk-4 - i2=2*i + ipk - if(i2.lt.1) i2=1 - m=0 - do j=1,85 - j4=j4+4 - if(j4.gt.340) j4=j4-340 - if(j4.lt.1) j4=j4+340 - ss2(i,j)=s2(i2,j4) - if(i.ge.1 .and. isync(j).eq.0) then - m=m+1 - ss3(i-1,m)=ss2(i,j) - endif - enddo - enddo - - return -end subroutine sync9f +subroutine sync9f(s2,nq,nfa,nfb,ss2,ss3,lagpk,ipk,ccfbest) + +! Look for JT9 sync pattern in the folded symbol spectra, s2. +! Frequency search extends from nfa to nfb. Synchronized symbol +! spectra are put into ss2() and ss3(). + + integer ii4(16) + real s2(240,340) + real ss2(0:8,85) + real ss3(0:7,69) + include 'jt9sync.f90' + + ii4=4*ii-3 + ccf=0. + ccfbest=0. + nfft=4*nq + df=12000.0/nfft + ia=nfa/df + ib=nfb/df + 0.9999 + + do i=ia,ib + do lag=0,339 + t=0. + do n=1,16 + j=ii4(n)+lag + if(j.gt.340) j=j-340 + t=t + s2(i,j) + enddo + if(t.gt.ccfbest) then + lagpk=lag + ipk=i + ccfbest=t + endif + enddo + enddo + + do i=0,8 + j4=lagpk-4 + i2=2*i + ipk + if(i2.lt.1) i2=1 + m=0 + do j=1,85 + j4=j4+4 + if(j4.gt.340) j4=j4-340 + if(j4.lt.1) j4=j4+340 + ss2(i,j)=s2(i2,j4) + if(i.ge.1 .and. isync(j).eq.0) then + m=m+1 + ss3(i-1,m)=ss2(i,j) + endif + enddo + enddo + + return +end subroutine sync9f -- cgit v1.2.3