From d41ccb81449c5cb597b1c11243cce3bb990df04a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 19 Mar 2016 00:16:09 +0000 Subject: [PATCH] Back to original SNR calc when not using "Single decode". git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6539 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/jt65_decode.f90 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/jt65_decode.f90 b/lib/jt65_decode.f90 index 2d9dd7af0..d89e73059 100644 --- a/lib/jt65_decode.f90 +++ b/lib/jt65_decode.f90 @@ -203,10 +203,11 @@ contains nfreq=nint(freq+a(1)) ndrift=nint(2.0*a(2)) -!### -! s2db=10.0*log10(sync2) - 35 !### empirical (HF) - s2db=sync1 - 30.0 + db(width/3.3) !### VHF/UHF/microwave -!### + if(single_decode) then + s2db=sync1 - 30.0 + db(width/3.3) !### VHF/UHF/microwave + else + s2db=10.0*log10(sync2) - 35 !### empirical (HF) + endif nsnr=nint(s2db) if(nsnr.lt.-30) nsnr=-30 if(nsnr.gt.-1) nsnr=-1