summaryrefslogtreecommitdiff
path: root/lib/ft8/watterson.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2019-04-29 22:08:59 +0200
committerChristoph Berg <myon@debian.org>2019-04-29 22:08:59 +0200
commitb7238399ea4f1ca51d8f7b8f9220af3da0913edf (patch)
tree9716c5c0a793b2f7cda83e9d8f840095a0e9358e /lib/ft8/watterson.f90
parent200de07a95209a55d6019ba87f0abc78d302bf4c (diff)
New upstream version 2.1.0~rc5+repackupstream/2.1.0_rc5+repack
Diffstat (limited to 'lib/ft8/watterson.f90')
-rw-r--r--lib/ft8/watterson.f906
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ft8/watterson.f90 b/lib/ft8/watterson.f90
index a1131d7b..7c3aa35d 100644
--- a/lib/ft8/watterson.f90
+++ b/lib/ft8/watterson.f90
@@ -46,7 +46,11 @@ subroutine watterson(c,npts,nsig,fs,delay,fspread)
endif
nshift=nint(0.001*delay*fs)
- c2(0:npts-1)=cshift(c(0:npts-1),nshift)
+ if(delay.gt.0.0) then
+ c2(0:npts-1)=cshift(c(0:npts-1),-nshift) !negative shifts are right shifts
+ else
+ c2(0:npts-1)=0.0
+ endif
sq=0.
do i=0,npts-1
if(nonzero.gt.1) then