summaryrefslogtreecommitdiff
path: root/lib/ft8
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
committerChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
commit061dc1a349738747489ef0c0ebeeb4443e369501 (patch)
treeb5671ff01ada5a62d6d91a54125a6bd6e3209021 /lib/ft8
parent77922fa33547ce24535f2e514c9a112dcb496f18 (diff)
New upstream version 2.3.0~rc3+repackupstream/2.3.0_rc3+repack
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