summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-01-05 22:10:30 +0100
committerChristoph Berg <myon@debian.org>2021-01-05 22:10:30 +0100
commit8e43a898258cdf4a3eaec64f06069017b2d24a4d (patch)
tree82cfd1cbc20f8a219522a8036e8a3622eec44440 /lib/ft8
parenta42d3323808f2f57138c4a636db7f9f78c30c59f (diff)
parent061dc1a349738747489ef0c0ebeeb4443e369501 (diff)
Update upstream source from tag 'upstream/2.3.0_rc3+repack'
Update to upstream version '2.3.0~rc3+repack' with Debian dir 5129b722b4b0bb33d8e8b0c41dd5606650a3ee38
Diffstat (limited to 'lib/ft8')
-rw-r--r--lib/ft8/get_spectrum_baseline.f9015
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/ft8/get_spectrum_baseline.f90 b/lib/ft8/get_spectrum_baseline.f90
index 9cf4e637..f815eba1 100644
--- a/lib/ft8/get_spectrum_baseline.f90
+++ b/lib/ft8/get_spectrum_baseline.f90
@@ -35,8 +35,19 @@ subroutine get_spectrum_baseline(dd,nfa,nfb,sbase)
savg=savg + s(1:NH1,j) !Average spectrum
enddo
- if(nfa.lt.100) nfa=100
- if(nfb.gt.4910) nfb=4910
+ nwin=nfb-nfa
+ if(nfa.lt.100) then
+ nfa=100
+ if(nwin.lt.100) then ! nagain
+ nfb=nfa+nwin
+ endif
+ endif
+ if(nfb.gt.4910) then
+ nfb=4910
+ if(nwin.lt.100) then
+ nfa=nfb-nwin
+ endif
+ endif
call baseline(savg,nfa,nfb,sbase)
return