diff --git a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc index 357c8368399feb3faf21f3b3d7de747bed13fc43..c2826304a2d36d196e25e2c2b65184e3be2359ee 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 #"