summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-05-03 21:33:16 +0200
committerChristoph Berg <myon@debian.org>2026-05-03 21:33:16 +0200
commit71eb666b36ddc267dca42e389b5cd25f2fc7a42c (patch)
tree6a521dc1dc3aa9f3f2a9e912f65276dfc00bf943 /lib
parentf647d78463c1250ce9c99af664615fafccf5e959 (diff)
New upstream version 3.0.1upstream/3.0.1
Diffstat (limited to 'lib')
-rw-r--r--lib/gen_cw_wave.f902
-rw-r--r--lib/jplsubs.f8
-rw-r--r--lib/q65_decode.f903
-rw-r--r--lib/qra/q65/q65.f9016
4 files changed, 6 insertions, 23 deletions
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".