mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-04 23:22:26 -04:00
Don't call peakup if we're too close to the edge.
This commit is contained in:
parent
376f0d1e53
commit
993705d581
@ -95,10 +95,16 @@ subroutine sfox_sync(iwave,fsample,isync,f,t)
|
|||||||
ipeak=maxloc(ccf)
|
ipeak=maxloc(ccf)
|
||||||
ipk=ipeak(1)-1+ia
|
ipk=ipeak(1)-1+ia
|
||||||
jpk=ipeak(2)-1+lag1
|
jpk=ipeak(2)-1+lag1
|
||||||
|
|
||||||
call peakup(ccf(ipk-1,jpk),ccf(ipk,jpk),ccf(ipk+1,jpk),dxi)
|
dxi=0.
|
||||||
call peakup(ccf(ipk,jpk-1),ccf(ipk,jpk),ccf(ipk,jpk+1),dxj)
|
dxj=0.
|
||||||
|
if(ipk.gt.ia .and. ipk.lt.ib) then
|
||||||
|
call peakup(ccf(ipk-1,jpk),ccf(ipk,jpk),ccf(ipk+1,jpk),dxi)
|
||||||
|
endif
|
||||||
|
if(jpk.gt.lag1 .and. jpk.lt.lag2) then
|
||||||
|
call peakup(ccf(ipk,jpk-1),ccf(ipk,jpk),ccf(ipk,jpk+1),dxj)
|
||||||
|
endif
|
||||||
|
|
||||||
f=ibest*df + bw/2 + dxi*df
|
f=ibest*df + bw/2 + dxi*df
|
||||||
t=lagbest*dtstep + dxj*dtstep
|
t=lagbest*dtstep + dxj*dtstep
|
||||||
! write(*,4100) ibest,lagbest,f,dxi*df,t,dxj*dtstep
|
! write(*,4100) ibest,lagbest,f,dxi*df,t,dxj*dtstep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user