diff options
| author | Christoph Berg <myon@debian.org> | 2024-07-20 08:39:32 +0000 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2024-07-20 08:39:32 +0000 |
| commit | fbaeaa72f63f22bf0b53d634f6809cbdfbb46c9f (patch) | |
| tree | 34bf121b8a6f02b43542bd554d59ba6191cd1359 /lib/qra | |
| parent | 93f7198f9c2864ef9630cc0cc9e46d6cc1933aa9 (diff) | |
New upstream version 2.7.0~rc6+dfsgupstream/2.7.0_rc6+dfsg
Diffstat (limited to 'lib/qra')
| -rwxr-xr-x | lib/qra/q65/q65sim.f90 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/qra/q65/q65sim.f90 b/lib/qra/q65/q65sim.f90 index b9462939..04c064e3 100755 --- a/lib/qra/q65/q65sim.f90 +++ b/lib/qra/q65/q65sim.f90 @@ -222,14 +222,20 @@ program q65sim fac=sqrt(1.0/avep)
cspread=fac*cspread !Normalize to constant avg power
cdat=cspread*cdat !Apply Rayleigh fading
-
-! do i=0,nfft-1
-! p=real(cspread(i))**2 + aimag(cspread(i))**2
-! write(14,3010) i,p,cspread(i)
-!3010 format(i8,3f12.6)
-! enddo
endif
+! psig=0.
+! pnoise=0.
+! do i=1,npts
+! if(i.gt.12000 .and. i.lt.624000) then
+! psig=psig + aimag(cdat(i))**2
+! pnoise=pnoise + xnoise(i)*xnoise(i)
+! endif
+! enddo
+! pnoise=pnoise*bandwidth_ratio
+! snr_2500=db(psig/pnoise) !Calibration confirmation!
+! print*,'SNR_2500:',snr_2500
+
dat=aimag(cdat) + xnoise !Add generated AWGN noise
fac=32767.0
if(snrdb.ge.90.0) iwave(1:npts)=nint(fac*dat(1:npts))
|
