From d24537420f6adff6dba7037e8eb8aab0d20b2ec5 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 15 Feb 2015 19:20:11 +0000 Subject: [PATCH] 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 --- lib/flat4.f90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flat4.f90 b/lib/flat4.f90 index f9d4c72f2..fd96a3aba 100644 --- a/lib/flat4.f90 +++ b/lib/flat4.f90 @@ -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