diff --git a/lib/jt65sim.f90 b/lib/jt65sim.f90 index 13fe62cec..92e5d587e 100644 --- a/lib/jt65sim.f90 +++ b/lib/jt65sim.f90 @@ -297,9 +297,9 @@ program jt65sim endif - dat=aimag(cdat) + xnoise !Add the generated noise + dat(1:npts)=aimag(cdat(1:npts)) + xnoise(1:npts) !Add the generated noise if(snrdb.lt.90.0) then - dat=rms*dat(1:npts) + dat(1:npts)=rms*dat(1:npts) else datpk=maxval(abs(dat(1:npts))) fac=32766.9/datpk