From b72eb904ae94a228172f7f59e5b74e963cb55ccd Mon Sep 17 00:00:00 2001
From: Menno Norden <norden@astron.nl>
Date: Wed, 25 Nov 2009 17:46:45 +0000
Subject: [PATCH] bug 1315: subband nummer was wrong

---
 LCU/StationTest/test/hbatest/determinepeak.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LCU/StationTest/test/hbatest/determinepeak.py b/LCU/StationTest/test/hbatest/determinepeak.py
index 222e4d1bdaa..e93ad1899e9 100644
--- a/LCU/StationTest/test/hbatest/determinepeak.py
+++ b/LCU/StationTest/test/hbatest/determinepeak.py
@@ -101,7 +101,7 @@ def main() :
             sst_data = read_frame(f)
             [maxval,subband_nr] = max((x,i) for i,x in enumerate(sst_data[1:]))
             max_rfi[rcu_nr]=10*numpy.log10(maxval)
-            max_subband[rcu_nr]=subband_nr   
+            max_subband[rcu_nr]=subband_nr+1   
         f.close
         for rcuind in range(num_rcu) :
                 print 'RCU ' + str(rcuind) + ' has max. RFI (' + str(round(max_rfi[rcuind],1)) + ' dB) in subband ' + str(max_subband[rcuind])
-- 
GitLab