Import standard modules:
In [ ]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from IPython.display import HTML
HTML('../style/course.css') #apply general CSS
Import section specific modules:
In [ ]:
%pylab inline
pylab.rcParams['figure.figsize'] = (18, 6)
In [ ]:
HTML('../style/code_toggle.html')
The preceding chapters of this course have hopefully made it clear that an interferometer does not perform error-free measurements. On the contrary, an interferometer's measurements will be corrupted by a variety of effects. These include environmental effects such as the atmosphere, as well as faults and inaccuracies in the system itself. Naturally, doing good science requires good data. This is the purpose of calibration - given a signal which has been corrupted in a variety of ways, we can restore it to something resembling the truth.
The starting point of this discussion is 1GC or, to give it its full name, first generation calibration. This form of calibration is usually the initial step in a series of calibration efforts. 1GC is performed using calibrator observations.
These are observations of a source with known parameters such as flux, shape and spectrum. Observations of calibrators are interspersed with observations of the target field. This is done so that the calibrator observations track changes in the observational parameters. Thus, it is possible to solve for calibrator gain solutions which can then be transferred to the target field. This is usually an effective method of removing large-scale errors in the visibilities. The requirements placed on calibrator sources vary based on which quantity is being calibrated.
Calibration quantities
• Absolute flux calibration is used to determine the true flux of sources in the field. This is necessary to ensure that the flux values obtained are correctly scaled. This type of calibration requires a very bright, invariant calibrator which is either point-like or well-modelled.
• Bandpass calibration is used to correct for errors along the frequency axis of the observation. These errors can be introduced by both the system and the atmosphere. Performing bandpass calibration requires a very bright, invariant point-like or well-modelled source with a known spectrum. The number of calibrator sources which satisfy these conditions is low; they are often very far away from the target.
• Delay calibration is used to remove the phase delay error which manifests as a linear ramp in the bandpass. This is often done before bandpass calibration, as it can be fit once to all the data. This is usually performed using the same calibrator source as the bandpass calibration.
• Gain calibration is used to determine the complex valued gains. This is done regularly throughout the observation. The calibrator source needs to be relatively bright but, more importantly, it needs to be close to the target. This is because the gain calibrator is used to track the evolution of local effects, such as the atmosphere. As such, the closer the calibrator is to the target, the more likely it is to be subject to the same effects.
In practice, absolute flux, delay, and bandpass calibration can all be performed using the same calibrator. Gain calibration could also be performed using this calibrator, but only if it was sufficiently close to the target. This is not usually the case and a unique calibrator is required for determining the complex gains.
Below is a schematic representation of how an observation might be broken up. Note that this is not accurate by any means, but merely hopes to convey the idea behind calibrator observations and 1GC.
One point has been neglected in the above discussion: how do we actually calibrate using the calibrator observations? The answer is, fortunately, relatively simple. As you have seen in $\S$ 8.1 ➞, it is possible to treat calibration as a least-squares problem. 1GC is no exception. One helpful fact is that the model will usually contain only a single source. For a point source at the centre of the field, the model reduces to the amplitude of the calibrator multiplied by the antenna gains. For more complicated calibrator sources, this will not be the case. However, given a sufficiently accurate source model, complicated calibrators can still be used.
Once the calibrator solutions have been found, the final obstacle is transferring the solution to the target field. In the simplest case, this can be done by applying the results from a calibrator observation to the subsequent target field observation/s. It is also possible to do more complicated solution transfers by interpolating between values or fitting curves across the solutions.
There are other methods of calibration which predate the use of least-squares solvers. One such method makes use of closure quantities as presented in A phase sensitive interferometer technique for the measurement of the Fourier transforms of spatial brightness distributions of small angular extent ⤴. Whilst this method of calibration is no longer widely used, the quantities it introduces are of interest. These quantities are the closure phase and closure amplitude.
In order to define closure phase, we imagine that we have a three antenna array. We can think of these antennas as the vertices of a triangle. The sides of the triangle then represent the baselines. Each baseline observes a visibility as given by the following expression:
In the above expression, $\tilde{v}_{pq}$ is the measured visibility, $v_{pq}$ is the true visibility, $g_p$ is the gain of antenna $p$ and $g_{q}^{*}$ is the conjugate of the gain of antenna $q$. The indices $p$ and $q$ are simply placeholders for the antennas. It is possible to write this out in terms of the amplitude ($A$) and phase ($\phi $) of the various contributions to the visibility.
These expressions are all that is required to reach the definitions of closure phase and amplitude. For our three antenna case outlined above, we can substitute in the indices for baselines $ij$, $jk$ and $ki$. Note that this is equivalent to moving clockwise around the triangle from the $i$ vertex. For closure phase, we are only interested in the argument of the above expression.
$\tilde{\phi}$ represents the total phase of the relevant baseline. Adding these three expressions together we obtain:
Closure phase
\begin{equation}
\tilde{\phi}_{ij} + \tilde{\phi}_{jk} + \tilde{\phi}_{ki} = -\phi_{ij} - \phi_{jk} - \phi_{ki}.
\end{equation}
This relationship is known as closure phase. What makes this interesting is that the phase contributions of the gains cancel, and we are left with the sum of the true phases. We are free to swap either all or some of the indices on the true phases provided we also swap their sign. This is equivalent to taking the conjugate of the original $\tilde{v}_{pq}$.
Closure phase is still a useful observable as it can be used to measure the performance of an interferometer. For a point source at the center of the field of view, the phase closure should be close to zero as the individual true phases should be zero. Naturally, in the presence of noise, this will never be perfect. However, if the closure phase is large, it is a good indicator that something is wrong in the system. By taking the closure phase for each group of three antennas, it is possible to identify faulty antennas - if every closure phase involving antenna $i$ (for example) is significantly more or less than zero, it is likely that that antenna needs to be flagged.
Amplitude closure is also a useful observable. Its derivation is rather simple, as simple substitution can show that it is true. For four antennas (the minimum required for amplitude closure) $i$, $j$, $k$ and $l$, we can write the following expression:
If we substitue in equations of the following form:
we obtain this expression, noting that the exponential terms fall away in the absolute value:
The amplitude terms which belong to the gains cancel, and we are left with a closure amplitude relationship.
Closure amplitude
\begin{equation}
\frac{\lvert \tilde{v}_{ij} \rvert \lvert \tilde{v}_{kl} \rvert}{\lvert \tilde{v}_{ik} \rvert \lvert \tilde{v}_{jl} \rvert} = \frac{\lvert A_{ij} \rvert \lvert A_{kl} \rvert}{\lvert A_{ik} \rvert \lvert A_{jl} \rvert}
\end{equation}
As for the case of closure phase, we can eliminate the contribution of the gains and obtain a measure of the true amplitude. For a point source at the center of the field, we expect each baseline to measure the same amplitude, and the above expression should be unity. This can once again be used as a diagnostic.
Next: 8.3 2GC Calibration