Imaging simulations
This document serves as a brief user guide on performing simulations for dynamic range and noise estimation. We will be using standard packages and a Python environment. This assumes that the user has installed CASA and Meqtrees from the standard KERN-5 PPA on an Ubuntu (or derivative) 18.04 system. Please follow the instructions on the KERN 5 launchpad for details on adding the repository through the APT package management system.
We start by using the simms wrapper around CASA to simulate a dataset into the Measurement Set Standard v2.0 (CASA Memo 229). The MeerKAT antenna positions are already built-in. You can obtain a copy from GitHub - ratt-ru/simms: Creates empty measurement sets using the the CASA simulate tool. (here we use release v1.2.0). We will be doing a transit-spanning 0.5 hour simulation with a fictitious catalogue centred at 04h00m00.0s, -33d00m00s (J2000), with correlator settings matching the 4k channel L-band MeerKAT correlation mode with 10 minute scans and 8s integration intervals (see the documentation for a discussion on all possible switches).
> …
|
You can verify that your empty database has the correct shape. The timespan may be different for your dataset.
|
Our elevation range automatically adjusts for optimal half-hour uv coverage and spans transit roughly in the middle of the observation. This can be adjusted according to your needs with the start and end time switches in simms:
Before proceeding to simulation we need to include the antenna far-field response. Here we use the Eidos package which includes Zernike model coefficients for the reconstruction of smoothed versions of L-band holographic measurements (K. Asad & M. de Villiers, private communication). The package can be obtained from GitHub - ratt-ru/eidos: Modelling primary beams of radio astronomy antennas (we will use version v1.0.4). The beam is evaluated every 5 MHz over the entire L-band bandwidth out to 4° (a maximum of 10° is possible at the time of writing). The package will dump 8 files - pairs of real and imaginary voltage responses for each of the correlation products in a 2x2 Jones matrix.
> eidos -d 4 -r 0.015625 -f 856 1712 5 -P mk.holo.lband.4deg -o8 |
The I Mueller power response is shown below in logscale (the -10dB power point is roughly 2°15' in diameter at the lowest frequency and 1°10' in diameter at the highest frequency of the band):
With an empty database and antenna response in hand we can now initialize a basic fictitious catalog with two strong sources off-centre, beyond the primary beam of the antenna far-field response. Call this sources.txt
with the following format:
|
We will use Meqtrees in interactive mode. Pipelining modes are available though we will not cover their use here. Start the browser with the following command and start the meqserver in multithreaded mode with the number of threads given via the -mt parameter:
|
From the TDL menu select Load TDL Script and navigate to the turbo-sim.py within the Siamese submodule of Cattery. The KERN installation will be in the Python 2.7 dist-packages as shown below:
The TDL compile time options will be displayed once the recipe is loaded. Notice that there is a capacity here to construct a Radio Interferometer Measurement Equation (RIME) that is both direction independent and direction dependent. We will demonstrate only the direction dependent antenna response options here. Start by loading in the empty database in the MS section, the sky catalogue into the Sky model -> TiggerSkyModel module and the 8 cube antenna response output by Eidos into the E Jones Siamese.OMS.pybeams_fits module. Ensure to change the CTYPE of L and M axis to ‘px’ and ‘py’ as per the antenna voltage response FITS file headers. We will also apply apparent sky rotation due to the ALT-AZ mounts and periodic pointing errors (here assumed to be 200 arcseconds). Lastly, we will add a realistic average noise of around 425 Jy SEFD across the band. Ensure the various parent options are ticked. Hit “Compile” once the options are filled:
Once the compute graph is constructed runtime parameters will be shown. Change the output column to the (empty) DATA column and increase the tile size to 128 time steps (or less if this does not fit into your memory constraints). Hit “Run simulation” to start simulating into the database:
Once the simulation has started, constituent interferometer and pointing error inspectors are available from the Bookmarks tab.
Once completed the field can be imaged using your favourite imager. We will create an MFS map using WSClean to get an estimate of the instrument induced errors.
|
The apparent source variation and spectrum steepening at the roll off points in the antenna response over such a wide bandwidth induces large unmodelled errors in the total system response. These errors manifest as direction dependent effects around the bright off-axis sources and are especially visible where the field of view is at its widest at the lower part of the instrumental bandwidth. Here we show the MFS map and the area around the bright source to the south of the pointing centre at the lowest and highest frequency respectively:
MFS map showing pointing error induced direction dependent effects at the steepening edge of the primary beam of the antenna far-field response.
Left: Direction Dependent Effects at the widest angle of view at the bottom of L-band. Right: Direction Dependent Effects after suppression by the antenna response at the top of L-band. The image scales are identical.
Experience has shown that, although possible using a combination of packages like DDFacet, killMS and Cubical, effectively calibrating for direction dependent gains can be very challenging due to modelling inaccuracies over a large fractional bandwidth and SNR limitations at the high end of the band. A far easier mitigation approach is to preempt direction dependent calibration effects and use the antenna response to effectively suppress bright sources, or if necessary place bright sources more centrally within the primary beam of the antenna response to limit modulation from time-variable effects.