Fix the 'Start=0 ==> S/N = -24 dB' problem.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8037 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-08-27 12:26:37 +00:00
parent 021336823a
commit a3c65d72bb

View File

@ -12,7 +12,7 @@ subroutine baseline(s,nfa,nfb,sbase)
data nseg/10/,npct/10/ data nseg/10/,npct/10/
df=12000.0/3840.0 !3.125 Hz df=12000.0/3840.0 !3.125 Hz
ia=nint(nfa/df) ia=max(1,nint(nfa/df))
ib=nint(nfb/df) ib=nint(nfb/df)
do i=ia,ib do i=ia,ib
s(i)=10.0*log10(s(i)) !Convert to dB scale s(i)=10.0*log10(s(i)) !Convert to dB scale