Skip to content
Snippets Groups Projects
Commit 7317b906 authored by Jan David Mol's avatar Jan David Mol
Browse files

COB-64: Add parset key to optionally disable writing to disk

parent a87860a9
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
......@@ -345,6 +345,8 @@ namespace LOFAR
settings.corrections.bandPass = getBool("Cobalt.correctBandPass", true);
settings.corrections.clock = getBool("Cobalt.correctClocks", true);
settings.corrections.dedisperse = getBool("Cobalt.BeamFormer.coherentDedisperseChannels", true);
settings.writeToDisk = getBool("Cobalt.writeToDisk", true);
settings.delayCompensation.enabled = getBool("Cobalt.delayCompensation", true);
settings.delayCompensation.referencePhaseCenter = getDoubleVector("Observation.referencePhaseCenter", vector<double>(3,0), true);
......
......@@ -175,6 +175,9 @@ namespace LOFAR
// key: Observation.bandFilter
std::string bandFilter;
// If false, do NOT write output to disk
bool writeToDisk;
struct AntennaFieldName {
std::string station;
std::string antennaField;
......
......@@ -133,7 +133,8 @@ namespace LOFAR
try {
BudgetTimer::StartStop ss(writeTimer);
itsWriter->write(data);
if (itsParset.settings.writeToDisk)
itsWriter->write(data);
} catch (SystemCallException &ex) {
LOG_WARN_STR(itsLogPrefix << "OutputThread caught non-fatal exception: " << ex.what());
itsBlocksDroppedByMe++;
......
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