diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:26 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-04-27 12:26:26 +0100 |
| commit | 93f7198f9c2864ef9630cc0cc9e46d6cc1933aa9 (patch) | |
| tree | 74e80fba0ae76af8a4f9d5d1b6c8c8de8e383480 /lib/cablog.f90 | |
| parent | ffea9660ba79a513401639a2f5d90e2fdc190fb8 (diff) | |
New upstream version 2.7.0~rc4+repackupstream/2.7.0_rc4+repack
Diffstat (limited to 'lib/cablog.f90')
| -rwxr-xr-x | lib/cablog.f90 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/cablog.f90 b/lib/cablog.f90 index 5908fc35..08fecbad 100755 --- a/lib/cablog.f90 +++ b/lib/cablog.f90 @@ -2,13 +2,18 @@ program cablog character*100 line,infile,outfile
character cband*4,cmode*2,cdate*10,cutc*4,callsign*10,mycall*10
- character csent*3,crcvd*3,dsent*3,drcvd*3
+ character csent*4,crcvd*4,dsent*4,drcvd*4,g1*4
character*3 cmo(12)
integer icomma(20)
logical map65
+ logical isgrid,gridx
data cmo/'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep', &
'Oct','Nov','Dec'/
+ isgrid(g1)=g1(1:1).ge.'A' .and. g1(1:1).le.'R' .and. g1(2:2).ge.'A' .and. &
+ g1(2:2).le.'R' .and. g1(3:3).ge.'0' .and. g1(3:3).le.'9' .and. &
+ g1(4:4).ge.'0' .and. g1(4:4).le.'9' .and. g1(1:4).ne.'RR73'
+
nargs=iargc()
if(nargs.ne.4) then
print*,"Program cablog converts file 'wsjtx.log' written by WSJT-X"
@@ -25,6 +30,7 @@ program cablog call getarg(1,mycall)
outfile=trim(mycall)//'.log'
call getarg(2,dsent)
+ gridx=isgrid(dsent)
call getarg(3,drcvd)
call getarg(4,infile)
open(10,file=trim(infile),status='old')
@@ -115,9 +121,13 @@ program cablog crcvd=line(icomma(9)+1:icomma(10)-1)
endif
endif
+ if(gridx) then
+ csent=dsent
+ crcvd=line(icomma(5)+1:icomma(6)-1)
+ endif
write(12,1030) cband,cmode,cdate,cutc,mycall,csent,callsign,crcvd
-1030 format('QSO: ',a4,1x,a2,1x,a10,1x,a4,1x,a6,1x,a3,5x,a10,1x,a3)
+1030 format('QSO: ',a4,1x,a2,1x,a10,1x,a4,1x,a6,1x,a4,4x,a10,1x,a4)
enddo
900 write(12,1900)
|
