2017-02-21 20:13:36 +00:00
|
|
|
subroutine analytic(d,npts,nfft,c,pc,beq)
|
2012-07-10 13:44:17 +00:00
|
|
|
|
|
|
|
! Convert real data to analytic signal
|
|
|
|
|
2015-11-18 01:28:12 +00:00
|
|
|
parameter (NFFTMAX=1024*1024)
|
2016-12-22 17:21:23 +00:00
|
|
|
|
|
|
|
real d(npts) ! passband signal
|
|
|
|
real h(NFFTMAX/2) ! real BPF magnitude
|
2017-02-23 16:21:26 +00:00
|
|
|
real*8 pc(5),pclast(5) ! static phase coeffs
|
|
|
|
real*8 ac(5),aclast(5) ! amp coeffs
|
|
|
|
real*8 fp
|
2016-12-22 17:21:23 +00:00
|
|
|
|
2017-02-21 20:13:36 +00:00
|
|
|
complex corr(NFFTMAX/2) ! complex frequency-dependent correction
|
2016-12-22 17:21:23 +00:00
|
|
|
complex c(NFFTMAX) ! analytic signal
|
|
|
|
|
2017-02-21 20:13:36 +00:00
|
|
|
logical*1 beq ! boolean static equalizer flag
|
2016-12-22 17:21:23 +00:00
|
|
|
|
2015-11-18 01:28:12 +00:00
|
|
|
data nfft0/0/
|
Merged from trunk:
------------------------------------------------------------------------
r8016 | k9an | 2017-08-09 16:22:54 +0100 (Wed, 09 Aug 2017) | 1 line
Remove call to jtmsg.
------------------------------------------------------------------------
r8017 | k9an | 2017-08-09 16:52:52 +0100 (Wed, 09 Aug 2017) | 1 line
Bring a simulation tool up to date.
------------------------------------------------------------------------
r8022 | k9an | 2017-08-13 02:35:13 +0100 (Sun, 13 Aug 2017) | 1 line
Improve efficiency of OSD by a factor of 5 to 10 for norder=2 and
3. Use norder=2 for wideband multi-decoding, norder=3 near nfqso and
nftx.
------------------------------------------------------------------------
r8026 | k9an | 2017-08-14 16:00:48 +0100 (Mon, 14 Aug 2017) | 1 line
Make default MSK144 amplitude polynomial flat.
------------------------------------------------------------------------
r8029 | k1jt | 2017-08-19 14:07:27 +0100 (Sat, 19 Aug 2017) | 1 line
Edit the advice displayed by F5.
------------------------------------------------------------------------
r8030 | k1jt | 2017-08-19 23:34:26 +0100 (Sat, 19 Aug 2017) | 1 line
Fix a typo.
------------------------------------------------------------------------
r8031 | k9an | 2017-08-22 01:14:51 +0100 (Tue, 22 Aug 2017) | 1 line
1. Improvements to the OSD to allow deeper wideband decoding.
2. Add a third decoding pass.
3. Change symbol metric from max-log to max-amplitude.
------------------------------------------------------------------------
r8032 | k9an | 2017-08-22 01:17:23 +0100 (Tue, 22 Aug 2017) | 1 line
Delete unused array.
------------------------------------------------------------------------
r8033 | k9an | 2017-08-22 01:21:59 +0100 (Tue, 22 Aug 2017) | 1 line
More cleanup.
------------------------------------------------------------------------
r8034 | k1jt | 2017-08-24 14:38:47 +0100 (Thu, 24 Aug 2017) | 1 line
Possible pseudo-code for DXpedition auto-sequencing.
------------------------------------------------------------------------
r8035 | k1jt | 2017-08-25 17:59:58 +0100 (Fri, 25 Aug 2017) | 4 lines
Use the most recently edited "CQ xx: message in Tx6 as a template for
subsequent regenerations.
This means that "CQ DX", "CQ VT", etc., will be presistent until
changed back.
------------------------------------------------------------------------
r8036 | k1jt | 2017-08-26 17:30:47 +0100 (Sat, 26 Aug 2017) | 1 line
Use a baseline-fitting procedure to improve S/N estimates for FT8.
------------------------------------------------------------------------
r8037 | k1jt | 2017-08-27 13:26:37 +0100 (Sun, 27 Aug 2017) | 1 line
Fix the 'Start=0 ==> S/N = -24 dB' problem.
------------------------------------------------------------------------
r8038 | k1jt | 2017-08-27 14:11:56 +0100 (Sun, 27 Aug 2017) | 1 line
Change magic 36 back to 37; does this break something else?
------------------------------------------------------------------------
r8039 | k1jt | 2017-08-28 15:32:14 +0100 (Mon, 28 Aug 2017) | 2 lines
Correct the behavior of FT8 in "NA VHF Contest mode".
------------------------------------------------------------------------
r8040 | k9an | 2017-08-28 22:09:44 +0100 (Mon, 28 Aug 2017) | 1 line
Fix a potential array bounds issue in osd174.f90.
------------------------------------------------------------------------
r8043 | bsomervi | 2017-08-29 04:20:37 +0100 (Tue, 29 Aug 2017) | 1 line
Update AD1C cty.dat database to 14th Aug 2017 big CTY.DAT
------------------------------------------------------------------------
r8044 | bsomervi | 2017-08-29 04:20:51 +0100 (Tue, 29 Aug 2017) | 1 line
Basic fix of auto sequencing with free text 73 messages, more to come
------------------------------------------------------------------------
r8045 | bsomervi | 2017-08-29 04:46:32 +0100 (Tue, 29 Aug 2017) | 1 line
Ensure that auto Tx is disabled when stop Tx on 73 isn't enabled and
DX call is cleared
------------------------------------------------------------------------
r8046 | k1jt | 2017-08-29 15:01:55 +0100 (Tue, 29 Aug 2017) | 2 lines
Update text in User Guide related to *NA VHF Contest Mode*.
------------------------------------------------------------------------
r8047 | bsomervi | 2017-08-30 03:27:57 +0100 (Wed, 30 Aug 2017) | 7 lines
Fix some signoff issues with auto-sequencing
73 messages from other QSOs on frequency should now be ignored rather
than being processed.
Also some long overdue refactoring and tidying of non-idiomatic C++
code in the logbook directory.
------------------------------------------------------------------------
r8048 | bsomervi | 2017-08-30 14:20:39 +0100 (Wed, 30 Aug 2017) | 1 line
Make 73 and RR73 matching of incoming messages for exact while words
------------------------------------------------------------------------
r8049 | k1jt | 2017-08-30 18:06:49 +0100 (Wed, 30 Aug 2017) | 1 line
Updates to User Guide.
------------------------------------------------------------------------
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@8050 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2017-08-31 00:41:52 +00:00
|
|
|
data aclast/0.0,0.0,0.0,0.0,0.0/
|
|
|
|
data pclast/0.0,0.0,0.0,0.0,0.0/
|
|
|
|
! data ac/1.0,0.05532,0.11438,0.12918,0.09274/ ! amp coeffs for TS2000
|
|
|
|
data ac/1.0,0.0,0.0,0.0,0.0/
|
2016-12-20 03:01:43 +00:00
|
|
|
|
2017-02-21 20:13:36 +00:00
|
|
|
save corr,nfft0,h,ac,aclast,pclast,pi,t,beta
|
2012-07-10 13:44:17 +00:00
|
|
|
|
2015-11-18 01:28:12 +00:00
|
|
|
df=12000.0/nfft
|
2012-07-10 13:44:17 +00:00
|
|
|
nh=nfft/2
|
2016-12-22 17:21:23 +00:00
|
|
|
if( nfft.ne.nfft0 ) then
|
|
|
|
pi=4.0*atan(1.0)
|
2015-11-18 01:28:12 +00:00
|
|
|
t=1.0/2000.0
|
2016-06-22 02:29:37 +00:00
|
|
|
beta=0.1
|
2015-11-18 01:28:12 +00:00
|
|
|
do i=1,nh+1
|
|
|
|
ff=(i-1)*df
|
|
|
|
f=ff-1500.0
|
2016-12-22 17:21:23 +00:00
|
|
|
h(i)=1.0
|
2015-11-18 01:28:12 +00:00
|
|
|
if(abs(f).gt.(1-beta)/(2*t) .and. abs(f).le.(1+beta)/(2*t)) then
|
2016-12-20 03:01:43 +00:00
|
|
|
h(i)=h(i)*0.5*(1+cos((pi*t/beta )*(abs(f)-(1-beta)/(2*t))))
|
2016-12-29 01:52:55 +00:00
|
|
|
elseif( abs(f) .gt. (1+beta)/(2*t) ) then
|
|
|
|
h(i)=0.0
|
2015-11-18 01:28:12 +00:00
|
|
|
endif
|
|
|
|
enddo
|
|
|
|
nfft0=nfft
|
|
|
|
endif
|
|
|
|
|
2017-02-21 20:13:36 +00:00
|
|
|
if( any(aclast .ne. ac) .or. any(pclast .ne. pc) ) then
|
|
|
|
aclast=ac
|
|
|
|
pclast=pc
|
Merged from trunk:
------------------------------------------------------------------------
r8016 | k9an | 2017-08-09 16:22:54 +0100 (Wed, 09 Aug 2017) | 1 line
Remove call to jtmsg.
------------------------------------------------------------------------
r8017 | k9an | 2017-08-09 16:52:52 +0100 (Wed, 09 Aug 2017) | 1 line
Bring a simulation tool up to date.
------------------------------------------------------------------------
r8022 | k9an | 2017-08-13 02:35:13 +0100 (Sun, 13 Aug 2017) | 1 line
Improve efficiency of OSD by a factor of 5 to 10 for norder=2 and
3. Use norder=2 for wideband multi-decoding, norder=3 near nfqso and
nftx.
------------------------------------------------------------------------
r8026 | k9an | 2017-08-14 16:00:48 +0100 (Mon, 14 Aug 2017) | 1 line
Make default MSK144 amplitude polynomial flat.
------------------------------------------------------------------------
r8029 | k1jt | 2017-08-19 14:07:27 +0100 (Sat, 19 Aug 2017) | 1 line
Edit the advice displayed by F5.
------------------------------------------------------------------------
r8030 | k1jt | 2017-08-19 23:34:26 +0100 (Sat, 19 Aug 2017) | 1 line
Fix a typo.
------------------------------------------------------------------------
r8031 | k9an | 2017-08-22 01:14:51 +0100 (Tue, 22 Aug 2017) | 1 line
1. Improvements to the OSD to allow deeper wideband decoding.
2. Add a third decoding pass.
3. Change symbol metric from max-log to max-amplitude.
------------------------------------------------------------------------
r8032 | k9an | 2017-08-22 01:17:23 +0100 (Tue, 22 Aug 2017) | 1 line
Delete unused array.
------------------------------------------------------------------------
r8033 | k9an | 2017-08-22 01:21:59 +0100 (Tue, 22 Aug 2017) | 1 line
More cleanup.
------------------------------------------------------------------------
r8034 | k1jt | 2017-08-24 14:38:47 +0100 (Thu, 24 Aug 2017) | 1 line
Possible pseudo-code for DXpedition auto-sequencing.
------------------------------------------------------------------------
r8035 | k1jt | 2017-08-25 17:59:58 +0100 (Fri, 25 Aug 2017) | 4 lines
Use the most recently edited "CQ xx: message in Tx6 as a template for
subsequent regenerations.
This means that "CQ DX", "CQ VT", etc., will be presistent until
changed back.
------------------------------------------------------------------------
r8036 | k1jt | 2017-08-26 17:30:47 +0100 (Sat, 26 Aug 2017) | 1 line
Use a baseline-fitting procedure to improve S/N estimates for FT8.
------------------------------------------------------------------------
r8037 | k1jt | 2017-08-27 13:26:37 +0100 (Sun, 27 Aug 2017) | 1 line
Fix the 'Start=0 ==> S/N = -24 dB' problem.
------------------------------------------------------------------------
r8038 | k1jt | 2017-08-27 14:11:56 +0100 (Sun, 27 Aug 2017) | 1 line
Change magic 36 back to 37; does this break something else?
------------------------------------------------------------------------
r8039 | k1jt | 2017-08-28 15:32:14 +0100 (Mon, 28 Aug 2017) | 2 lines
Correct the behavior of FT8 in "NA VHF Contest mode".
------------------------------------------------------------------------
r8040 | k9an | 2017-08-28 22:09:44 +0100 (Mon, 28 Aug 2017) | 1 line
Fix a potential array bounds issue in osd174.f90.
------------------------------------------------------------------------
r8043 | bsomervi | 2017-08-29 04:20:37 +0100 (Tue, 29 Aug 2017) | 1 line
Update AD1C cty.dat database to 14th Aug 2017 big CTY.DAT
------------------------------------------------------------------------
r8044 | bsomervi | 2017-08-29 04:20:51 +0100 (Tue, 29 Aug 2017) | 1 line
Basic fix of auto sequencing with free text 73 messages, more to come
------------------------------------------------------------------------
r8045 | bsomervi | 2017-08-29 04:46:32 +0100 (Tue, 29 Aug 2017) | 1 line
Ensure that auto Tx is disabled when stop Tx on 73 isn't enabled and
DX call is cleared
------------------------------------------------------------------------
r8046 | k1jt | 2017-08-29 15:01:55 +0100 (Tue, 29 Aug 2017) | 2 lines
Update text in User Guide related to *NA VHF Contest Mode*.
------------------------------------------------------------------------
r8047 | bsomervi | 2017-08-30 03:27:57 +0100 (Wed, 30 Aug 2017) | 7 lines
Fix some signoff issues with auto-sequencing
73 messages from other QSOs on frequency should now be ignored rather
than being processed.
Also some long overdue refactoring and tidying of non-idiomatic C++
code in the logbook directory.
------------------------------------------------------------------------
r8048 | bsomervi | 2017-08-30 14:20:39 +0100 (Wed, 30 Aug 2017) | 1 line
Make 73 and RR73 matching of incoming messages for exact while words
------------------------------------------------------------------------
r8049 | k1jt | 2017-08-30 18:06:49 +0100 (Wed, 30 Aug 2017) | 1 line
Updates to User Guide.
------------------------------------------------------------------------
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@8050 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2017-08-31 00:41:52 +00:00
|
|
|
! write(*,3001) pc
|
|
|
|
!3001 format('Phase coeffs:',5f12.6)
|
2016-12-22 17:21:23 +00:00
|
|
|
do i=1,nh+1
|
|
|
|
ff=(i-1)*df
|
|
|
|
f=ff-1500.0
|
|
|
|
fp=f/1000.0
|
2017-02-21 20:13:36 +00:00
|
|
|
corr(i)=ac(1)+fp*(ac(2)+fp*(ac(3)+fp*(ac(4)+fp*ac(5))))
|
|
|
|
pd=fp*fp*(pc(3)+fp*(pc(4)+fp*pc(5))) ! ignore 1st two terms
|
|
|
|
corr(i)=corr(i)*cmplx(cos(pd),sin(pd))
|
2016-12-22 17:21:23 +00:00
|
|
|
enddo
|
|
|
|
endif
|
|
|
|
|
2012-07-10 13:44:17 +00:00
|
|
|
fac=2.0/nfft
|
|
|
|
c(1:npts)=fac*d(1:npts)
|
|
|
|
c(npts+1:nfft)=0.
|
|
|
|
call four2a(c,nfft,1,-1,1) !Forward c2c FFT
|
|
|
|
|
2017-02-21 20:13:36 +00:00
|
|
|
if( beq ) then
|
|
|
|
c(1:nh+1)=h(1:nh+1)*corr(1:nh+1)*c(1:nh+1)
|
|
|
|
else
|
2016-12-22 17:21:23 +00:00
|
|
|
c(1:nh+1)=h(1:nh+1)*c(1:nh+1)
|
|
|
|
endif
|
|
|
|
|
2015-11-18 01:28:12 +00:00
|
|
|
c(1)=0.5*c(1) !Half of DC term
|
|
|
|
c(nh+2:nfft)=0. !Zero the negative frequencies
|
2012-07-10 13:44:17 +00:00
|
|
|
call four2a(c,nfft,1,1,1) !Inverse c2c FFT
|
|
|
|
return
|
|
|
|
end subroutine analytic
|