From 383eabec99106cebf684877a565bb219b9a3f5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20J=C3=BCrges?= <jurges@astron.nl> Date: Fri, 1 Feb 2019 13:52:30 +0000 Subject: [PATCH] SW-561: Set bandwidth meta-data --- RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc index 357c8368399..c2826304a2d 100644 --- a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc +++ b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc @@ -450,6 +450,11 @@ namespace LOFAR (frame.header.sampleFreq * 1000000.0); currentSubBand.dataSet->timeResolutionUnit().value = "s"; + currentSubBand.dataSet->bandwidth().value = + static_cast< double >(frame.header.sampleFreq) * 1000000.0 / + static_cast< double >(SPECTRAL_TRANSFORM_SIZE); + currentSubBand.dataSet->bandwidthUnit().value = "Hz"; + // Filled in when the sub-band is complete: currentSubBand.dataSet->dataLength().value = 0; /** @@ -470,11 +475,6 @@ namespace LOFAR currentSubBand.dataSet->samplesPerFrame().value = frame.header.nOfSamplesPerFrame; - // TODO - currentSubBand.dataSet->bandwidth().value = 0; - currentSubBand.dataSet->bandwidthUnit().value = - "not filled in"; - currentSubBand.isInitialised = true; LOG_INFO_STR("TBB: Sub-band #" -- GitLab