This recipe explains how to run the imaging pipeline. The imaging pipeline is used to create images, in standard FITS format, from LOFAR TBB data.
The imaging pipeline and its principal component the imager uses the technique of beamforming to calculate the intensity of each pixel in the final image.
The essence of beam forming is to add the signals from different antennas in order to achieve sensitivity to one direction. This direction is determined by time shifts of the signals from the antennas. Although beam forming is used for all kinds of signals it is easily depicted with radio pulses. As an example figure shows the geometry of the source and two antennas. A pulse originating at the source will first arrive at antenna 2 and then at antenna 1. To have the pulse at the same position in both datasets the dataset of antenna 1 has to be shifted in relation to the one from antenna 2 by the delay that corresponds to the distance from antenna 1 to point A. If both datasets are then added up, the pulse will be enhanced in the resulting data, while a pulse from another direction will be smeared out. The same is true for continuous signals from a source. If one chooses not antenna2 but a point in between the antennas as the reference position, then the data from both antennas has to be shifted (e.g. antenna 1 by the delay ant. 1 to point B and antenna 2 by ant. 2 to point C in the figure). To calculate the geometric delays we first transform the antenna positions into the coordinate system aligned to the direction of the source:
Here are the antenna positions relative to a reference position; is the azimuth angle and the elevation of the given direction; are the antenna positions in the source coordinate system, whose z-axis points in the direction of the source.
If the incoming signal is a plane wave (i.e. the source is far away) then the relative distance is and the delay is . If the signal is a spherical wave with a radius of curvature of (i.e. a signal like that from a point source at in source coordinates), then the relative distances are:
With the delays being . To efficiently do shifts by sub-sample steps, the shift itself is done by Fourier transforming the time domain data to the frequency space and then multiplying a phase gradient to the data. Adding the data from all antennas together and squaring the result directly gives the spectral power distribution for this pixel:
With being the power in the direction , the beam formed data, the number of antennas, the weighting factor of the phase gradient and the frequency domain data of the single antennas.