WorksPhysics and Astronomy
CHARIZARD: A High-throughput Generic Pipeline for Present and Upcoming Interferometers
Abstract
Radio interferometers now deliver wide bandwidths and high sensitivity, and with them data volumes that are awkward to reduce by hand and slow to reduce automatically. The limit is not always the algorithms themselves but the way the work is laid out across the computing available. We present CHARIZARD, a pipeline that carries a raw measurement set through flagging, cross-calibration, self-calibration and imaging to full-Stokes images, and which is built around distributing that work. The observing band is repartitioned into sub-bands that stay independent through cross-calibration, the unit of work becomes the target field and sub-band pair at self-calibration, and stages touching disjoint data are run together. Each stage is an ordinary PBS or SLURM job, submitted and tracked by a scheduler-agnostic layer, and every computation runs inside a single rootless container, so a user holding no administrative rights gets the same behaviour on any cluster. We benchmark the pipeline on MeerKAT measurements with full polarization calibration. Residual on-axis instrumental polarization is per cent in linear and per cent in circular; the deepest field reaches Jy~beam over ~MHz with ; positions agree with RACS-low to better than 0.4\arcsec and flux densities to a median ratio of . A ~TB track completes core-hours of work in ~hours with self-calibration and polarization calibration. The next generation of the radio telescopes will not be short of data. CHARIZARD attempts to show how the distribution of the work provides a useful alternative for handling the staggering processing requirements.
Introduction
Radio interferometry measures Fourier components of the sky, i.e. visibilities and then reconstructs the sky brightness by inverting them (A. R. Thompson et al. [45]). This is a widely used technique to study a variety of cosmic phenomena, starting from the local star, the Sun, to the signatures of the Big Bang. The processing of the radio interferometric data involves steps from correcting the instrumental calibration factors and then inverting the visibilities to the desired image, with special care to not include bad data (RFI) in the processing at every stage. The processing itself is not monotonic and, depending on the quality of the data and the telescope, can require manual inspection and going back and forth in different directions multiple times.
With the recent advancement of radio telescopes such as the uGMRT (Y. Gupta et al. [11]), LOFAR (M. P. van Haarlem et al. 2013) and MeerKAT (J. Jonas & MeerKAT Team [17]), we enjoy wide bandwidth, excellent resolution and sensitivity. But with that comes handling of large data volumes and complex instrumental systematics. The advent of this big data era in radio astronomy invites a careful relook at automated processing workflows.
Examples of automated radio imaging pipelines are plenty, and they are typically designed by looking at a specific science or telescope need. This helps to understand the requirements and exploit the telescope-specific advantages. As notable examples, we can mention CAP-TURE (R. Kale & C. H. Ishwara-Chandra [19]) for the uGMRT, the scripted calibration and imaging pipeline for the VLA (B. R. Kent et al. [20]), processMeerKAT (J. D. Collier et al. [4]) and CARACal (G. I. G. Józsa et al. [18]) for MeerKAT, and the e-MERLIN CASA pipeline (J. Moldón [29]). This list is neither complete nor the best pipeline representation for the mentioned telescopes.
The next generation of radio interferometry demands designing creative solutions to process the huge amounts of data. This problem can be thought of as being addressed in two ways. First, the individual processing components like the software and the file system can be improved on their own. As examples, better file systems which support native parallel read and write can be used instead of the traditional table format for storage. On the software side, as example, to image a large field of view with a large resolution, one might use specific hardware such as Graphical Processing Units (GPUs) to accommodate the requirements or design better calibration algorithms that are fast and accurate for a large number of antennas (O. M. Smirnov & C. Tasse [43]). As examples, LiBRA (S. Bhatnagar et al. [1]) and CUBiCal (J. S. Kenyon et al. [22]) attempt to address some of these issues. One might also come up with creative algorithms such as Image Domain Gridding (S. van der [46]), where it is embarrassingly parallel to take care of the W-terms when the antenna numbers are staggering.
The other way to look at this problem is to come up with different ways to distribute the processing loads to maximize the software performance given the compute available and processing needs. One trivial way to exploit this thinking is to break the huge file size into manageable chunks and treat them independently throughout. One example of this methodology would be processMeerKAT (J. D. Collier et al. [4]). This pipeline breaks the frequency axis into independent spectral windows and then process them independently, which helps to maintain a high throughput in return. One might also find processing steps where the steps are independent; for example, flagging on the source scans and solving for calibration tables are inherently separate. For a multiple target-source dataset, one can also treat every field individually during self-calibration and imaging, easing the memory load and providing more control for failures.
In this context, we introduce Calibration and Highly Automated Radio Imaging with polariZation and Advanced Resource Distribution (CHARIZARD), as a generic radio interferometric processing pipeline to process present radio interferometers while keeping an eye on the upcoming ones such as the SKA (P. E. Dewdney et al. [9]) and the ngVLA (E. J. Murphy et al. [30]). CHARIZARD combines smart distribution with accelerated processing steps to achieve as much throughput as possible. The paper is
Individual Components
CHARIZARD is written in Python and operates with YAML configuration files. The workflow is fixed, while there is flexibility with the choices made, and methods exist for different failure scenarios. As any typical radio imaging pipeline, it operates as an orchestration layer which allocates processes, tracks, report failures and, in case of success, runs the next step of the process. Below we describe, all the modules and the working philosophy of each of them.
Orchestrator
The whole orchestration happens with a module called Housekeeper1. Housekeeper is a cross-platform job orchestration system that relies on existing PBS or SLURM scheduling systems. It offers top-level API methods for both PBS and SLURM, with the additional feature of defining graphs where the user can define dependent processes to wait before a process gets submitted. It can look for specific output products to check if the requirement of the job completion are fulfilled or not. Along with it, it also can look at the job output logs to check if the job has failed or succeeded. User has the flexibility to ignore some errors as well, if they are confident that it does not hamper the desired outputs. It also provides an interface to check for the standard scheduler-level job operations, where the user can check if the jobs got scheduled and then failed due to resources or some other node-level issues. The code is written to be a pipeline manager, and it dumps all its outputs to a database file which can also be queried anytime. Housekeeper serves as the main connecting and running framework between all the processes in CHARIZARD.
Processing Components
Below we describe all the components which are typical for any radio interferometric image processing.
Calibration
Radio interferometric calibration involves solving for different instrumental effects by observing suitable calibrators. CHARIZARD offers automated calibration of both total intensity and polarization measurements. It uses the Common Astronomy Software Applications package (CASA; J. P. McMullin et al. [26]; CASA Team [3]) for solving and applying the calibration.
CHARIZARD supports both linear and circular feed measurements. For total intensity modes, the steps are similar and involves solving for bandpass, residual delays and gains. While for full polarization calibration, for circular feeds, it also involves solving for leakages, cross-hand residual delay and phases, following the polarimetric measurement equation (J. P. Hamaker et al. [13]; R. J. Sault et al. [40]; O. M. Smirnov [42]). For linear feeds, the same steps are also included, but the order is best suited to match the corruption order.
CHARIZARD resolves the field names from the measurement set and then matches the positions against a publicly available calibrator list2, which is predominantly the scraped version of the VLA Calibrator database. Standard flux calibrator models (R. A. Perley & B. J. Butler [36, 37]) are also shipped with the pipeline, and custom models can also be supplied for any calibrator with the help of a different YAML file. CHARIZARD uses suitable uv-ranges for calibration, which are resolved from the same scraped JSON file. User has the final authority to tune the uv-ranges and choice of the calibrators in the configuration files.
Flagging
For the RFI detection, we use a package called CatBOSS3, which has two modules, Parallelized Optimized Outlier Hunter (POOH) and Non-linear Interference Modeling and KorRection Interface (NimKi). This package serves as the main workhorse to identify and flag bad samples from the data efficiently.
POOH looks at the time-frequency amplitude dynamic spectra of each baseline and correlation and flags them independently. NimKi instead compares all baselines against one another, by modelling the visibility amplitude as a function of projected baseline length. The two modules are sensitive to different kinds of corruption, and the pipeline uses both.
POOH operates on the dynamic spectrum of a single baseline and correlation, and proceeds in three stages. The first is bandpass normalisation. The instrumental bandpass and the source spectrum together impose smooth structure across the band. No useful outlier test can be applied until it is removed. We form the time-median spectrum , and fit it with a fifth-order polynomial. The fit is iterated: at each iteration the residuals about the current fit are formed, a robust scatter is estimated from their median absolute deviation as 1.4826 MAD, and channels deviating by more than are rejected and excluded from the next iteration. The procedure stops when no new channels are rejected, or after a user-provided number of iterations. Channels rejected in this way are almost always strong persistent carriers, and they are flagged in full at this stage. The dynamic spectrum is then divided by the final fit to give the normalised spectrum .
The second stage sets a detection threshold for each channel,
where is 5 or 6 depending on the stage of the pipeline. The threshold is set per channel rather than globally because the noise level is not assumed to be uniform across the band.
The third stage is the detection itself, for which three methods are available. The default is SumThreshold ([31, 34]). Interference is frequently not confined to isolated bright samples. A transmitter that is only marginally above the noise but persists over many integrations, or extends over many channels, carries far more total power than a single strong sample and is missed entirely by a per-sample test. SumThreshold therefore tests the mean of a window of consecutive samples, and lowers the threshold as the window lengthens,
Windows are applied along the time and frequency axes in turn, for each in the set specified by the pipeline for that stage, listed in Table 1, and flags found in one pass are committed before the next pass reads them. A window is evaluated only if at least 30 % of its samples are unflagged, and when a window exceeds we flag only those samples within it that individually exceed , rather than the window as a whole. This prevents flags from spreading into clean data adjacent to a genuine detection. SumThreshold allows faint but extended interference to be recovered but can also be prone to overflagging. We do not extend the window beyond in the pipeline to control overflagging in case of typical fields.
| Stage | Flagger | ||
| Before calibration, calibrators | Pooh | 6 | |
| Before calibration, targets | Pooh | 6 | |
| After round 1, calibrators | Pooh + Nimki | 5 | |
| Final, all fields | Pooh + Nimki | 6 | |
| Each self-calibration round | Pooh | 5 |
Table 1. Where the flaggers run and with what settings.
The two remaining methods are per-sample tests. Both are evaluated independently for each channel, using only the unflagged samples of that channel in the normalised spectrum , and both construct their own thresholds directly from the sample distribution rather than starting from .
MAD uses the median absolute deviation. Writing for the channel median, and
for the median of the absolute deviations about it, a sample is flagged when
IQR uses the quartiles instead. Let and be the 25th and 75th percentiles of the channel, and the interquartile range, that is the width of the interval containing the central half of the samples. A sample is flagged when
where the multiplier defaults to 1.5. This test is two-sided, and so removes low-amplitude excursions as well as high ones.
For efficiency, Pooh processes baselines in batches. All correlations of a batch are passed to the GPU as a single array of shape , and the following batch is read from disk while the current one is being processed. The batch size is chosen at run time from the free GPU and host memory, so that the same settings run without modification on a small card. Where no GPU is present the same algorithms are compiled for the CPU through NUMBA (S. K. Lam et al. [24]). The two paths are not bit-identical for SumThreshold. The CPU kernel updates the flag array in place as it sweeps, so a window sees flags raised by windows earlier in the same pass, whereas the GPU kernel accumulates candidates in a scratch buffer and merges them only at the end of each pass, which is required to avoid a write race between overlapping threads. The two agree exactly at and diverge slowly thereafter; over a representative batch with they disagree on % of samples.
The products on which Pooh operates need not be those recorded in the measurement set. It can also form two derived, or virtual, correlations and run the same detection on them. These are Stokes , which denotes the circular polarization, and a linear polarization product , formed from the cross hands as for linear feeds and for circular feeds.
A virtual sample is treated as valid only where every constituent correlation is unflagged, and a flag raised on a virtual product is written back to its constituent correlations, or optionally to all four. The motivation is that astronomical sources are very rarely circularly polarised at more than the per cent level, whereas terrestrial transmitters frequently are. In the source largely cancels while the interference does not, so the interference becomes the dominant signal in the plane rather than a small perturbation on top of a bright source. performs the same role for linearly polarised interference.
Nimki looks at the ‘uv’ domain for the RFI flagging. Nimki works on time chunks of 30 minutes by default. Within each chunk, and separately for each spectral window and correlation, it collects every unflagged amplitude together with its projected baseline length in wavelengths. Because is evaluated per channel, all channels of the chunk contribute to a single distribution of amplitude against . To this distribution, it fits
a sum of Gabor functions, with by default. The
fit is performed by Levenberg–Marquardt with two random restarts to reduce sensitivity to local minima. An adaptive mode is also available, in which components are added one at a time until the fractional improvement in the residual falls below 5 %. A Gabor basis is used because the amplitude of a resolved source oscillates with baseline length.
Outliers are then identified by a robust clip on the residual,
The fit and the clip are implemented in C++, and chunks are processed in parallel across cores. Nimki is currently CPU-only by design.
Flagging is the longest single stage of a normal run, so its throughput is worth quoting. We measured it on a MeerKAT sub-band of 61 161 rows × 432 channels × 4 correlations, that is 2.64 × 10 visibilities, or 1.057 × 10 visibility samples counting each correlation together. Both modules were driven through the production command-line interface on a fresh copy of the measurement set, so the timings include reading the data, forming the products, detecting, and writing the FLAG column back, which is what the pipeline actually pays. On a single workstation with an Intel Core Ultra 9 185H and an RTX 4060 laptop GPU, Pooh took 17.6 s in GPU mode and 17.0 s in CPU mode, corresponding to 6.0 and 6.2 million samples per second, or about 1.5 million visibilities per second. Nimki took 37.2 s on the same data, or 2.8 million samples per second.
To separate the cost of detection from the cost of data handling, we also timed the kernels alone, on synthetic dynamic spectra held in memory, with compilation excluded and, in the GPU case, with the arrays already resident on the device. Table 2 gives the result. SumThreshold sustains 6.7 × 10 visibilities per second on the CPU and 6.4 × 10 on the GPU. The two per-sample tests are faster by between one and two orders of magnitude, reaching 2.3 × 10 and 1.8 × 10 visibilities per second on the CPU and 3.7 × 10 and 2.8 × 10 on the GPU, since each performs a single comparison per sample against a threshold that has already been computed. The gap is the price of the window accumulation of Equation (2), which sweeps the data twice for every value of and is accordingly some forty times more expensive than a per-sample test. It buys the sensitivity to faint but extended interference described above, and on any realistic dataset it is paid out of I/O time rather than added to it.
The GPU is of little help to SumThreshold. At the windows are short and the memory access is strided, so the kernel is limited by bandwidth rather than by arithmetic and the device offers no advantage over the 22 CPU threads. It gives about a factor of 1.6 on the two per-sample tests, which are already fast enough for the difference not to matter. This is consistent with the end-to-end timings, where the GPU and CPU modes were also indistinguishable.
Comparing the two sets of measurements identifies where the time is spent. Detecting the whole MeerKAT sub-band requires 1.057 × 10 samples to pass through the SumThreshold kernel, which at the measured rate takes 0.40 s on the CPU and 0.42 s on the GPU, against end-to-end times of 17.0 and 17.6 s. The detection kernel therefore accounts for about 2 % of what the pipeline actually spends, and the per-channel statistics for a further 4 %. The remaining 93 % is reading the measurement set, forming the products, and writing the FLAG column back. A second measurement confirms that this residue is dominated by I/O: repeating the run with identical settings on a 15 GB measurement set, 4.6 times larger, the rate fell to about 1.0 million samples per second, so that the job took 27 times longer for 4.6 times the data. Once the working set no longer fits comfortably in memory, throughput is set by the disk. The practical consequence is that optimising the detection kernels further would yield almost nothing, whereas keeping each job small enough to remain in memory yields a great deal.
Imaging
For imaging and deconvolution CHARIZARD uses WSCLEAN ([32]), which implements CLEAN ([14]) over a w-stacking gridder. We chose it because the W-stacking algorithm is considerably faster. The pipeline calls WSCLEAN in three different situations, starting with making a dirty image, then for getting the model for self-calibration and then for the final imaging.
The settings we use are the same in all three cases apart from the depth. We use Briggs robust 0.0 ([2]) weights for the visibilities, which is our compromise between sensitivity and resolution and works reasonably for most fields. It is still not configurable but is a priority for the future releases. The image size and the cell size are set by the user in the configuration file.
We always use 4 output channels with -channels-out 4 and clean them jointly with -join-channels. Further, we fit a third-order polynomial in frequency to each clean component with -fit-spectral-pol 3. This keeps the spectral behaviour of the components physical and stops the individual channel images from becoming noisy at the edges of the band.
Extended emission is handled with multiscale cleaning [6, 33] through -multiscale, with the scale bias at 0.6. We let WSClean pick the scales itself. The loop gain is 0.1 and we use -mgain 0.7, so that each major cycle takes out 70 % of the peak before going back to the visibilities. We use the automatic masking of WSClean, with -auto-mask 5 and -auto-threshold 3. We also pass an explicit threshold from the self-calibration schedule, but since -auto-threshold 3 is always active, the effective stopping point is the shallower of the two, so the schedule can only ever be more conservative than the noise. In addition to the automatic mask the user can supply a FITS mask, and CHARIZARD can build one from the TGSS [16] and NVSS (J. J. Condon et al. 1998) catalogues through a helper module called Foresight5.
At the end of the self-calibration loop, in the case of successful polarization calibration, the final imaging is repeated for Stokes , , and separately. The Stokes run is also asked for a source list with -save-source-list.
Pipeline Workflow
The preceding section described the components in isolation. We now set out the order in which a run executes them (Figure 1). Configuration selects which optional stages are enabled and supplies the numerical parameters each one receives, but it does not expose the sequence.
Figure 1. The CHARIZARD workflow. Each box is one scheduler job and an ellipsis marks a repeat, so the width of a row is the number of jobs that stage runs at once; the axis that repeat runs over is named on the right. Reading that column downwards gives the design of the pipeline. The dashed group is the one point where two disjoint datasets are in processing together. At self-calibration the unit of work changes, since separate target fields share no solution, and again at the final imaging, where the sub-bands are recombined and the four Stokes parameters are imaged independently. is the number of sub-bands and the number of target fields.
Ingest and calibration planning
A run begins with a metadata pass over the measurement set which records the fields, spectral windows, channel counts, antennas and correlation products. The correlation types identify the feed basis, circular or linear. Field names are then compared against the standard flux calibrators, and the remaining fields are matched by position against the calibrator database described earlier. A positional match designates a phase calibrator and carries with it the recommended range for that calibrator in the observing band, which is applied to every solve involving that field. Fields without a match are treated as science targets. Full polarization calibration is enabled only when a leakage calibrator, a polarization angle calibrator, and a full Stokes model for the latter are all present; if any of the three is missing, the pipeline records the reason and continues in total intensity mode.
The resulting assignments are written to a YAML file alongside the data. Subsequent stages read this file rather than repeating the analysis, so that self-calibration obtains the surviving correlation count and the chosen reference antenna without re-deriving them. The file also serves as a machine-readable record of every decision the pipeline made.
Frequency partitioning
The partitioning of the band determines the throughput of the entire run. Spectral windows as delivered by the correlator reflect the instrument configuration. Five % of the channels at each spectral window edge are removed, since the response rolls off there and those channels are seldom usable. The remainder is treated as a single contiguous block and divided into equal sub-bands, with specified by the user. Each sub-band is written as an independent measurement set by mstransform, and the splits execute concurrently, one job per sub-band.
Every sub-band is written twice: once containing the calibrator fields and once containing the targets. The additional disk cost is modest, and the benefit is structural, since the calibrator and target visibilities thereafter reside in separate files. This separation is what permits the target fields to be flagged while the calibrator solutions are being computed, as the two jobs address disjoint data.
A further reduction is available when polarization calibration is not being performed. The cross-hand correlations are then of no use downstream, and the split retains only the parallel hands, , or , , halving the volume handled by every subsequent job.
The choice of involves a genuine trade off. Increasing it raises the number of concurrent jobs and lowers the memory required by each, but every sub-band must remain wide enough for the bandpass and leakage solutions within it to retain adequate signal to noise, and narrow enough that those solutions vary smoothly across it. For the uGMRT and MeerKAT datasets processed here we select such that each sub-band spans a few tens of MHz. The concurrency the scheduler will actually grant provides the other bound: once exceeds the number of simultaneously executing jobs, further subdivision yields no additional speed.
After the split the sub-bands are independent throughout cross-calibration. No bandpass, delay, gain or leakage solution in one sub-band depends on any other. Each pipeline stage is therefore a set of jobs submitted together, and the elapsed time of the stage approaches that of a single sub-band whenever the scheduler admits that many jobs at once.
Cross-calibration
Processing opens with the non-working antenna search and the initial flag application of § 2.2.2, followed by a conservative Poonh pass over the calibrators.
The reference antenna is selected only after this first excision pass. The ordering is deliberate: chosen on unflagged data, the metric will frequently favour an antenna whose apparent stability is an artefact of the interference it is sitting in. For each antenna we collect , the set of median parallel-hand visibility amplitudes of every baseline involving antenna , and evaluate
where is the fraction of that antenna’s samples already flagged. The metric is the amplitude stability of an antenna weighted by how much of its data survives. Antennas with fewer than a hundred surviving samples are not scored at all. Each sub-band nominates a can-
didate, and the majority selection becomes the reference antenna for the run. A reference antenna named in the configuration file overrides the vote.
The first calibration round then proceeds along the chain of § 2.2.1. The target field flagging is submitted concurrently with these solves, since the targets occupy separate files and no calibrator solution touches them; the longest flagging job of the run is thereby hidden behind the calibration and costs no additional elapsed time.
Once the first round completes, its solutions are applied to the calibrators and the corrected calibrator visibilities are flagged a second time, now at the tighter settings and with NIMKI included. This second excision is the more productive of the two. Low level interference which was concealed beneath the bandpass shape and the gain variation in the raw data becomes conspicuous once both have been divided out. The full chain is then re-solved against the cleaned data, and only these second-round tables are transferred to the science targets. A final flagging pass is applied to the corrected targets before imaging begins.
Self-calibration, imaging and direction dependent calibration
Self-calibration [7, 35] follows. At this point the unit of work changes. Until this point it was the sub-band; from here it becomes the (target field, sub-band) pair, since separate targets share no solutions. Each pair is extracted into its own measurement set and averaged in frequency by a configurable factor, ten by default.
Each round performs the same four operations in sequence: flag, image, solve, apply. Progression across rounds is governed by a single factor , with a default of two. At each round the clean iteration budget is multiplied by while the clean threshold and the solution interval are divided by it, both subject to floors which prevent the schedule from running away. The coupling is intentional, since the three quantities are not independently justifiable: a deeper clean is warranted only if the gain solutions have improved, and a shorter solution interval only if the sky model has improved. A single parameter therefore moves all three together, with giving a cautious schedule and the standard one. The default is four phase-only rounds followed by two amplitude and phase rounds.
Where it is enabled, the direction-dependent stage (see e.g. C. Tasse et al. 2018) follows. The sub-bands of a field are recombined, and the final Stokes image is catalogued with PyBDSF [28]. Catalogue entries above a configurable flux threshold become the peeling directions. Crystalball6 predicts the model for each direction into a separate visibility column, after which QuartiCal [21] solves a direction-dependent delay term together with a direction-dependent gain for every direction in a single pass over the data. The corrupted models of the peeling directions are subtracted, and a final deep WSClean run images the residual column.
Failure handling
A run comprising several hundred scheduler jobs will encounter failures, and the pipeline requires a defensible policy for them. HOUSEKEEPER does not rely on exit codes, since CASA based tasks routinely report errors in their logs while returning success. Each job log is instead parsed in full and compared against a curated list of benign messages, among them leap second warnings and Numba deprecation notices; any error line absent from that list marks the job as failed irrespective of its exit status. Each stage additionally verifies that the products it was expected to create are present before it is recorded as complete. An excessively strict criterion costs a repeated job, whereas an excessively permissive one costs a corrupted final image, and we have resolved the asymmetry in favour of strictness.
The treatment of a failed sub-band is left to the user through a single switch, which we term ‘brotherhood’. When enabled, which is the default, a stage succeeds only if it succeeded for every sub-band, and any failure halts the run at that point with the offending logs identified. When disabled, failed sub-bands are removed from the active set and processing continues with the remainder.
Results
We benchmark CHARIZARD on already available MeerKAT observations. We choose S band due to immediate availability and as a general case. The MeerKAT S-band system [23] covers 1750–3500 MHz, from which an 875 MHz digital filter selects one of five overlapping sub-bands [39]. Two of our observations were recorded in S0 (1750–2625 MHz) and one in S1 (1968.75–2843.75 MHz). MeerKAT S band operates with linear feed and data were processed with polarization calibration enabled. We have used four subbands during processing. All the jobs were run on the NCRA bhima cluster under OpenPBS, with each job given one node and eight cores. Bhima has a total of 4 compute nodes, each with 64 CPU cores in dual-socket configuration and 2 TB RAM (256 cores, 8 TB RAM total). Exemplary benchmarking observation details can be found in Table 3.
| 2026 Feb 28 | 2026 Mar 1 | 2026 Jun 7 | |
| Date | 2026 Feb 28 | 2026 Mar 1 | 2026 Jun 7 |
| Filter sub-band | S0 | S0 | S1 |
| Frequency (MHz) | 1750–2625 | 1750–2625 | 1968.8–2843.5 |
| Antennas | 58 | 58 | 60 |
| Reference antenna | m033 | m033 | m040 |
| Target fields | J0159.8−0849<br>J0242.5−2132 | J0011.7−1523<br>J0014.3−3022 | ACT-CL J0102−49154 |
| Flux density, bandpass, leakage | J0408−6545 | J0408−6545 | J0408−6545 |
| Phase | J0219+0120,<br>J0242−2132 | J0025−2602 | J0133−5200 |
| Polarization angle | J0521+1638 | J0521+1638 | J0521+1638 |
| Image size, cell | , | , | , |
| Scheduler jobs | 168 | 164 | 130 |
Table 3. The three benchmark observations.
Calibration accuracy
We report the calibration accuracy on the calibrator visibilities. For every 2 MHz of frequency span of every sub-band we vector-average CORRECTED_DATA over all baselines and times of a calibrator and form , , and . On J0408−6545, which is our principal calibrator, the residual linear polarization is % and the residual circular polarization %. The worst 2 MHz bin reaches %. The recovered Stokes sits at times the model. On J0521+1638 the recovered position angle is against a model value of , and the spurious circular polarization is %. No polarization solution of any kind is derived on the phase calibrator J0133−5200, and it returns %.
Imaging the leakage calibrator back from the same corrected data gives the image-plane equivalent, shown in Figure 2. The calibrator carries 8.26 Jy at the phase centre, so a leakage of one part in ten thousand can
Figure 2. The leakage calibrator J0408−6545 imaged back from CORRECTED_DATA in all four Stokes parameters, over a four arcminute cutout. The solve treats this source as unpolarized, so the expected result is a point source in and nothing in , or . Each panel has its own colour bar and its own asinh scale stretched to its own peak. The radial striping is the dynamic range limit around an 8 Jy point source.
still be seen in the images. Read at the Stokes peak pixel, the multi-frequency synthesis images give , and mJy beam on 8263.7 mJy beam, so and %. Across the sixteen output channels has a median of 0.085 % and a worst channel of 0.127 %, and a median of 0.024 % and a worst channel of 0.052 %.
All of these figures are on-axis. On the forty brightest sources of the El Gordo field the median fractional polarization is 1.01 % inside the half-power point of the primary beam and 3.54 % outside it, against 0.13 % on-axis. Part of the inner figure is intrinsic to the sources and it is therefore an upper limit, but the growth with radius is not. Polarimetry away from the pointing centre needs a beam model that the pipeline does not currently apply.
Image quality
The El Gordo field was imaged with a bandwidth of 787 MHz with WSClean at the settings of § 2.2.3, giving an pixel image at per pixel, on a side, with a restoring beam at a reference frequency of 2.406 GHz. The same visibilities, weighting and deconvolution produced all four Stokes parameters. Figure 3 shows the inner and Figure 4 the central ten arcminutes.
Figure 3. The inner 1°.4 of the El Gordo field in Stokes , , and . , and share one symmetric colour scale of five times the noise; has its own asinh scale, clipped well below its peak so that faint sources stay visible at page size. The dotted circle is the half-power point of the primary beam.
Figure 4. The central ten arcminutes, each panel on its own colour scale stretched to its own peak. and are three orders of magnitude below , so this scaling is what makes the polarized emission visible.
The noise is 4.11, 4.10, 4.07 and 4.07 Jy beam in , , and , measured as 1.4826 times the median absolute deviation of the full map. Rather than compare against an assumed system temperature we use Stokes as the reference: the sky is circularly polarized far below this level, so a image made from the same visibilities with the same weighting and deconvolution is a probe of the thermal noise directly. The ratio then gives the degradation of the total intensity image by everything that is not thermal noise, such as residual calibration error, deconvolution error, confusion and the sidelobes of imperfectly subtracted sources. We measure 1.010, and . The total intensity image is within 1 % of its own thermal floor.
Astrometry and flux density scale
The tests so far compare the pipeline against the models it was given. Matching with an external catalogue confirms whether the positions and flux densities agree with an independent instrument. We use the Rapid ASKAP Continuum Survey (D. McConnell et al. [25]), carried out with ASKAP (A. W. Hotan et al. [15]), specifically the RACS-low first data release source catalogue (C. L. Hale et al. [12]), at 887.5 MHz with a restoring beam and a median positional uncertainty near one arcsecond in these fields. The comparison uses the 2026 February 28 observation, whose two target fields lie well inside the RACS footprint.
We correct the primary beam measured holographically by M. S. de Villiers (2023). After primary beam correction, the PyBDSF (N. Mohan & D. Rafferty [28]) was used to make a source catalogue. Cataloguing the corrected images at a island and pixel threshold returns 720 sources in the two target fields, 407 in J0159.8−0849 and 313 in J0242.5−2132.
Matching is done two ways. For astrometry we take each catalogued source and find the nearest RACS entry within . For flux density we work outward from RACS.
Of the 720 catalogued sources, 113 have a RACS counterpart within . The median offset is in right ascension and in declination. Against a four to six arcsecond beam this is under a tenth of a beam, and it is comparable to the positional uncertainty of RACS itself. The astrometry is limited by the reference rather than by the pipeline.
The flux comparison needs an assumed spectral index, since RACS-low carries no spectral information and 887.5 MHz to 2.187 GHz is a factor of 2.5. At the median ratio of measured to extrapolated flux density over the 112 matched entries is 1.06, with the two fields at 1.08 and 0.99. The ratio shows no trend with radius.
A uGMRT example
To validate the pipeline with a different instrument, we also ran CHARIZARD on a uGMRT band-4 observation of the field of the galaxy cluster PSZ2 G071.21+28.86 ([38]). The observation is summarised in Table 4. 3C48 is the flux density and bandpass calibrator. 1845+401, 3C468.1 and 3C345 were all identified as phase calibrators. The feeds are circular and no polarization calibrators were observed, so the pipeline ran in total intensity mode and kept only and . We used four sub-bands. Self-calibration ran five phase-only rounds followed by two amplitude and phase rounds.
| PSZ2 G071.21+28.86 | |
| Date | 2024 Mar 11 |
| Band, correlator | Band 4, GWB |
| Frequency (MHz) | 550–750 |
| Channels | 4096 × 48.8 kHz |
| Antennas | 30 |
| Reference antenna | C06 |
| Target field | G71+28 |
| Time on target (h) | 3.1 |
| Flux density, bandpass | 3C48 |
| Phase | 1845+401, 3C468.1, 3C345 |
| Polarization | none |
| Image size, cell | 9600, |
Table 4. The uGMRT observation.
The four sub-bands were imaged together over 180 MHz, giving a pixel image at per pixel with a restoring beam at 650 MHz. The WSClean settings are those of § 2.2.3. Figure 6 shows the inner and the central 16 arcminutes. The noise is 14.0 Jy beam. The image is direction independent, and the brightest sources in the field still carry artefacts around them.
Figure 6. The uGMRT band-4 image of the PSZ2 G071.21+28.86 field at 650 MHz, before primary beam correction. Left: the inner 1.4°; the dotted circle is the half-power point of the primary beam and the box marks the right panel. Right: the central 16 arcminutes around the cluster, with contours at 0.165 × mJy beam, starting at five times the local noise. Both panels use an asinh scale, and the restoring beam is drawn at the bottom left.
We corrected the primary beam with Finalflash7. The field lies at a declination of , which is outside RACS-low. For the positions we use instead the second data release of the LOFAR Two-metre Sky Survey (LoTSS-DR2; T. W. Shimwell et al. [41]) at 144 MHz, whose resolution is very close to ours. For the flux densities we use NVSS (J. J. Condon et al. 1998) at
Figure 5. The 2026 February 28 images against RACS-low. Left: position offsets, RACS minus CHARIZARD, for every catalogued source with a RACS counterpart within 10″; dotted circles at 1″ and 2″, cross at the median. Right: measured flux density at 2.187 GHz after the primary beam correction, against the RACS value extrapolated to the same frequency with α = −0.8, coloured by distance from the pointing centre. The solid line is equality.
1.4 GHz. The matching is done the same way as before. PyBDSF at a island and pixel threshold returns 555 sources.
Of the 555 sources, 361 have a LoTSS counterpart within 10″. The median offset is −0.18″ in right ascension and +0.39″ in declination, with a median absolute deviation of 0.42″ and 0.37″, again under a tenth of the beam (Figure 7).
Figure 7. The uGMRT image against external catalogues. Left: position offsets, LoTSS-DR2 minus CHARIZARD; dotted circles at 1′′ and 2′′, cross at the median. Right: measured flux density at 650 MHz after primary beam correction, summed within 30′′ of each NVSS position, against the NVSS value extrapolated with , coloured by distance from the pointing centre. The point far below the line is the north-eastern arc of the cluster, which NVSS lists as a single component 2′ across. The solid line is equality.
At α = −0.8 the median ratio of measured to extrapolated flux density over the 43 NVSS sources is 1.13. If we instead take the spectral index of each source from LoTSS and NVSS together and interpolate to 650 MHz, the median ratio is 1.22.
Performance
Every stage of a run is a scheduler job. We use the recorded database, which holds the submission, start and end time of each job and the cores it held. Figure 8 shows elapsed wall-time for all the jobs from the El Gordo run.
Figure 8. Every job of the El Gordo run on a wall-clock axis, from the Housekeeper database. Each bar is one scheduler job; overlapping bars ran at the same time, so where the bars stop overlapping is where the workflow serialises. Colour marks the phase and dotted lines the phase boundaries. The run performed 48.6 core-hours of work in 18.4 hours.
The run completed 48.6 core-hours in 18.4 hours of elapsed time. Cross-calibration took 28.7 core-hours over 92 jobs, self-calibration 17.0 over 34, and the final imaging 2.8 over 4, one per Stokes parameter.
The shape of Figure 8 shows where the parallelism comes from and where it stops. Through cross-calibration the four sub-bands are independent, so each stage is four jobs submitted together and costs about what one sub-band costs. The overlap is wider than that alone would give because the target fields are flagged concurrently with the calibrator solves. The self-calibration loop cannot be arranged that way, since each round must finish before the next begins and the solve waits on the imaging within a round, so its 17.0 core-hours spread across 9.3 hours at a concurrency below two. Final imaging is four jobs run one after another. In the case of multiple fields, CHARIZARD treats them independently in the self-calibration.
Added up by kind, flagging is 9.9 core-hours, a fifth of the run: 1.3 before calibration, 0.3 on the calibrators after the first round, 4.9 in the post-calibration pass, 2.6 in the final pass and 0.7 inside the self-calibration loop. CHARIZARD also implements an experimental peeling routine. That would be of interest in the next version of the pipeline release.
Conclusions
We have presented CHARIZARD, a pipeline that carries radio interferometric data from a raw measurement set through flagging, cross-calibration, self-calibration and imaging to full-Stokes images, and which is organised around distributing that work. The whole of it is expressed as ordinary PBS or SLURM jobs through Housekeeper, and every computation runs inside a single rootless container [10]. The conclusions are as follows:
CHARIZARD splits the frequency axis into subbands and the data into independent target fields, and runs each piece as its own scheduler job. Subbands share no bandpass, delay, gain or leakage solution, and separate targets share no self-calibration solution. The unit of work is the sub-band through cross-calibration and the field and sub-band pair once imaging begins.
The pipeline calibrates full polarization automatically, for both linear and circular feeds. CHARIZARD respects models and UV ranges for calibration for known calibrators with provision to supply user defined models and calibration choices.
At the end of the self-calibration loop the pipeline images all four Stokes parameters. The final products include self-calibrated full Stokes images and an optional source list. An experimental direction dependent step is also implemented but not extensively tested.
On the El Gordo run with MeerKAT this gave 48.6 core-hours of work in 18.4 hours of elapsed time, a factor of 2.6, across 130 jobs. The residual on-axis instrumental polarization is 0.13 per cent in linear and 0.06 per cent in circular, and imaging the leakage calibrator back from the corrected data confirms it at 0.085 per cent per channel. The field reaches 4.11 Jy beam over 787 MHz at with , which places the image at its thermal floor.
Against RACS-low, positions agree to in right ascension and in declination over 113 sources, smaller than the systematic offsets RACS itself shows against other surveys, and flux densities agree to a median ratio of 1.06.
On a uGMRT band-4 observation the image reaches 14.0 Jy beam over 180 MHz at , positions agree with LoTSS-DR2 (T. W. Shimwell et al. [41]) to in right ascension and in declination over 361 sources, and with median flux density ratio of 1.3 compared to NVSS (J. J. Condon et al. 1998).
CHARIZARD does not yet correct direction-dependent polarization. Leakage grows from 0.13 per cent on axis to 1.01 per cent inside the half-power point and 3.54 per cent beyond it. CHARIZARD still does not do any direction dependent polarization correction.
The new age of radio imaging looks promising, and equally heavy on data. CHARIZARD attempts to address the processing bottleneck with a framework built on distributed job scheduling and tracking. With a centrally maintained docker image, the pipeline eases the distribution of the packages and serves as an example framework to process current and upcoming interferometer measurements in full polarization.
Software Availability
CHARIZARD is publicly available at https://github.com/arpan-52/CHARIZARD, together with HOUSEKEEPER, CATBOSS, FORESIGHT and FINALFLASH. The container image is also published as apal52/charizard-pipeline on Docker Hub 8. The runs reported here used the 20260802 tag.
Acknowledgements
We acknowledge funding from the Department of Atomic Energy for the project “Next Generation Instrumentation for Radio Astronomy” with ID RTI4017. We thank the staff of the GMRT for making these observations possible. The GMRT is run by the National Centre for Radio Astrophysics of the Tata Institute of Fundamental Research. The MeerKAT telescope is operated by the South African Radio Astronomy Observatory, which is a facility of the National Research Foundation, an agency of the Department of Science and Innovation. This research has made use of the NASA/IPAC Extragalactic Database (NED), which is operated by the Jet Propulsion Laboratory, California Institute of Technology, under contract with the National Aeronautics and Space Administration. The authors acknowledge the use of Claude (Anthropic, Claude Sonnet 5) for editorial assistance and improving the clarity and flow of this manuscript.
This paper was built using the Open Journal of Astrophysics LaTeX template. The OJA is a journal which provides fast and easy peer review for new papers in the astro-ph section of the arXiv, making the reviewing process simpler for authors and referees alike. Learn more at http://astro.theoj.org.
References
- [1]Bhatnagar, S., Hsieh, M., Madsen, F., & Jagannathan, P. 2025, in 2025 United States National Committee of URSI National Radio Science Meeting (USNC-URSI NRSM), 282, doi: 10.23919/USNC-URSINRSM66067.2025.10907007
- [2]Briggs, D. S. 1995, PhD thesis, New Mexico Institute of Mining and Technology
- [3]CASA Team. 2022, CASA, the Common Astronomy Software Applications for Radio Astronomy, PASP, 134, 114501
- [4]Collier, J. D., Frank, B., Sekhar, S., & Taylor, A. R. 2021, in 2021 XXXIVth General Assembly and Scientific Symposium of the International Union of Radio Science (URSI GASS), 1, doi: 10.23919/URSIGASS51995.2021.9560276
- [6]Cornwell, T. J. 2008, Multiscale CLEAN Deconvolution of Radio Synthesis Images, IEEE Journal of Selected Topics in Signal Processing, 2, 793DOI
- [7]Cornwell, T. J., & Wilkinson, P. N. 1981, A new method for making maps with unstable radio interferometers, MNRAS, 196, 1067, doi: 10.1093/mnras/196.4.1067DOI
- [9]Dewdney, P. E., Hall, P. J., Schilizzi, R. T., & Lazio, T. J. L. W. 2009, The Square Kilometre Array, Proceedings of the IEEE, 97, 1482
- [10]Gomes, J., Bagnaschi, E., Campos, I., et al. 2018, Enabling rootless Linux containers in multi-user environments: the rudocker tool, Computer Physics Communications, 232, 84
- [11]Gupta, Y., Ajithkumar, B., Kale, H. S., et al. 2017, The upgraded GMRT: opening new windows on the radio Universe, Current Science, 113, 707DOI
- [12]Hale, C. L., McConnell, D., Thomson, A. J. M., et al. 2021, The Rapid ASKAP Continuum Survey Paper II: First Stokes I Source Catalogue Data Release, PASA, 38, e058, doi: 10.1017/pasa.2021.47DOI
- [13]Hamaker, J. P., Bregman, J. D., & Sault, R. J. 1996, Understanding radio polarimetry. I. Mathematical foundations, A&AS, 117, 137DOI
- [14]Högbom, J. A. 1974, Aperture Synthesis with a Non-Regular Distribution of Interferometer Baselines, A&AS, 15, 417
- [15]Hotan, A. W., Bunton, J. D., Chippendale, A. P., et al. 2021, Australian Square Kilometre Array Pathfinder: I. System description, PASA, 38, e009, doi: 10.1017/pasa.2021.1DOI
- [16]Intema, H. T., Jagannathan, P., Mooley, K. P., & Frail, D. A. 2017, The GMRT 150 MHz all-sky radio survey. First alternative data release TGSS ADR1, A&A, 598, A78DOI
- [17]Jonas, J., & MeerKAT Team. 2016, in Proceedings of MeerKAT Science: On the Pathway to the SKA, PoS(MeerKAT2016), 001
- [18]Józsa, G. I. G., White, S. V., Thorat, K., et al. 2020, in ASP Conf. Ser., Vol. 527, Astronomical Data Analysis Software and Systems XXIX, 635
- [19]Kale, R., & Ishwara-Chandra, C. H. 2021, CAPTURE: a continuum imaging pipeline for the uGMRT, Experimental Astronomy, 51, 95DOI
- [20]Kent, B. R., Masters, J. S., Chandler, C. J., et al. 2020, in ASP Conf. Ser., Vol. 527, Astronomical Data Analysis Software and Systems XXIX, 571
- [21]Kenyon, J. S., Perkins, S. J., Bester, H. L., et al. 2025, Africanus II. QuartiCal: Calibrating radio interferometer data at scale using Numba and Dask, Astronomy and Computing, 52, 100962, doi: 10.1016/j.ascom.2025.100962DOI
- [22]Kenyon, J. S., Smirnov, O. M., Grobler, T. L., & Perkins, S. J. 2018, CubiCal – fast radio interferometric calibration suite exploiting complex optimization, MNRAS, 478, 2399DOI
- [23]Kramer, M., et al. 2016, The MeerKAT Max-Planck S-band System, Proceedings of Science, MeerKAT2016, 003
- [24]Lam, S. K., Pitrou, A., & Seibert, S. 2015, in Proc. Second Workshop on the LLVM Compiler Infrastructure in HPC, 1–6, doi: 10.1145/2833157.2833162
- [25]McConnell, D., Hale, C. L., Lenc, E., et al. 2020, The Rapid ASKAP Continuum Survey I: Design and first results, PASA, 37, e048, doi: 10.1017/pasa.2020.41DOI
- [26]McMullin, J. P., Waters, B., Schiebel, D., Young, W., & Golap, K. 2007, in ASP Conf. Ser., Vol. 376, Astronomical Data Analysis Software and Systems XVI, 127
- [27]Menanteau, F., Hughes, J. P., Sifón, C., et al. 2012, The Atacama Cosmology Telescope: ACT-CL J0102−4915 "El Gordo", a Massive Merging Cluster at Redshift 0.87, ApJ, 748, 7, doi: 10.1088/0004-637X/748/1/7DOI
- [28]Mohan, N., & Rafferty, D. 2015, PyBDSM: Python Blob Detection and Source Finder, Astrophysics Source Code Library, ascl:1502.007
- [29]Moldón, J. 2021, e-MCP: e-MERLIN CASA pipeline, Astrophysics Source Code Library, ascl:2109.006
- [30]Murphy, E. J., Bolatto, A., Chatterjee, S., et al. 2018, in ASP Conf. Ser., Vol. 517, Science with a Next-Generation Very Large Array, 3
- [31]Offringa, A. R., de Bruyn, A. G., Biehl, M., et al. 2010, Post-correlation radio frequency interference classification methods, MNRAS, 405, 155DOI
- [32]Offringa, A. R., McKinley, B., Hurley-Walker, N., et al. 2014, WSClean: an implementation of a fast, generic wide-field imager for radio astronomy, MNRAS, 444, 606DOI
- [33]Offringa, A. R., & Smirnov, O. 2017, An optimized algorithm for multiscale wideband deconvolution of radio astronomical images, MNRAS, 471, 301DOI
- [34]Offringa, A. R., van de Gronde, J. J., & Roerdink, J. B. T. M. 2012, A morphological algorithm for improving radio-frequency interference detection, A&A, 539, A95
- [35]Pearson, T. J., & Readhead, A. C. 1984, Image Formation by Self-Calibration in Radio Astronomy, ARA&A, 22, 97, doi: 10.1146/annurev.aa.22.090184.000525DOI
- [36]Perley, R. A., & Butler, B. J. 2013, An Accurate Flux Density Scale from 1 to 50 GHz, ApJS, 204, 19
- [37]Perley, R. A., & Butler, B. J. 2017, An Accurate Flux Density Scale from 50 MHz to 50 GHz, ApJS, 230, 7, doi: 10.3847/1538-4357/aa6df9DOI
- [38]Planck Collaboration, Ade, P. A. R., Aghanim, N., et al. 2016, Planck 2015 results. XXVII. The second Planck catalogue of Sunyaev-Zeldovich sources, A&A, 594, A27, doi: 10.1051/0004-6361/201525823
- [39]Ranchod, S., Wagenveld, J. D., Klöckner, H.-R., et al. 2025, A first glimpse at the MeerKAT DEEP2 field at S-band, MNRAS, 536, 3647, doi: 10.1093/mnras/stae2754DOI
- [40]Sault, R. J., Hamaker, J. P., & Bregman, J. D. 1996, Understanding radio polarimetry. II. Instrumental calibration of an interferometer array, A&AS, 117, 149DOI
- [41]Shimwell, T. W., Dijkema, T. J., Tasse, C., et al. 2022, The LOFAR Two-metre Sky Survey. V. Second data release, A&A, 659, A1, doi: 10.1051/0004-6361/20212484DOI
- [42]Smirnov, O. M. 2011, Revisiting the radio interferometer measurement equation. I. A full-sky Jones formalism, A&A, 527, A106DOI
- [43]Smirnov, O. M., & Tasse, C. 2015, Radio interferometric gain calibration as a complex optimization problem, MNRAS, 449, 2668DOI
- [45]Thompson, A. R., Moran, J. M., & Swenson, G. W. 2017, Interferometry and Synthesis in Radio Astronomy, 3rd edn. (Cham: Springer)
- [46]van der Tol, S., Veenboer, B., & Offringa, A. R. 2018, Image Domain Gridding: a fast method for convolutional resampling of visibilities, A&A, 616, A27







