mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 00:51:56 -05:00
8fb483a200
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3462 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
26 lines
496 B
Fortran
26 lines
496 B
Fortran
subroutine twkfreq65(c4aa,n5,a)
|
|
|
|
complex c4aa(n5)
|
|
real a(5)
|
|
complex w,wstep
|
|
data twopi/6.283185307/
|
|
|
|
! Apply AFC corrections to the c4aa data
|
|
w=1.0
|
|
wstep=1.0
|
|
x0=0.5*(n5+1)
|
|
s=2.0/n5
|
|
do i=1,n5
|
|
x=s*(i-x0)
|
|
if(mod(i,100).eq.1) then
|
|
p2=1.5*x*x - 0.5
|
|
dphi=(a(1) + x*a(2) + p2*a(3)) * (twopi/1378.125)
|
|
wstep=cmplx(cos(dphi),sin(dphi))
|
|
endif
|
|
w=w*wstep
|
|
c4aa(i)=w*c4aa(i)
|
|
enddo
|
|
|
|
return
|
|
end subroutine twkfreq65
|