diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/ana932.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/ana932.f90')
| -rwxr-xr-x | lib/ana932.f90 | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/ana932.f90 b/lib/ana932.f90 index 2665b7a1..973f7ca1 100755 --- a/lib/ana932.f90 +++ b/lib/ana932.f90 @@ -1,21 +1,21 @@ -subroutine ana932(dat,npts0,cdat,npts) - - real dat(npts0) - complex cdat(262145) - - n=log(float(npts0))/log(2.0) - nfft1=2**(n+1) - nfft2=9*nfft1/32 - df932=11025.0/nfft1 - fac=2.0/nfft1 - do i=1,npts0/2 - cdat(i)=fac*cmplx(dat(2*i-1),dat(2*i)) - enddo - cdat(npts0/2+1:nfft1/2)=0. - call four2a(cdat,nfft1,1,-1,0) !Forward r2c FFT - call four2a(cdat,nfft2,1,1,1) !Inverse c2c FFT - npts=npts0*9.0/32.0 !Downsampled data length - npts2=npts - - return -end subroutine ana932 +subroutine ana932(dat,npts0,cdat,npts)
+
+ real dat(npts0)
+ complex cdat(262145)
+
+ n=log(float(npts0))/log(2.0)
+ nfft1=2**(n+1)
+ nfft2=9*nfft1/32
+ df932=11025.0/nfft1
+ fac=2.0/nfft1
+ do i=1,npts0/2
+ cdat(i)=fac*cmplx(dat(2*i-1),dat(2*i))
+ enddo
+ cdat(npts0/2+1:nfft1/2)=0.
+ call four2a(cdat,nfft1,1,-1,0) !Forward r2c FFT
+ call four2a(cdat,nfft2,1,1,1) !Inverse c2c FFT
+ npts=npts0*9.0/32.0 !Downsampled data length
+ npts2=npts
+
+ return
+end subroutine ana932
|
