mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-10 06:22:15 -05:00
Oops! Forgot to include spec64.f90.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6950 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f5737348fe
commit
24fb9b9d56
33
lib/spec64.f90
Normal file
33
lib/spec64.f90
Normal file
@ -0,0 +1,33 @@
|
||||
subroutine spec64(c0,npts2,jpk,s3a)
|
||||
|
||||
parameter (NSPS=2304) !Samples per symbol at 4000 Hz
|
||||
complex c0(0:360000) !Complex spectrum of dd()
|
||||
complex cs(0:NSPS-1) !Complex symbol spectrum
|
||||
real s3a(0:63,1:63) !Synchronized symbol spectra
|
||||
|
||||
nfft4=221184
|
||||
c0(npts2:)=0.
|
||||
call four2a(c0,nfft4,1,-1,1) !Forward c2c
|
||||
! nsubmode=1
|
||||
! ndown=16/nsubmode
|
||||
ndown=16
|
||||
nfft5=nfft4/ndown
|
||||
npts3=npts2/ndown
|
||||
call four2a(c0,nfft5,1,1,1) !Inverse c2c, downsampled
|
||||
|
||||
nfft6=nsps/ndown
|
||||
jpkd=nint(float(jpk)/ndown)
|
||||
do j=1,63
|
||||
jj=j+7 !Skip first Costas array
|
||||
if(j.ge.32) jj=j+14 !Skip middle Costas array
|
||||
ja=jpkd + (jj-1)*nfft6
|
||||
jb=ja+nfft6-1
|
||||
cs(0:nfft6-1)=1.3e-8*c0(ja:jb)
|
||||
call four2a(cs,nfft6,1,-1,1)
|
||||
do i=0,63
|
||||
s3a(i,j)=real(cs(i))**2 + aimag(cs(i))**2
|
||||
enddo
|
||||
enddo
|
||||
|
||||
return
|
||||
end subroutine spec64
|
Loading…
Reference in New Issue
Block a user