diff options
Diffstat (limited to 'lib/ft8/watterson.f90')
| -rw-r--r-- | lib/ft8/watterson.f90 | 6 |
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
|
