| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | ! Fortran logical units used in WSJT6
 | 
					
						
							|  |  |  | !
 | 
					
						
							| 
									
										
										
										
											2007-12-27 18:11:51 +00:00
										 |  |  | !   10
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | !   11  decoded.txt
 | 
					
						
							|  |  |  | !   12  decoded.ave
 | 
					
						
							|  |  |  | !   13  tsky.dat
 | 
					
						
							|  |  |  | !   14  azel.dat
 | 
					
						
							| 
									
										
										
										
											2007-11-02 20:05:44 +00:00
										 |  |  | !   15  
 | 
					
						
							| 
									
										
										
										
											2007-12-27 18:11:51 +00:00
										 |  |  | !   16
 | 
					
						
							|  |  |  | !   17  saved *.tf2 files
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | !   18  test file to be transmitted (wsjtgen.f90)
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  | !   19  messages.txt
 | 
					
						
							|  |  |  | !   20  bandmap.txt
 | 
					
						
							| 
									
										
										
										
											2007-06-24 23:26:17 +00:00
										 |  |  | !   21  ALL65.TXT
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | !   22  kvasd.dat
 | 
					
						
							|  |  |  | !   23  CALL3.TXT
 | 
					
						
							| 
									
										
										
										
											2007-06-25 20:18:43 +00:00
										 |  |  | !   24  meas24.dat
 | 
					
						
							|  |  |  | !   25  meas25.dat
 | 
					
						
							| 
									
										
										
										
											2007-11-01 19:03:01 +00:00
										 |  |  | !   26  tmp26.txt
 | 
					
						
							| 
									
										
										
										
											2007-07-09 19:27:58 +00:00
										 |  |  | !   27  dphi.txt
 | 
					
						
							| 
									
										
										
										
											2007-12-27 18:11:51 +00:00
										 |  |  | !   28  
 | 
					
						
							| 
									
										
										
										
											2007-11-02 14:51:39 +00:00
										 |  |  | !   29  debug.txt
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | !------------------------------------------------ ftn_init
 | 
					
						
							|  |  |  | subroutine ftn_init
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   character*1 cjunk
 | 
					
						
							|  |  |  |   include 'gcom1.f90'
 | 
					
						
							|  |  |  |   include 'gcom2.f90'
 | 
					
						
							|  |  |  |   include 'gcom3.f90'
 | 
					
						
							|  |  |  |   include 'gcom4.f90'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-07-05 03:49:02 +00:00
										 |  |  | !  print*,'ftn_init.F90 nport=', nport, 'pttport=', pttport
 | 
					
						
							|  |  |  |   i=ptt(nport,pttport,0,iptt)                       !Clear the PTT line
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   addpfx='    '
 | 
					
						
							| 
									
										
										
										
											2007-07-03 17:34:35 +00:00
										 |  |  |   nrw26=0
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   do i=80,1,-1
 | 
					
						
							|  |  |  |      if(AppDir(i:i).ne.' ') goto 1
 | 
					
						
							|  |  |  |   enddo
 | 
					
						
							|  |  |  | 1 iz=i
 | 
					
						
							|  |  |  |   lenappdir=iz
 | 
					
						
							|  |  |  |   call pfxdump(appdir(:iz)//'/prefixes.txt')
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-09-16 14:10:45 +00:00
										 |  |  |   do i=80,1,-1
 | 
					
						
							|  |  |  |      if(AzElDir(i:i).ne.' ') goto 2
 | 
					
						
							|  |  |  |   enddo
 | 
					
						
							|  |  |  | 2 iz2=i
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   open(11,file=appdir(:iz)//'/decoded.txt',status='unknown',               &
 | 
					
						
							|  |  |  |        share='denynone',err=910)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |   open(11,file=appdir(:iz)//'/decoded.txt',status='unknown',               &
 | 
					
						
							|  |  |  |        err=910)
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |   endfile 11
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   open(12,file=appdir(:iz)//'/decoded.ave',status='unknown',               &
 | 
					
						
							|  |  |  |        share='denynone',err=920)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |   open(12,file=appdir(:iz)//'/decoded.ave',status='unknown',               &
 | 
					
						
							|  |  |  |        err=920)
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |   endfile 12
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-09-16 14:10:45 +00:00
										 |  |  |   open(14,file=azeldir(:iz2)//'/azel.dat',status='unknown',                  &
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |        share='denynone',err=930)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-09-16 14:10:45 +00:00
										 |  |  |   open(14,file=azeldir(:iz2)//'/azel.dat',status='unknown',                  &
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |        err=930)
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  |   open(19,file=appdir(:iz)//'/messages.txt',status='unknown',               &
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |        share='denynone',err=911)
 | 
					
						
							| 
									
										
										
										
											2007-01-11 21:25:52 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  |   open(19,file=appdir(:iz)//'/messages.txt',status='unknown',               &
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |        err=911)
 | 
					
						
							| 
									
										
										
										
											2007-01-11 21:25:52 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  |   endfile 19
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  |   open(20,file=appdir(:iz)//'/bandmap.txt',status='unknown',               &
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |        share='denynone',err=912)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  |   open(20,file=appdir(:iz)//'/bandmap.txt',status='unknown',               &
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |        err=912)
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  |   endfile 20
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-06-24 23:26:17 +00:00
										 |  |  |   open(21,file=appdir(:iz)//'/ALL65.TXT',status='unknown',                   &
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |        access='append',share='denynone',err=950)
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-06-24 23:26:17 +00:00
										 |  |  |   open(21,file=appdir(:iz)//'/ALL65.TXT',status='unknown',                   &
 | 
					
						
							| 
									
										
										
										
											2007-06-13 17:05:57 +00:00
										 |  |  | 	access='append',err=950)
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   do i=1,9999999
 | 
					
						
							|  |  |  |      read(21,*,end=10) cjunk
 | 
					
						
							|  |  |  |   enddo
 | 
					
						
							|  |  |  | 10 continue
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   open(22,file=appdir(:iz)//'/kvasd.dat',access='direct',recl=1024,        &
 | 
					
						
							|  |  |  |        status='unknown',share='denynone')
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |   open(22,file=appdir(:iz)//'/kvasd.dat',access='direct',recl=1024,        &
 | 
					
						
							|  |  |  |        status='unknown')
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-06-25 20:18:43 +00:00
										 |  |  |   open(24,file=appdir(:iz)//'/meas24.txt',status='unknown',                 &
 | 
					
						
							| 
									
										
										
										
											2007-01-13 20:21:32 +00:00
										 |  |  |        share='denynone')
 | 
					
						
							| 
									
										
										
										
											2007-06-13 17:05:57 +00:00
										 |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-06-25 20:18:43 +00:00
										 |  |  |   open(24,file=appdir(:iz)//'/meas24.txt',status='unknown')
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-06-25 20:18:43 +00:00
										 |  |  |   open(25,file=appdir(:iz)//'/meas25.txt',status='unknown',                 &
 | 
					
						
							|  |  |  |        share='denynone')
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |   open(25,file=appdir(:iz)//'/meas25.txt',status='unknown')
 | 
					
						
							| 
									
										
										
										
											2007-06-13 17:05:57 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-01-12 21:31:16 +00:00
										 |  |  |   open(26,file=appdir(:iz)//'/tmp26.txt',status='unknown',                 &
 | 
					
						
							|  |  |  |        share='denynone')
 | 
					
						
							| 
									
										
										
										
											2007-06-13 17:05:57 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  |   open(26,file=appdir(:iz)//'/tmp26.txt',status='unknown')
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-01-12 19:56:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-07-09 19:27:58 +00:00
										 |  |  |   open(27,file=appdir(:iz)//'/dphi.txt',status='unknown',                 &
 | 
					
						
							|  |  |  |        share='denynone')
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  |   open(27,file=appdir(:iz)//'/dphi.txt',status='unknown')
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-12-21 18:40:47 +00:00
										 |  |  | #ifdef CVF
 | 
					
						
							| 
									
										
										
										
											2007-11-02 20:05:44 +00:00
										 |  |  |   open(29,file=appdir(:iz)//'/debug.txt',status='unknown',                 &
 | 
					
						
							| 
									
										
										
										
											2007-11-01 19:03:01 +00:00
										 |  |  |        share='denynone')
 | 
					
						
							|  |  |  | #else
 | 
					
						
							| 
									
										
										
										
											2007-11-02 20:05:44 +00:00
										 |  |  |   open(29,file=appdir(:iz)//'/debug.txt',status='unknown')
 | 
					
						
							| 
									
										
										
										
											2007-11-01 19:03:01 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   return
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 910 print*,'Error opening DECODED.TXT'
 | 
					
						
							|  |  |  |   stop
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  | 911 print*,'Error opening messages.txt'
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |   stop
 | 
					
						
							| 
									
										
										
										
											2007-07-02 19:17:07 +00:00
										 |  |  | 912 print*,'Error opening bandmap.txt'
 | 
					
						
							| 
									
										
										
										
											2007-01-17 14:36:54 +00:00
										 |  |  |   stop
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  | 920 print*,'Error opening DECODED.AVE'
 | 
					
						
							|  |  |  |   stop
 | 
					
						
							|  |  |  | 930 print*,'Error opening AZEL.DAT'
 | 
					
						
							|  |  |  |   stop
 | 
					
						
							|  |  |  | 940 print*,'Error opening DEBUG.TXT'
 | 
					
						
							|  |  |  |   stop
 | 
					
						
							| 
									
										
										
										
											2007-06-24 23:26:17 +00:00
										 |  |  | 950 print*,'Error opening ALL65.TXT'
 | 
					
						
							| 
									
										
										
										
											2006-04-17 00:00:23 +00:00
										 |  |  |   stop
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | end subroutine ftn_init
 |