From bc9021f9ca2fb0e26bacc2413c764d50b972c680 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Thu, 10 Jan 2013 15:40:45 +0000
Subject: [PATCH] Task #2669: Also write stationSubbands feedback key

---
 RTCP/Storage/src/MSWriterDAL.cc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/RTCP/Storage/src/MSWriterDAL.cc b/RTCP/Storage/src/MSWriterDAL.cc
index 28cfd3bda6f..8b382d0f55c 100644
--- a/RTCP/Storage/src/MSWriterDAL.cc
+++ b/RTCP/Storage/src/MSWriterDAL.cc
@@ -540,6 +540,17 @@ namespace LOFAR
 
       itsConfiguration.add(prefix + "centralFrequencies", centralFreqsStr.str());
 
+      ostringstream stationSubbandsStr;
+      stationSubbandsStr << "[";
+      for (size_t i = 0; i < subbands.size(); ++i) {
+        if( i > 0 )
+          stationSubbandsStr << ", ";
+        stationSubbandsStr << str(format("%u") % subbands[i]);
+      }
+      stationSubbandsStr << "]";
+
+      itsConfiguration.add(prefix + "stationSubbands",  stationSubbandsStr.str());
+
       itsConfiguration.add(prefix + "channelWidth",      str(format("%f") % channelBandwidth));
       itsConfiguration.add(prefix + "channelsPerSubband",str(format("%u") % itsInfo.nrChannels));
       itsConfiguration.add(prefix + "stokes",            str(format("[%s]") % stokesVars_LTA[stokesNr]));
-- 
GitLab