diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /lib/fsk4hf/wspr5_downsample.f90 | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/fsk4hf/wspr5_downsample.f90')
| -rw-r--r-- | lib/fsk4hf/wspr5_downsample.f90 | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/fsk4hf/wspr5_downsample.f90 b/lib/fsk4hf/wspr5_downsample.f90 deleted file mode 100644 index 6fdb9021..00000000 --- a/lib/fsk4hf/wspr5_downsample.f90 +++ /dev/null @@ -1,29 +0,0 @@ -subroutine wspr5_downsample(iwave,c)
-
-! Input: i*2 data in iwave() at sample rate 12000 Hz
-! Output: Complex data in c(), sampled at 400 Hz
-
- include 'wsprlf_params.f90'
- parameter (NMAX=300*12000,NFFT2=NMAX/30)
- integer*2 iwave(NMAX)
- complex c(0:NZ-1)
- complex c1(0:NFFT2-1)
- complex cx(0:NMAX/2)
- real x(NMAX)
- equivalence (x,cx)
-
- df=12000.0/NMAX
- x=iwave
- call four2a(x,NMAX,1,-1,0) !r2c FFT to freq domain
- i0=nint(1500.0/df)
- c1(0)=cx(i0)
- do i=1,NFFT2/2
- c1(i)=cx(i0+i)
- c1(NFFT2-i)=cx(i0-i)
- enddo
- c1=c1/NFFT2
- call four2a(c1,NFFT2,1,1,1) !c2c FFT back to time domain
- c=c1(0:NZ-1)
-
- return
-end subroutine wspr5_downsample
|
