Solving for a Gain

A solve compares what the station actually measured against what it should have measured. The correlator file gives the recorded correlations for one channel: the visibility on every baseline at the time of the acquisition. Separately, the solver predicts the visibilities an ideally behaving station would have produced, looking at the same sky at the same moment. Any disagreement between the two is attributed to the station itself, and the per-antenna complex gains that reconcile them are the calibration solution.

MccsSolver is a thin wrapper around this. It loads the correlator file, reads the station’s antenna positions and orientation from TelModel, and hands both to SKA Low MCCS Calibration, which does the modelling and the fitting. Anything beyond the outline below, such as the algorithms, the model internals, and the exact meaning and effect of each parameter, is documented there.

Forming the model

The predicted visibilities are built from two ingredients.

A sky model of what was above the horizon at the time of the acquisition. gsm, the default, combines the components of a Galactic sky model that were above the horizon with a point-source model of the Sun; sun uses the solar point source alone. The sky is sampled on a HealPix grid, and its resolution is raised for the higher channels, where the beam is narrower.

Embedded element patterns (EEPs), which describe how a single antenna actually responds in place, including the influence of its neighbours and the ground beneath it. Applying them, rotated to the station’s orientation, means the model reflects the beam the station really has rather than an idealised one, and that it carries the polarisation behaviour the real elements impose. A solve can be run without them, in which case every element is modelled identically and the model carries no cross-polarisation.

The patterns themselves are not computed here. They are static files, read from a volume the solver has mounted for the purpose, and each solve names the set it wants.

The modelled sky is then combined with the station geometry to give a predicted visibility per baseline, directly comparable with the recorded ones.

Solving one channel

For a single channel, the solver looks for the per-antenna gains that bring the model into best agreement with the measurement, refining them over a number of iterations. The result is phase referenced to one antenna, since only relative phase is observable. Antennas whose solved gain comes out implausibly low are treated as bad, flagged, and reported alongside the solution.

A minimum baseline length can be set, below which baselines are excluded from both the measurement and the model. Nothing is excluded unless it is asked for: the cutoff defaults to zero, so every baseline is used.

Fitting the phase across the sweep

Only the phase of a solution is fitted. Once every channel in the sweep has been solved, the calibrator takes the phase of each antenna’s solved gain and fits a straight line to it against frequency, giving that antenna an offset and a delay in place of a value per channel. Amplitudes are not currently fitted, so the fitted gains are of unit amplitude, in future the amplitudes may be fitted as well. The gains for antennas that are masked in every channel are set to zero, masking that antenna from the beam.

The fit is done separately for the two like polarisations, and only for those. The cross terms are not fitted and are applied as zero.

Fitting in frequency this way means a gain can be evaluated at any channel, including channels the correlator never sent, and that a single noisy channel carries far less weight than it would on its own. It is why the phase fit parameters, rather than the per-channel solutions, are what the station applies by default. See Application of Solutions.

What the solve produces

Besides the gains themselves, a solve reports how well the fit went: a correlation coefficient between model and measurement, residuals, the number of antennas masked before and after solving, and the solved XY phase. It also reports the conditions at the time of acquisition, such as the local sidereal time and the elevations of the Sun and the Galactic centre.

These travel with the solution into the calibration database, where they are what an operator judges a solution by. See Data Products for the stored fields and Solution Quality for how they are used.