Stop accumulating baseline samples when there are too many

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4966 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-02-15 19:20:11 +00:00
parent 78c7501680
commit d24537420f

View File

@ -28,7 +28,7 @@ subroutine flat4(s,npts,nflatten)
call pctile(s(ia),ib-ia+1,npct,base) !Find lowest npct of points in segment
do i=ia,ib
if(s(i).le.base) then
k=k+1 !Save these "lower envelope" points
if (k.lt.1000) k=k+1 !Save these "lower envelope" points
x(k)=i-i0
y(k)=s(i)
endif