summaryrefslogtreecommitdiff
path: root/lib/ft8.f90
blob: aacff17d6c47e400fddf3c51244a09ff2fa0488a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
program ft8

  integer*2 iwave(15*12000)
  logical lft8apon,lapcqonly,nagain,newdat
  character*12 mycall12,hiscall12
  character*6 hisgrid6
  character arg*8,infile*80
  integer ihdr(11)

  nargs=iargc()
  if(nargs.lt.3) then
     print*,'Usage:   ft8 nfa  nfb ndepth    infile'
     print*,'Example: ft8 200 4000   3  181201_180315.wav'
     go to 999
  endif
  call getarg(1,arg)
  read(arg,*) nfa
  call getarg(2,arg)
  read(arg,*) nfb
  call getarg(3,arg)
  read(arg,*) ndepth
  nfiles=nargs-3

  nQSOProgress=0
  nfqso=1500
  nftx=0
  newdat=.true.
  nutc=0
  ncontest=0
  nagain=.false.
  lft8apon=.false.
  lapcqonly=.false.
  napwid=75
  mycall12='K1ABC'
  hiscall12='W9XYZ'
  hisgrid6='EN37wb'

  do ifile=1,nfiles
     call getarg(3+ifile,infile)
     open(10,file=infile,status='old',access='stream')
     read(10) ihdr,iwave
     close(10)

     call ft8dec(iwave,nQSOProgress,nfqso,nftx,newdat,            &
          nutc,nfa,nfb,ndepth,ncontest,nagain,lft8apon,lapcqonly, &
          napwid,mycall12,hiscall12,hisgrid6)
  enddo

999 end program ft8