diff options
| author | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2026-04-12 08:46:47 -0700 |
| commit | cd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch) | |
| tree | 5a622ec4193e9bc899f6499f936848a661be29cb /lib/spec9f.f90 | |
| parent | 558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff) | |
| parent | 291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff) | |
Merge branch 'debian/latest' into debian/trixie-backports
Diffstat (limited to 'lib/spec9f.f90')
| -rw-r--r--[-rwxr-xr-x] | lib/spec9f.f90 | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/spec9f.f90 b/lib/spec9f.f90 index 5f4c3ae6..96dac29c 100755..100644 --- a/lib/spec9f.f90 +++ b/lib/spec9f.f90 @@ -1,30 +1,30 @@ -subroutine spec9f(id2,npts,nsps,s1,jz,nq)
-
-! Compute symbol spectra at quarter-symbol steps.
-
- integer*2 id2(0:npts)
- real s1(nq,jz)
- real x(960)
- complex c(0:480)
- equivalence (x,c)
-
- nfft=2*nsps !FFTs at twice the symbol length
- nh=nfft/2
- do j=1,jz
- ia=(j-1)*nsps/4
- ib=ia+nsps-1
- if(ib.gt.npts) exit
- x(1:nh)=id2(ia:ib)
- x(nh+1:)=0.
- call four2a(x,nfft,1,-1,0) !r2c
- k=mod(j-1,340)+1
- do i=1,NQ
- s1(i,j)=1.e-10*(real(c(i))**2 + aimag(c(i))**2)
- enddo
- enddo
-
-!### Reference spectrum should be applied here (or possibly earlier?) ###
-!### Normalize so that rms (or level?) is 1.0 ? ###
-
- return
-end subroutine spec9f
+subroutine spec9f(id2,npts,nsps,s1,jz,nq) + +! Compute symbol spectra at quarter-symbol steps. + + integer*2 id2(0:npts) + real s1(nq,jz) + real x(960) + complex c(0:480) + equivalence (x,c) + + nfft=2*nsps !FFTs at twice the symbol length + nh=nfft/2 + do j=1,jz + ia=(j-1)*nsps/4 + ib=ia+nsps-1 + if(ib.gt.npts) exit + x(1:nh)=id2(ia:ib) + x(nh+1:)=0. + call four2a(x,nfft,1,-1,0) !r2c + k=mod(j-1,340)+1 + do i=1,NQ + s1(i,j)=1.e-10*(real(c(i))**2 + aimag(c(i))**2) + enddo + enddo + +!### Reference spectrum should be applied here (or possibly earlier?) ### +!### Normalize so that rms (or level?) is 1.0 ? ### + + return +end subroutine spec9f |
