I believe SNR should be the min between xbase and xnoi...let's try

This commit is contained in:
Jordan Sherer 2019-12-11 16:56:43 -05:00
parent 8e0e94e8bb
commit 7dc0298b18
2 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ subroutine ft8b(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,lapcqonly, &
if(xnoi.gt.0 .and. xnoi.lt.xsig) xsnr=xsig/xnoi-1.0
xsnr=10.0*log10(xsnr)-27.0
xsnr2=db(xsig/xbase - 1.0) - 32.0
if(.not.nagain) xsnr=xsnr2
if(.not.nagain) xsnr=min(xsnr, xsnr2)
if(xsnr .lt. -24.0) xsnr=-24.0
msg37=origmsg//' '

View File

@ -476,7 +476,7 @@ subroutine js8dec(dd0,newdat,nQSOProgress,nfqso,nftx,ndepth,lapon,lapcqonly, &
if(xnoi.gt.0 .and. xnoi.lt.xsig) xsnr=xsig/xnoi-1.0
xsnr=10.0*log10(xsnr)-27.0
xsnr2=db(xsig/xbase - 1.0) - 32.0
if(.not.nagain) xsnr=xsnr2
if(.not.nagain) xsnr=min(xsnr, xsnr2)
if(xsnr .lt. -28.0) xsnr=-28.0
msg37=origmsg//' '