diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/superfox/sfox_ana.f90 | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/superfox/sfox_ana.f90')
| -rwxr-xr-x | lib/superfox/sfox_ana.f90 | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/superfox/sfox_ana.f90 b/lib/superfox/sfox_ana.f90 index 5983d31b..bc9ea6cf 100755 --- a/lib/superfox/sfox_ana.f90 +++ b/lib/superfox/sfox_ana.f90 @@ -1,17 +1,17 @@ -subroutine sfox_ana(dd,npts,c0,npts2)
-
- real dd(npts) !Raw data at 12000 Hz
- complex c0(0:npts2-1) !Complex data at 12000 Hz
- save
-
- nfft1=npts
- nfft2=nfft1
- fac=2.0/(32767.0*nfft1)
- c0(0:npts-1)=fac*dd(1:npts)
- call four2a(c0,nfft1,1,-1,1) !Forward c2c FFT
- c0(nfft2/2+1:nfft2-1)=0. !Remove negative frequencies
- c0(0)=0.5*c0(0) !Scale the DC term to 1/2
- call four2a(c0,nfft2,1,1,1) !Inverse c2c FFT; c0 is analytic sig
-
- return
-end subroutine sfox_ana
+subroutine sfox_ana(dd,npts,c0,npts2) + + real dd(npts) !Raw data at 12000 Hz + complex c0(0:npts2-1) !Complex data at 12000 Hz + save + + nfft1=npts + nfft2=nfft1 + fac=2.0/(32767.0*nfft1) + c0(0:npts-1)=fac*dd(1:npts) + call four2a(c0,nfft1,1,-1,1) !Forward c2c FFT + c0(nfft2/2+1:nfft2-1)=0. !Remove negative frequencies + c0(0)=0.5*c0(0) !Scale the DC term to 1/2 + call four2a(c0,nfft2,1,1,1) !Inverse c2c FFT; c0 is analytic sig + + return +end subroutine sfox_ana |
