From 9785fb9a900dc234551c2b04964d17d3ef61e519 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 30 Nov 2018 14:34:14 -0500 Subject: [PATCH] Revert "Don't allow divide-by-0 for pathological JT4 signal." This reverts commit 038405bc1e562fe56484f692c22ce7817bfbf75e. --- lib/sync4.f90 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sync4.f90 b/lib/sync4.f90 index a15177665..d8a130d28 100644 --- a/lib/sync4.f90 +++ b/lib/sync4.f90 @@ -139,10 +139,8 @@ subroutine sync4(dat,jz,ntol,nfqso,mode,mode4,minwidth,dtx,dfx,snrx, & ns=ns+1 endif enddo - rms=0.1 - if(ns.gt.0) rms=sqrt(sq/ns) + rms=sqrt(sq/ns) snrx=10.0*log10(ccfred(ipk1a)/rms) - 41.2 - if(snrx.gt.50.0) snrx=50.0 900 return end subroutine sync4