mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-26 15:05:21 -04:00
Should have committed this code, yesterday.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6509 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f0fdc8822b
commit
3cd53fb073
@ -16,7 +16,7 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
|
|||||||
real s2(66,126)
|
real s2(66,126)
|
||||||
real a(5)
|
real a(5)
|
||||||
logical first
|
logical first
|
||||||
character decoded*22
|
character decoded*22,decoded_best*22
|
||||||
character mycall*12,hiscall*12,hisgrid*6
|
character mycall*12,hiscall*12,hisgrid*6
|
||||||
data first/.true./,jjjmin/1000/,jjjmax/-1000/
|
data first/.true./,jjjmin/1000/,jjjmax/-1000/
|
||||||
data nhz0/-9999999/
|
data nhz0/-9999999/
|
||||||
@ -82,13 +82,20 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
|
|||||||
call timer('sh_ffts ',1)
|
call timer('sh_ffts ',1)
|
||||||
|
|
||||||
call timer('dec65b ',0)
|
call timer('dec65b ',0)
|
||||||
|
qualbest=0.
|
||||||
maxsmo=0
|
maxsmo=0
|
||||||
if(mode65.eq.2) maxsmo=2
|
if(mode65.eq.2) maxsmo=5
|
||||||
if(mode65.eq.4) maxsmo=5
|
if(mode65.eq.4) maxsmo=10
|
||||||
|
nn=0
|
||||||
do ismo=0,maxsmo
|
do ismo=0,maxsmo
|
||||||
if(ismo.gt.0) then
|
if(ismo.gt.0) then
|
||||||
do j=1,126
|
do j=1,126
|
||||||
call smo121(s1(-255,j),512)
|
call smo121(s1(-255,j),512)
|
||||||
|
if(j.eq.1) nn=nn+1
|
||||||
|
if(nn.ge.4) then
|
||||||
|
call smo121(s1(-255,j),512)
|
||||||
|
if(j.eq.1) nn=nn+1
|
||||||
|
endif
|
||||||
enddo
|
enddo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -109,10 +116,23 @@ subroutine decode65a(dd,npts,newdat,nqd,f0,nflip,mode65,ntrials, &
|
|||||||
exit
|
exit
|
||||||
else if(nft.eq.2) then
|
else if(nft.eq.2) then
|
||||||
!### Should also deal with nft=2 solutions
|
!### Should also deal with nft=2 solutions
|
||||||
|
if(qual.gt.qualbest) then
|
||||||
|
decoded_best=decoded
|
||||||
|
qualbest=qual
|
||||||
|
nnbest=nn
|
||||||
|
nsmobest=ismo
|
||||||
|
endif
|
||||||
|
! print*,'A',nn,ismo,qual,decoded
|
||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
if(nft.eq.2) then
|
||||||
|
decoded=decoded_best
|
||||||
|
qual=qualbest
|
||||||
|
nsmo=nsmobest
|
||||||
|
! print*,'B',nnbest,nsmo,qual,decoded
|
||||||
|
endif
|
||||||
|
|
||||||
call timer('dec65b ',1)
|
call timer('dec65b ',1)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user