mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Add optional code to q65sim to confirm calkibration of SNR_2500.
This commit is contained in:
parent
fb19d27602
commit
d234986165
@ -222,14 +222,20 @@ program q65sim
|
|||||||
fac=sqrt(1.0/avep)
|
fac=sqrt(1.0/avep)
|
||||||
cspread=fac*cspread !Normalize to constant avg power
|
cspread=fac*cspread !Normalize to constant avg power
|
||||||
cdat=cspread*cdat !Apply Rayleigh fading
|
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
|
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
|
dat=aimag(cdat) + xnoise !Add generated AWGN noise
|
||||||
fac=32767.0
|
fac=32767.0
|
||||||
if(snrdb.ge.90.0) iwave(1:npts)=nint(fac*dat(1:npts))
|
if(snrdb.ge.90.0) iwave(1:npts)=nint(fac*dat(1:npts))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user