From 6f5fc344bf91a881ba6d5fc6087c162e08c895b0 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 1 Jun 2020 11:24:24 -0400 Subject: [PATCH] Fix a bug in JT65's SNR calculation for VHF usage. --- lib/jt65_decode.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jt65_decode.f90 b/lib/jt65_decode.f90 index 6177492cc..5242b6efe 100644 --- a/lib/jt65_decode.f90 +++ b/lib/jt65_decode.f90 @@ -176,8 +176,8 @@ contains endif df=12000.0/8192.0 !df = 1.465 Hz if(bVHF) then - ia=max(1,nint(nfa/df)-ntol) - ib=min(NSZ,nint(nfb/df)+ntol) + ia=max(1,nint((nfa-100)/df)) + ib=min(NSZ,nint((nfb+100)/df)) nz=ib-ia+1 call lorentzian(savg(ia),nz,a) baseline=a(1)