diff options
| author | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
|---|---|---|
| committer | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
| commit | b4aebf2d137b892f53503b13785ecae900062ff7 (patch) | |
| tree | 3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /lib/softsym9w.f90 | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be).
* Drop local boost copy (1.63.0).
Diffstat (limited to 'lib/softsym9w.f90')
| -rw-r--r-- | lib/softsym9w.f90 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/softsym9w.f90 b/lib/softsym9w.f90 index 4465e0ea..c9b1d0a8 100644 --- a/lib/softsym9w.f90 +++ b/lib/softsym9w.f90 @@ -1,4 +1,4 @@ -subroutine softsym9w(id2,npts,xdt0,f0,width,nsubmode,xdt1,i1softsymbols) +subroutine softsym9w(id2,npts,xdt0,f0,width,nsubmode,xdt1,snrdb,i1softsymbols) parameter (NFFT=6912,NH=NFFT/2,NQ=NH/2) real s(NQ) @@ -88,17 +88,16 @@ subroutine softsym9w(id2,npts,xdt0,f0,width,nsubmode,xdt1,i1softsymbols) call pctile(s2,9*85,35,xmed) s3=s3/ave sig=sig/69. !Signal - t=max(1.0,sig - 1.0) - snrdb=db(t) + snrdb=db(sig/xmed) - 28.0 m0=3 k=0 do j=1,69 - smax=0. - do i=0,7 - if(s3(i,j).gt.smax) smax=s3(i,j) - enddo - + smax=0. + do i=0,7 + if(s3(i,j).gt.smax) smax=s3(i,j) + enddo + do m=m0-1,0,-1 !Get bit-wise soft symbols if(m.eq.2) then r1=max(s3(4,j),s3(5,j),s3(6,j),s3(7,j)) |
