summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2021-11-05 07:29:09 -0700
committertony mancill <tmancill@debian.org>2021-11-05 07:29:09 -0700
commite05d4def60e25e7fed87ff67ce5a97df24fc945b (patch)
treec266fd15dab6c7914a1f6f27feee35be80c6b8ab /lib
parent27d0d660257d9dcdab5c5ca8addd01cc10552902 (diff)
New upstream version 2.5.2+repackupstream/2.5.2+repack
Diffstat (limited to 'lib')
-rw-r--r--lib/astrosub.f9018
-rw-r--r--lib/q65_decode.f9011
-rw-r--r--lib/qra/q65/q65.f902
-rw-r--r--lib/qra/q65/q65_set_list.f906
4 files changed, 19 insertions, 18 deletions
diff --git a/lib/astrosub.f90 b/lib/astrosub.f90
index 5e7f473f..0ca7b49c 100644
--- a/lib/astrosub.f90
+++ b/lib/astrosub.f90
@@ -4,6 +4,9 @@ module astro_module
private
public :: astrosub
+ logical :: initialized = .false.
+ integer :: azel_extra_lines = 0
+
contains
subroutine astrosub(nyear,month,nday,uth8,freq8,mygrid_cp, &
@@ -28,11 +31,18 @@ contains
character(len=6) :: mygrid, hisgrid
character(len=:), allocatable :: AzElFileName
character(len=1) :: c1
- integer :: ih, im, imin, is, isec, nfreq, nRx
+ character(len=32) :: envvar
+ integer :: ih, im, imin, is, isec, nfreq, env_status
real(dp) :: AzAux, ElAux, dbMoon8, dfdt, dfdt0, doppler, doppler00, HA8, sd8, xlst8
character*256 jpleph_file_name
common/jplcom/jpleph_file_name
+ if (.not.initialized) then
+ call get_environment_variable ('WSJT_AZEL_EXTRA_LINES', envvar, status=env_status)
+ if (env_status.eq.0) read (envvar, *, iostat=env_status) azel_extra_lines
+ initialized = .true.
+ end if
+
mygrid = mygrid_cp
hisgrid = hisgrid_cp
AzElFileName = C_string_value (AzElFileName_cp)
@@ -51,10 +61,8 @@ contains
is=mod(isec,60)
open(15,file=AzElFileName,status='unknown',err=900)
c1='R'
- nRx=1
if(bTx) then
c1='T'
- nRx=0
endif
AzAux=0.
ElAux=0.
@@ -65,13 +73,13 @@ contains
ih,im,is,AzSun8,ElSun8, &
ih,im,is,AzAux,ElAux, &
nfreq,doppler,dfdt,doppler00,dfdt0,c1
- ! TXFirst,TRPeriod,poloffset,Dgrd,xnr,ave,rms,nRx
+ if (azel_extra_lines.ge.1) write(15, 1020, err=10) poloffset8,xnr8,Dgrd8
1010 format( &
i2.2,':',i2.2,':',i2.2,',',f5.1,',',f5.1,',Moon'/ &
i2.2,':',i2.2,':',i2.2,',',f5.1,',',f5.1,',Sun'/ &
i2.2,':',i2.2,':',i2.2,',',f5.1,',',f5.1,',Source'/ &
i5,',',f8.1,',',f8.2,',',f8.1,',',f8.2,',Doppler, ',a1)
- ! i1,',',i3,',',f8.1,','f8.1,',',f8.1,',',f12.3,',',f12.3,',',i1,',RPol')
+1020 format(f8.1,','f8.1,',',f8.1,',Pol')
10 close(15)
go to 999
diff --git a/lib/q65_decode.f90 b/lib/q65_decode.f90
index 087bc0ce..00022c58 100644
--- a/lib/q65_decode.f90
+++ b/lib/q65_decode.f90
@@ -75,9 +75,7 @@ contains
logical single_decode,lagain
complex, allocatable :: c00(:) !Analytic signal, 6000 Sa/s
complex, allocatable :: c0(:) !Analytic signal, 6000 Sa/s
-
-!w3sz added
- integer stageno
+ integer stageno !Added by W3SZ
stageno=0
! Start by setting some parameters and allocating storage for large arrays
@@ -96,7 +94,7 @@ contains
nfft1=ntrperiod*12000
nfft2=ntrperiod*6000
npasses=1
-
+ if(lagain) ndepth=ior(ndepth,3) !Use 'Deep' for manual Q65 decodes
dxcall13=hiscall ! initialize for use in packjt77
mycall13=mycall
@@ -241,9 +239,8 @@ contains
nused=navg(iseq)
endif
-100 stageno = 5
-
- if(idec.lt.0) then
+100 if(idec.lt.0 .and. max_drift.eq.50) then
+ stageno = 5
call timer('q65_dec0',0)
! Call top-level routine in q65 module: establish sync and try for a
! q3 or q0 decode.
diff --git a/lib/qra/q65/q65.f90 b/lib/qra/q65/q65.f90
index 1bd51f77..349e38c9 100644
--- a/lib/qra/q65/q65.f90
+++ b/lib/qra/q65/q65.f90
@@ -268,7 +268,7 @@ subroutine q65_dec0(iavg,nutc,iwave,ntrperiod,nfqso,ntol,ndepth,lclearave, &
idec=5
endif
- endif ! if(idec.lt.0 .and. maxdrift.eq.50 .and. stageno.eq.5)
+ endif ! if(idec.lt.0 .and. max_drift.eq.50 .and. stageno.eq.5)
return
end subroutine q65_dec0
diff --git a/lib/qra/q65/q65_set_list.f90 b/lib/qra/q65/q65_set_list.f90
index acc7091e..22d501a5 100644
--- a/lib/qra/q65/q65_set_list.f90
+++ b/lib/qra/q65/q65_set_list.f90
@@ -22,12 +22,8 @@ subroutine q65_set_list(mycall,hiscall,hisgrid,codewords,ncw)
if(i.eq.1 .or. i.ge.6) msg='<'//trim(mycall)//'> '//trim(hiscall)
if(i.ge.2 .and. i.le.4) msg=trim(mycall)//' <'//trim(hiscall)//'>'
else if(.not.his_std) then
- if(i.le.4) msg='<'//trim(mycall)//'> '//trim(hiscall)
+ if(i.le.4 .or. i.eq.6) msg='<'//trim(mycall)//'> '//trim(hiscall)
if(i.ge.7) msg=trim(mycall)//' <'//trim(hiscall)//'>'
- if(i.eq.6) then
- msg='TNX 73 GL'
- go to 10
- endif
endif
j0=len(trim(msg))+2
if(i.eq.2) msg(j0:j0+2)='RRR'