summaryrefslogtreecommitdiff
path: root/lib/ana64.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
committerChristoph Berg <myon@debian.org>2021-02-03 22:54:50 +0100
commit1c4a8c9374cacfc002e47c8e3bb824e82aa8441c (patch)
tree13b31e80d276b67cca79f8077efbba2ad3863f34 /lib/ana64.f90
parent3209ca0e2d4243c861c3d1d6022ba1da4f9f2fc8 (diff)
New upstream version 2.4.0~rc1+repackupstream/2.4.0_rc1+repack
Diffstat (limited to 'lib/ana64.f90')
-rw-r--r--lib/ana64.f9018
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/ana64.f90 b/lib/ana64.f90
index 5681ee17..f7586756 100644
--- a/lib/ana64.f90
+++ b/lib/ana64.f90
@@ -1,22 +1,18 @@
-subroutine ana64(dd,npts,c0)
+subroutine ana64(iwave,npts,c0)
use timer_module, only: timer
- parameter (NMAX=60*12000) !Max size of raw data at 12000 Hz
- parameter (NSPS=3456) !Samples per symbol at 6000 Hz
- parameter (NSPC=7*NSPS) !Samples per Costas array
- real dd(NMAX) !Raw data
- complex c0(0:720000) !Complex spectrum of dd()
+ integer*2 iwave(npts) !Raw data at 12000 Hz
+ complex c0(0:npts-1) !Complex data at 6000 Hz
save
- nfft1=672000
+ nfft1=npts
nfft2=nfft1/2
df1=12000.0/nfft1
- fac=2.0/nfft1
- c0(0:npts-1)=fac*dd(1:npts)
- c0(npts:nfft1)=0.
+ fac=2.0/(32767.0*nfft1)
+ c0(0:npts-1)=fac*iwave(1:npts)
call four2a(c0,nfft1,1,-1,1) !Forward c2c FFT
- c0(nfft2/2+1:nfft2)=0.
+ c0(nfft2/2+1:nfft2-1)=0.
c0(0)=0.5*c0(0)
call four2a(c0,nfft2,1,1,1) !Inverse c2c FFT; c0 is analytic sig