summaryrefslogtreecommitdiff
path: root/lib/testEchoCall.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/testEchoCall.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/testEchoCall.f90')
-rw-r--r--[-rwxr-xr-x]lib/testEchoCall.f9096
1 files changed, 48 insertions, 48 deletions
diff --git a/lib/testEchoCall.f90 b/lib/testEchoCall.f90
index 71f40bff..72059f7f 100755..100644
--- a/lib/testEchoCall.f90
+++ b/lib/testEchoCall.f90
@@ -1,48 +1,48 @@
-program testEchoCall
-
- parameter (NSPS=4096,NH=NSPS/2,NZ=3*12000)
- integer*2 iwave(NZ) !Raw data, 12000 Hz sample rate
- integer ihdr(11)
- integer*1 itone(6)
- character*120 fname
- character*6 rxcall,hhmmss
- common/echocom/nclearave,nsum,blue(4096),red(4096)
- common/echocom2/fspread_self,fspread_dx
-
- narg=iargc()
- if(narg.lt.1) then
- print*,'Usage: testEchoCall fname1 [fname2, ...]'
- go to 999
- endif
-
- write(*,1000)
-1000 format(' UTC Hour Level Doppler Width N Q DF' &
- ' SNR dBerr Message'/82('-'))
-
- nclearave=1
- navg=10
- nauto=1
- nqual=0
- do ifile=1,narg
- call getarg(ifile,fname)
- open(10,file=trim(fname),access='stream',status='unknown')
- read(10) ihdr,iwave
- close(10)
-
-! Retrieve params known at time of transmissiion and saved in iwave
- call save_echo_params(nDop,nDopAudio,nfrit,f1,fspread,ndf,itone,iwave,-1)
- fspread_self=fspread
-
- call avecho(iwave,0,nfrit,ndf,nauto,navg,nqual,f1,xlevel,snrdb,db_err,dfreq, &
- width,bDiskData,bEchoCall,txcall,rxcall)
- i1=index(fname,'.wav')
- hhmmss=fname(i1-6:i1-1)
- read(hhmmss,'(3i2)') ih,im,is
- hour=ih + im/60.0 + is/3600.0
- write(*,1110) hhmmss,hour,xlevel,ndop,fspread,nsum,nqual,nint(dfreq), &
- snrdb,db_err,rxcall
-1110 format(a6,2x,f7.4,2x,f5.2,1x,i7,1x,f7.1,1x,i5,1x,i5,1x,i6,1x,f6.1,1x,f7.1,3x,a6)
- nclearave=0
- enddo
-
-999 end program testEchoCall
+program testEchoCall
+
+ parameter (NSPS=4096,NH=NSPS/2,NZ=3*12000)
+ integer*2 iwave(NZ) !Raw data, 12000 Hz sample rate
+ integer ihdr(11)
+ integer*1 itone(6)
+ character*120 fname
+ character*6 rxcall,hhmmss
+ common/echocom/nclearave,nsum,blue(4096),red(4096)
+ common/echocom2/fspread_self,fspread_dx
+
+ narg=iargc()
+ if(narg.lt.1) then
+ print*,'Usage: testEchoCall fname1 [fname2, ...]'
+ go to 999
+ endif
+
+ write(*,1000)
+1000 format(' UTC Hour Level Doppler Width N Q DF' &
+ ' SNR dBerr Message'/82('-'))
+
+ nclearave=1
+ navg=10
+ nauto=1
+ nqual=0
+ do ifile=1,narg
+ call getarg(ifile,fname)
+ open(10,file=trim(fname),access='stream',status='unknown')
+ read(10) ihdr,iwave
+ close(10)
+
+! Retrieve params known at time of transmissiion and saved in iwave
+ call save_echo_params(nDop,nDopAudio,nfrit,f1,fspread,ndf,itone,iwave,-1)
+ fspread_self=fspread
+
+ call avecho(iwave,0,nfrit,ndf,nauto,navg,nqual,f1,xlevel,snrdb,db_err,dfreq, &
+ width,bDiskData,bEchoCall,txcall,rxcall)
+ i1=index(fname,'.wav')
+ hhmmss=fname(i1-6:i1-1)
+ read(hhmmss,'(3i2)') ih,im,is
+ hour=ih + im/60.0 + is/3600.0
+ write(*,1110) hhmmss,hour,xlevel,ndop,fspread,nsum,nqual,nint(dfreq), &
+ snrdb,db_err,rxcall
+1110 format(a6,2x,f7.4,2x,f5.2,1x,i7,1x,f7.1,1x,i5,1x,i5,1x,i6,1x,f6.1,1x,f7.1,3x,a6)
+ nclearave=0
+ enddo
+
+999 end program testEchoCall