diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /lib/ft8/watterson.f90 | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/ft8/watterson.f90')
| -rw-r--r-- | lib/ft8/watterson.f90 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ft8/watterson.f90 b/lib/ft8/watterson.f90 index d047a26e..a1131d7b 100644 --- a/lib/ft8/watterson.f90 +++ b/lib/ft8/watterson.f90 @@ -1,5 +1,8 @@ -subroutine watterson(c,npts,fs,delay,fspread)
-
+subroutine watterson(c,npts,nsig,fs,delay,fspread)
+!
+! npts is the total length of the simulated data vector
+! nsig is the number of points that are occupied by signal
+!
complex c(0:npts-1)
complex c2(0:npts-1)
complex cs1(0:npts-1)
@@ -55,7 +58,7 @@ subroutine watterson(c,npts,fs,delay,fspread) ! write(61,3001) i/12000.0,c(i)
!3001 format(3f12.6)
enddo
- rms=sqrt(sq/npts)
+ rms=sqrt(sq/nsig)
c=c/rms
return
|
