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

Task #4365: Support disabling of delay compensation

parent 849c10d0
No related branches found
No related tags found
No related merge requests found
......@@ -191,14 +191,21 @@ namespace LOFAR
struct Delays::Delay Delays::convert( casa::MDirection::Convert &converter, const casa::MVDirection &direction ) const {
struct Delay d;
MVDirection casaDir = converter(direction).getValue();
// Compute direction and convert it
casa::Vector<double> dir = casaDir.getValue();
std::copy(dir.begin(), dir.end(), d.direction);
// Compute delay
d.delay = casaDir * phasePositionDiff * (1.0 / speedOfLight);
if (parset.settings.delayCompensation.enabled) {
MVDirection casaDir = converter(direction).getValue();
// Compute direction and convert it
casa::Vector<double> dir = casaDir.getValue();
std::copy(dir.begin(), dir.end(), d.direction);
// Compute delay
d.delay = casaDir * phasePositionDiff * (1.0 / speedOfLight);
} else {
d.delay = 0.0;
d.direction[0] = 0.0;
d.direction[1] = 0.0;
d.direction[2] = 0.0;
}
// Add non-geometric delays
d.delay += baseDelay();
......
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