diff --git a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc index f9778d1e08cc74c074216c63a2d2867c9e871417..6acb39c64d41bf10d5fed94545f08718646e51be 100644 --- a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc +++ b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc @@ -207,7 +207,7 @@ namespace LOFAR * Then we can write flags while data comes in. Else, leave * as-is. */ - if(doTransient()) + if(transientMode == true) { itsDipoleDataset()->flagOffsets().create( itsDumpInfo.itsFlagOffsets.size()).set( @@ -407,6 +407,12 @@ namespace LOFAR */ else if(currentSubBand.isInitialised == false) { + /** + * Assume that the first ever received frame for any sub-band is + * the very first frame that got ever sent for that sub-band. This + * is the only assumption made about the order of frames sent by + * TBB. + */ currentSubBand.time0 = frame.header.time; currentSubBand.slice0 = sliceNr; @@ -446,8 +452,7 @@ namespace LOFAR currentSubBand.dataSet->timeResolution().value = static_cast< double >(SPECTRAL_TRANSFORM_SIZE) / (frame.header.sampleFreq * 1000000.0); - currentSubBand.dataSet->timeResolutionUnit().value = - "s"; + currentSubBand.dataSet->timeResolutionUnit().value = "s"; currentSubBand.dataSet->bandwidth().value = static_cast< double >(frame.header.sampleFreq) * 1000000.0 / static_cast< double >(SPECTRAL_TRANSFORM_SIZE); @@ -483,7 +488,7 @@ namespace LOFAR << currentSubBand.slice0 << ", HDF5 SubbandDataset name = " << currentSubBand.dataSet->name() - << " , dipole = " + << ", dipole = " << itsDipoleGroup()->name() << ", station id = " << static_cast< uint32_t >(frame.header.stationID)