summaryrefslogtreecommitdiff
path: root/lib/ft8/ft8_downsample.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2024-09-30 22:36:16 +0200
committerChristoph Berg <myon@debian.org>2024-09-30 22:36:16 +0200
commitd63019216a0d7fcd61cee340c2d93943f9b87001 (patch)
treebd2fae5f3af89aaa9124ca94c599f5f6a9fd4be3 /lib/ft8/ft8_downsample.f90
parent3d4c94b2d34f6d5d2af0a3783c36e9a5c8003392 (diff)
parent4320ce238aae1fe87fc9f379cdd816e9317885fa (diff)
Update upstream source from tag 'upstream/2.7.0_rc7+repack'
Update to upstream version '2.7.0~rc7+repack' with Debian dir beb94aea4d00d695ab2461c95f96921f8f4cb149
Diffstat (limited to 'lib/ft8/ft8_downsample.f90')
-rwxr-xr-xlib/ft8/ft8_downsample.f909
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ft8/ft8_downsample.f90 b/lib/ft8/ft8_downsample.f90
index f3552258..a57b5324 100755
--- a/lib/ft8/ft8_downsample.f90
+++ b/lib/ft8/ft8_downsample.f90
@@ -8,10 +8,10 @@ subroutine ft8_downsample(dd,newdat,f0,c1)
logical newdat,first
complex c1(0:NFFT2-1)
complex cx(0:NFFT1/2)
- real dd(NMAX),x(NFFT1),taper(0:100)
- equivalence (x,cx)
+ real dd(NMAX),x(NFFT1+2),taper(0:100)
data first/.true./
- save cx,first,taper
+ save x,cx,first,taper
+ equivalence (x,cx)
if(first) then
pi=4.0*atan(1.0)
@@ -23,11 +23,10 @@ subroutine ft8_downsample(dd,newdat,f0,c1)
if(newdat) then
! Data in dd have changed, recompute the long FFT
x(1:NMAX)=dd
- x(NMAX+1:NFFT1)=0. !Zero-pad the x array
+ x(NMAX+1:NFFT1+2)=0. !Zero-pad the x array
call four2a(cx,NFFT1,1,-1,0) !r2c FFT to freq domain
newdat=.false.
endif
-
df=12000.0/NFFT1
baud=12000.0/NSPS
i0=nint(f0/df)