| 
									
										
										
										
											2016-07-21 20:30:04 +00:00
										 |  |  | program qratest
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   parameter (NMAX=60*12000) 
 | 
					
						
							|  |  |  |   real dd(NMAX)
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   character arg*8,mycall*12,hiscall*12,hisgrid*6,decoded*22
 | 
					
						
							| 
									
										
										
										
											2016-12-08 16:21:04 +00:00
										 |  |  |   character c*1
 | 
					
						
							| 
									
										
										
										
											2016-12-15 18:42:33 +00:00
										 |  |  |   logical loop
 | 
					
						
							| 
									
										
										
										
											2016-07-22 16:56:08 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   nargs=iargc()
 | 
					
						
							| 
									
										
										
										
											2016-12-08 14:42:50 +00:00
										 |  |  |   if(nargs.lt.1 .or. nargs.gt.4) then
 | 
					
						
							|  |  |  |      print*,'Usage: qratest nfile [sync f0 fTol]'
 | 
					
						
							| 
									
										
										
										
											2016-07-22 16:56:08 +00:00
										 |  |  |      go to 999
 | 
					
						
							|  |  |  |   endif
 | 
					
						
							|  |  |  |   call getarg(1,arg)
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   read(arg,*) nfile
 | 
					
						
							| 
									
										
										
										
											2016-12-15 18:42:33 +00:00
										 |  |  |   loop=arg(1:1).eq.'+'
 | 
					
						
							| 
									
										
										
										
											2016-12-08 14:42:50 +00:00
										 |  |  |   minsync0=-1
 | 
					
						
							|  |  |  |   nfqso0=-1
 | 
					
						
							|  |  |  |   ntol0=-1
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   if(nargs.gt.1) then
 | 
					
						
							|  |  |  |      call getarg(2,arg)
 | 
					
						
							| 
									
										
										
										
											2016-12-08 14:42:50 +00:00
										 |  |  |      read(arg,*) minsync0
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |      call getarg(3,arg)
 | 
					
						
							| 
									
										
										
										
											2016-12-08 14:42:50 +00:00
										 |  |  |      read(arg,*) nfqso0
 | 
					
						
							|  |  |  |      call getarg(4,arg)
 | 
					
						
							|  |  |  |      read(arg,*) ntol0
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   endif
 | 
					
						
							| 
									
										
										
										
											2016-12-05 21:00:13 +00:00
										 |  |  |   ndepth=3
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   nft=99
 | 
					
						
							|  |  |  |   
 | 
					
						
							|  |  |  |   open(60,file='qra64_data.bin',access='stream')
 | 
					
						
							| 
									
										
										
										
											2016-12-05 21:00:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |   do ifile=1,999
 | 
					
						
							|  |  |  |      read(60,end=999) dd,npts,nutc,nf1,nf2,nfqso,ntol,mode64,minsync,ndepth, &
 | 
					
						
							|  |  |  |           mycall,hiscall,hisgrid
 | 
					
						
							|  |  |  |      if(ifile.lt.nfile) cycle
 | 
					
						
							| 
									
										
										
										
											2016-12-08 14:42:50 +00:00
										 |  |  |      
 | 
					
						
							|  |  |  |      if(minsync0.ne.-1) minsync=minsync0
 | 
					
						
							|  |  |  |      if(nfqso0.ne.-1) nfqso=nfqso0
 | 
					
						
							|  |  |  |      if(ntol0.ne.-1) ntol=ntol0
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-19 13:13:33 -04:00
										 |  |  |      call qra64a(dd,npts,nf1,nf2,nfqso,ntol,mode64,minsync,ndepth,      &
 | 
					
						
							| 
									
										
										
										
											2016-12-05 21:00:13 +00:00
										 |  |  |           mycall,hiscall,hisgrid,sync,nsnr,dtx,nfreq,decoded,nft)
 | 
					
						
							| 
									
										
										
										
											2016-12-08 13:15:44 +00:00
										 |  |  |      c='a'
 | 
					
						
							|  |  |  |      if(mode64.eq.2) c='b'
 | 
					
						
							|  |  |  |      if(mode64.eq.4) c='c'
 | 
					
						
							|  |  |  |      if(mode64.eq.8) c='d'
 | 
					
						
							|  |  |  |      if(mode64.eq.16) c='e'
 | 
					
						
							| 
									
										
										
										
											2016-12-08 16:21:04 +00:00
										 |  |  |      write(*,1000) ifile,c,nutc,nsnr,dtx,nfreq,decoded,nft-100,sync-3.4
 | 
					
						
							|  |  |  | 1000 format(i4,1x,a1,1x,i4.4,i4,f6.2,i5,1x,a22,i3,f6.2)
 | 
					
						
							| 
									
										
										
										
											2016-12-15 18:42:33 +00:00
										 |  |  |      if(ifile.eq.nfile .and. (.not.loop)) exit
 | 
					
						
							| 
									
										
										
										
											2016-07-21 20:30:04 +00:00
										 |  |  |   enddo
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 999 end program qratest
 |