diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/testfast9.f90 | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/testfast9.f90')
| -rwxr-xr-x | lib/testfast9.f90 | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/lib/testfast9.f90 b/lib/testfast9.f90 index eb08fb78..0315241f 100755 --- a/lib/testfast9.f90 +++ b/lib/testfast9.f90 @@ -1,42 +1,42 @@ -program testfast9
-
- parameter (NMAX=30*12000)
- 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 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
+program testfast9 + + parameter (NMAX=30*12000) + 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 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 |
