summaryrefslogtreecommitdiff
path: root/lib/fsk4hf/genft8refsig.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/fsk4hf/genft8refsig.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/fsk4hf/genft8refsig.f90')
-rw-r--r--lib/fsk4hf/genft8refsig.f9022
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/fsk4hf/genft8refsig.f90 b/lib/fsk4hf/genft8refsig.f90
new file mode 100644
index 00000000..5bf4885c
--- /dev/null
+++ b/lib/fsk4hf/genft8refsig.f90
@@ -0,0 +1,22 @@
+subroutine genft8refsig(itone,cref,f0)
+ complex cref(79*1920)
+ integer itone(79)
+ real*8 twopi,phi,dphi,dt,xnsps
+ data twopi/0.d0/
+ save twopi
+ if( twopi .lt. 0.1 ) twopi=8.d0*atan(1.d0)
+
+ xnsps=1920.d0
+ dt=1.d0/12000.d0
+ phi=0.d0
+ k=1
+ do i=1,79
+ dphi=twopi*(f0*dt+itone(i)/xnsps)
+ do is=1,1920
+ cref(k)=cmplx(cos(phi),sin(phi))
+ phi=mod(phi+dphi,twopi)
+ k=k+1
+ enddo
+ enddo
+ return
+end subroutine genft8refsig