mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Guard against base=0 when normalizing an snr2 estimate in ccf65().
This commit is contained in:
parent
e3f405684f
commit
2ed4ca3aaf
@ -113,8 +113,9 @@ subroutine ccf65(ss,nhsym,ssmax,sync1,ipol1,jpz,dt1,flipk, &
|
|||||||
tmp1(i)=ss(ipol2,i)
|
tmp1(i)=ss(ipol2,i)
|
||||||
enddo
|
enddo
|
||||||
call pctile(tmp1,nhsym,40,base)
|
call pctile(tmp1,nhsym,40,base)
|
||||||
snr2=0.398107*ccfbest2/base !### empirical
|
snr2=0.01
|
||||||
syncshort=0.5*ccfbest2/rms - 4.0 !### better normalizer than rms?
|
if(base.gt.0.0) snr2=0.398107*ccfbest2/base !### empirical
|
||||||
|
syncshort=0.5*ccfbest2/rms - 4.0 !### better normalizer than rms?
|
||||||
dt2=2.5 + lagpk2*(2048.0/11025.0)
|
dt2=2.5 + lagpk2*(2048.0/11025.0)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user