From 71eb666b36ddc267dca42e389b5cd25f2fc7a42c Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 3 May 2026 21:33:16 +0200 Subject: New upstream version 3.0.1 --- lib/gen_cw_wave.f90 | 2 +- lib/jplsubs.f | 8 ++++---- lib/q65_decode.f90 | 3 +-- lib/qra/q65/q65.f90 | 16 ---------------- 4 files changed, 6 insertions(+), 23 deletions(-) (limited to 'lib') diff --git a/lib/gen_cw_wave.f90 b/lib/gen_cw_wave.f90 index 24ed0d3e..cf6d6d98 100644 --- a/lib/gen_cw_wave.f90 +++ b/lib/gen_cw_wave.f90 @@ -4,7 +4,7 @@ subroutine gen_cw_wave(message,ifreq,wave) parameter (NMAX=98304) !2.048*48000 character*(*) message - integer icw(200) !Encoded CW message bits + integer icw(250) !Encoded CW message bits real*4 z(NMAX) real*8 dt,twopi,phi,dphi,fsample,tdit,t real*4 wave(NMAX) !Generated waveform diff --git a/lib/jplsubs.f b/lib/jplsubs.f index 6dcd1c9b..f1438d93 100644 --- a/lib/jplsubs.f +++ b/lib/jplsubs.f @@ -533,7 +533,7 @@ C C+++++++++++++++++++++++++ C - SUBROUTINE SPLIT(TT,FR) + SUBROUTINE SPLIT_DP(TT,FR) C C+++++++++++++++++++++++++ C @@ -754,11 +754,11 @@ C ********** MAIN ENTRY POINT ********** IF(ET2(1) .EQ. 0.D0) RETURN S=ET2(1)-.5D0 - CALL SPLIT(S,PJD(1)) - CALL SPLIT(ET2(2),PJD(3)) + CALL SPLIT_DP(S,PJD(1)) + CALL SPLIT_DP(ET2(2),PJD(3)) PJD(1)=PJD(1)+PJD(3)+.5D0 PJD(2)=PJD(2)+PJD(4) - CALL SPLIT(PJD(2),PJD(3)) + CALL SPLIT_DP(PJD(2),PJD(3)) PJD(1)=PJD(1)+PJD(3) C ERROR RETURN FOR EPOCH OUT OF RANGE diff --git a/lib/q65_decode.f90 b/lib/q65_decode.f90 index 64ae6ff5..5c9b0237 100644 --- a/lib/q65_decode.f90 +++ b/lib/q65_decode.f90 @@ -254,8 +254,7 @@ contains endif enddo ! ipass - !if(iand(ndepth,16).eq.0 .or. navg(iseq).lt.2) go to 100 - if(navg(iseq).lt.2) go to 100 + if(iand(ndepth,16).eq.0 .or. navg(iseq).lt.2) go to 100 ! There was no single-transmission decode. Try for an average 'q3n' decode. 50 iavg=1 diff --git a/lib/qra/q65/q65.f90 b/lib/qra/q65/q65.f90 index ee5db714..d73ded61 100644 --- a/lib/qra/q65/q65.f90 +++ b/lib/qra/q65/q65.f90 @@ -144,22 +144,6 @@ subroutine q65_dec0(iavg,iwave,ntrperiod,nfqso,ntol,lclearave, & endif i0=nint(nfqso/df) !Target QSO frequency -! add AGC to restore average decodes -ii1 = max(1, i0-64) -ii2 = i0-65+LL - -call pctile(s1(ii1:ii2,1:jz), ii2-ii1+1*jz, 45, base) -s1 = s1 / base - -! Apply fast AGC to the symbol spectra - s1max=20.0 - do j=1,jz - smax = maxval(s1(ii1:ii2,j)) - if (smax.gt.s1max) s1(ii1:ii2,j) = s1(ii1:ii2,j) * s1max/smax -enddo - -! end add AGC to restore average decodes - dat4=0 if(ncw.gt.0 .and. iavg.le.1) then ! Try list decoding via "Deep Likelihood". -- cgit v1.2.3