diff options
| author | Christoph Berg <myon@debian.org> | 2022-08-08 23:08:17 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-08-08 23:08:17 +0200 |
| commit | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (patch) | |
| tree | fac973fdc7378510849f4d749cd311176c023ebb /map65/libm65 | |
| parent | d47341d71ff3df889c1180eb7bfb4fc0272eb26b (diff) | |
New upstream version 2.6.0~rc2+repackupstream/2.6.0_rc2+repack
Diffstat (limited to 'map65/libm65')
| -rwxr-xr-x | map65/libm65/wideband_sync.f90 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map65/libm65/wideband_sync.f90 b/map65/libm65/wideband_sync.f90 index 875531f7..90689ed1 100755 --- a/map65/libm65/wideband_sync.f90 +++ b/map65/libm65/wideband_sync.f90 @@ -47,6 +47,8 @@ subroutine get_candidates(ss,savg,xpol,jz,nfa,nfb,nts_jt65,nts_q65,cand,ncand) df3=96000.0/NFFT ia=nint(1000*nfa/df3) + 1 ib=nint(1000*nfb/df3) + 1 + if(ia.lt.1) ia=1 + if(ib.gt.NFFT-1) ib=NFFT-1 iz=ib-ia+1 call indexx(sync(ia:ib)%ccfmax,iz,indx) !Sort by relative snr @@ -151,6 +153,8 @@ subroutine wb_sync(ss,savg,xpol,jz,nfa,nfb) df3=96000.0/NFFT ia=nint(1000*nfa/df3) + 1 !Flat frequency range for WSE converters ib=nint(1000*nfb/df3) + 1 + if(ia.lt.1) ia=1 + if(ib.gt.NFFT-1) ib=NFFT-1 npol=1 if(xpol) npol=4 |
