Skip to content
Snippets Groups Projects
Commit ef4e6a6b authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Task #10744: DPPP: add ntimes parset key (default behavior unchanged)

parent d3252190
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,7 @@ namespace LOFAR { ...@@ -79,6 +79,7 @@ namespace LOFAR {
itsNrChanStr = parset.getString (prefix+"nchan", "0"); itsNrChanStr = parset.getString (prefix+"nchan", "0");
string startTimeStr = parset.getString (prefix+"starttime", ""); string startTimeStr = parset.getString (prefix+"starttime", "");
string endTimeStr = parset.getString (prefix+"endtime", ""); string endTimeStr = parset.getString (prefix+"endtime", "");
uint nTimes = parset.getInt (prefix+"ntimes", 0);
itsTimeTolerance = parset.getDouble (prefix+"timetolerance", 1e-2); itsTimeTolerance = parset.getDouble (prefix+"timetolerance", 1e-2);
itsUseFlags = parset.getBool (prefix+"useflag", true); itsUseFlags = parset.getBool (prefix+"useflag", true);
itsDataColName = parset.getString (prefix+"datacolumn", "DATA"); itsDataColName = parset.getString (prefix+"datacolumn", "DATA");
...@@ -152,6 +153,9 @@ namespace LOFAR { ...@@ -152,6 +153,9 @@ namespace LOFAR {
} }
itsLastTime = qtime.getValue("s"); itsLastTime = qtime.getValue("s");
} }
if (nTimes > 0) {
itsLastTime = itsFirstTime + (nTimes-1) * itsTimeInterval;
}
ASSERT (itsLastTime >= itsFirstTime); ASSERT (itsLastTime >= itsFirstTime);
// If needed, skip the first times in the MS. // If needed, skip the first times in the MS.
// It also sets itsFirstTime properly (round to time/interval in MS). // It also sets itsFirstTime properly (round to time/interval in MS).
......
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