Skip to content
Snippets Groups Projects
Commit d5857ab3 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-546: Explain the assumption for the first spectral frame

parent a96c67e5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment