Skip to content
Snippets Groups Projects
Commit 11d2d477 authored by Andre Offringa's avatar Andre Offringa Committed by André Offringa
Browse files

Allow queries on multiband quality statistics tables

This fixes aoquality query_a/b/t commands when multiple subbands have been combined.
parent 981ad18a
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,7 @@ void actionQueryBaselines(const std::string& kindName,
QualityTablesFormatter formatter(filename);
StatisticsCollection collection(polarizationCount);
collection.Load(formatter);
collection.IntegrateBaselinesToOneChannel();
const std::vector<std::pair<unsigned, unsigned>>& baselines =
collection.BaselineStatistics().BaselineList();
const StatisticsDerivator derivator(collection);
......@@ -246,6 +247,7 @@ void actionQueryTime(const std::string& kindName, const std::string& filename) {
QualityTablesFormatter formatter(filename);
StatisticsCollection collection(polarizationCount);
collection.Load(formatter);
collection.IntegrateTimeToOneChannel();
const std::map<double, DefaultStatistics>& timeStats =
collection.TimeStatistics();
const StatisticsDerivator derivator(collection);
......@@ -278,6 +280,7 @@ void actionQueryAntenna(const std::string& kindName,
QualityTablesFormatter formatter(filename);
StatisticsCollection collection(polarizationCount);
collection.Load(formatter);
collection.IntegrateBaselinesToOneChannel();
const std::map<size_t, DefaultStatistics> stats =
collection.GetAntennaStatistics();
const StatisticsDerivator derivator(collection);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment