diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /lib/spec9f.f90 | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'lib/spec9f.f90')
| -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 96dac29c..5f4c3ae6 100755 --- 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
|
