summaryrefslogtreecommitdiff
path: root/lib/testfast9.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:18:44 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:18:44 +0000
commit368f5331a7641772aa7e0cd1feea57d09a394a36 (patch)
treeb421ac60cc6eb726896ea268ea24e47fc4ce7c88 /lib/testfast9.f90
parent71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff)
parent37f727ac0746fd85504aa46c1f023c09b3eff33a (diff)
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack' with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'lib/testfast9.f90')
-rw-r--r--lib/testfast9.f9042
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/testfast9.f90 b/lib/testfast9.f90
new file mode 100644
index 00000000..391d88e5
--- /dev/null
+++ b/lib/testfast9.f90
@@ -0,0 +1,42 @@
+program testfast9
+
+ parameter (NMAX=359424)
+ integer*2 id2(NMAX)
+ integer narg(0:11)
+ character*80 line(100)
+ character submode*1,infile*80
+
+ nargs=iargc()
+ if(nargs.ne.2) then
+ print*,'Usage: testfast9 submode infile'
+ print*,'Example: testfast9 E /data/VE1SKY/K1JT/JT9E/150806_123300.wav'
+ go to 999
+ endif
+ call getarg(1,submode)
+ call getarg(2,infile)
+
+ open(10,file=infile,access='stream',status='old')
+ read(10) id2(1:22) !Skip 44 header bytes
+ npts=NMAX
+ read(10,end=1) id2(1:npts) !Read the raw data
+
+1 i1=index(infile,'.wav')
+ read(infile(i1-6:i1-1),*) narg(0)
+ narg(1)=NMAX
+ n=ichar(submode)
+ narg(2)=n-ichar('A')
+ if(n.ge.97 .and. n.le.104) narg(2)=n-ichar('a')
+ narg(3)=1
+ narg(4)=0
+ narg(5)=0
+ narg(6)=0
+ narg(7)=29951
+ narg(8)=1
+ narg(9)=102
+ narg(10)=700
+ narg(11)=500
+
+ call fast9(id2,narg,line)
+ print*,line(1)
+
+999 end program testfast9