EHT-HOPS pipeline for millimeter VLBI data reduction
Lindy Blackburn, Chi-kwan Chan, Geoffrey B. Crew, Vincent L. Fish,, Sara Issaoun, Michael D. Johnson, Maciek Wielgus, Kazunori Akiyama, John, Barrett, Katherine L. Bouman, Roger Cappallo, Andrew A. Chael, Michael, Janssen, Colin J. Lonsdale, Sheperd S. Doeleman

TL;DR
This paper introduces an automated pipeline for calibrating and reducing millimeter VLBI data, improving imaging quality for high-resolution astronomical observations by addressing atmospheric and array heterogeneity challenges.
Contribution
The authors develop a new automated data reduction pipeline based on HOPS, tailored for millimeter VLBI, enabling better calibration and imaging for astronomical research.
Findings
Pipeline successfully tested on 86 GHz GMVA data with ALMA.
Enhanced calibration improves image quality over classical methods.
Supports standard data formats for astronomical analysis.
Abstract
We present the design and implementation of an automated data calibration and reduction pipeline for very-long-baseline interferometric (VLBI) observations taken at millimeter wavelengths. These short radio-wavelengths provide the best imaging resolution available from ground-based VLBI networks such as the Event Horizon Telescope (EHT) and the Global Millimeter VLBI Array (GMVA), but require specialized processing due to the strong effects from atmospheric opacity and turbulence as well as the heterogeneous nature of existing global arrays. The pipeline builds upon a calibration suite (HOPS) originally designed for precision geodetic VLBI. To support the reduction of data for astronomical observations, we have developed an additional framework for global phase and amplitude calibration which provides output in a standard data format for astronomical imaging and analysis. We test the…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18
Figure 19| Source | AIPS | HOPS |
|---|---|---|
| 1749+096 | 120 | 123 |
| J1924–2914 | 309 | 304 |
| NRAO 530 | 415 | 443 |
| Sgr A∗ | 196 | 461 |
| Total | 1040 | 1331 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
EHT-HOPS pipeline for millimeter VLBI data reduction
Lindy Blackburn
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Chi-kwan Chan
University of Arizona, 933 North Cherry Avenue, Tucson, AZ 85721, USA
Geoffrey B. Crew
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
Vincent L. Fish
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
Sara Issaoun
Department of Astrophysics/IMAPP, Radboud University, P.O. Box 9010, 6500 GL Nijmegen, The Netherlands
Michael D. Johnson
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Maciek Wielgus
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Kazunori Akiyama
National Radio Astronomy Observatory, 520 Edgemont Rd, Charlottesville, VA 22903, USA
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
National Astronomical Observatory of Japan, 2-21-1 Osawa, Mitaka, Tokyo 181-8588, Japan
John Barrett
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
Katherine L. Bouman
California Institute of Technology, 1200 East California Boulevard, Pasadena, CA 91125, USA
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Roger Cappallo
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
Andrew A. Chael
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Michael Janssen
Department of Astrophysics/IMAPP, Radboud University, P.O. Box 9010, 6500 GL Nijmegen, The Netherlands
Colin J. Lonsdale
Massachusetts Institute of Technology, Haystack Observatory, 99 Millstone Rd, Westford, MA 01886, USA
Sheperd S. Doeleman
Center for Astrophysics Harvard & Smithsonian, 60 Garden Street, Cambridge, MA 02138, USA
Black Hole Initiative, Harvard University, 20 Garden Street, Cambridge, MA 02138, USA
Abstract
We present the design and implementation of an automated data calibration and reduction pipeline for very long baseline interferometric (VLBI) observations taken at millimeter wavelengths. These short radio wavelengths provide the best imaging resolution available from ground-based VLBI networks such as the Event Horizon Telescope (EHT) and the Global Millimeter VLBI Array (GMVA) but require specialized processing owing to the strong effects from atmospheric opacity and turbulence as well as the heterogeneous nature of existing global arrays. The pipeline builds on a calibration suite (HOPS) originally designed for precision geodetic VLBI. To support the reduction of data for astronomical observations, we have developed an additional framework for global phase and amplitude calibration that provides output in a standard data format for astronomical imaging and analysis. The pipeline was successfully used toward the reduction of 1.3 mm observations from the EHT 2017 campaign, leading to the first image of a black hole “shadow” at the center of the radio galaxy M87. In this work, we analyze observations taken at 3.5 mm (86 GHz) by the GMVA, joined by the phased Atacama Large Millimeter/submillimeter Array in 2017 April, and demonstrate the benefits from the specialized processing of high-frequency VLBI data with respect to classical analysis techniques.
techniques: high angular resolution – techniques: interferometric
††facilities: GMVA (VLBA, Effelsberg, IRAM:30m, Yebes), GBT, ALMA††software: HOPS (Whitney et al., 2004), AIPS (Greisen, 2003), GNU Parallel (Tange et al., 2011), eht-imaging (Chael et al., 2016, 2018), Numpy (van der Walt et al., 2011), Scipy (Jones et al., 2001), Pandas (McKinney, 2010), Astropy (The Astropy Collaboration et al., 2013, 2018), Jupyter (Kluyver et al., 2016), Matplotlib (Hunter, 2007).
1 Introduction
In the technique of very long baseline interferometry (VLBI), signals from an astronomical source are recorded independently at multiple locations and later brought together for pairwise correlation. This process samples the coherence function of the incident radiation at separations corresponding to the baseline vectors between sites. The resolution probed by a baseline is determined by the interferometric fringe spacing, , in angular units on the sky, where the two-dimensional spatial frequency corresponds to the projected baseline vector in units of observing wavelength . Thus, the highest resolutions are achieved when sites have the widest possible separation and observe at the highest possible frequencies .
Two global networks exist for millimeter VLBI observations. The Global Millimeter VLBI Array111https://www3.mpifr-bonn.mpg.de/div/vlbi/globalmm (GMVA) operates at 3.5 mm (86 GHz) and includes the Very Long Baseline Array222https://science.nrao.edu/facilities/vlba (VLBA) and a number of large-aperture dishes with the required surface accuracy and sufficiently good local weather to operate at 3.5 mm. The Event Horizon Telescope333https://eventhorizontelescope.org (EHT) operates as an array at 1.3 mm (230 GHz), a wavelength at which only a handful of existing sites globally are able to observe. In 2017 April, both networks participated in science observations for the first time with the Atacama Large Millimeter/submillimeter Array (ALMA). ALMA acted as a phased array of 37 dishes (Matthews et al., 2018; Goddi et al., 2019), providing a highly sensitive anchor station that greatly expanded the sensitivity, resolution, and baseline coverage of the VLBI networks. In particular, the EHT 2017 array, operating over six geographical locations and including ALMA, was able to reach the necessary sensitivity and coverage in order to form the first VLBI images reconstructed at 1.3 mm wavelength and the necessary resolution in order to image and characterize the horizon-scale supermassive black hole “shadow” at the center of the radio galaxy M87 (Event Horizon Telescope Collaboration et al., 2019a, b, c, d, e, f).
At the heart of the VLBI technique is the correlation of the raw station data using either dedicated hardware or software. The correlation is manifest as an interference fringe that changes in an expected way as the Earth rotates. This is a simple but computationally expensive process that requires good, but nevertheless approximate, models in order to measure the interferometric fringe. Some post-correlation processing is then required to detect and analyze the fringes to obtain scientifically useful results.
The VLBI correlator estimates the complex correlation for signals and between pairs of antennas,
[TABLE]
In this expression, is a correction factor of 0.88 accounting for the introduction of quantization noise during 2-bit digitization and (1 Jy for bright continuum sources) is the correlated flux density that varies by baseline. The system-equivalent flux density (SEFD Jy, see Section 3.1) reflects the original analog system noise in effective flux units of an astronomical source above the atmosphere, and the are station phase terms corresponding to residual geometric, atmospheric, and instrumental phase suffered by the signal before it is recorded. We adopt the convention of Rogers et al. (1974) where positive delay (and unwrapped phase) corresponds to the signal arriving at station 2 after station 1.
The primary residual systematics after correlation are small errors in delay and delay rate, which are related to the first-order variation of the baseline phase, , of the complex correlation between two sites in time and frequency (:
[TABLE]
Since phase error , the delay and delay rate are given by (Thompson et al., 2017, A12.28, A12.22)
[TABLE]
For linear phase drift, the coherence has a sinc profile
[TABLE]
as a function of accumulated phase drift, , so that maximum coherence occurs at the fringe solution where data are compensated for fringe phase rotation and the accumulated . First-order fringe searches vary the two parameters, delay and delay rate, and search for maximum coherence in excess correlated signal power over the full bandwidth and up to the length of a scan. The original signals are highly noise dominated (), and generally at least the first-order fringe correction must be applied in order to coherently average a sufficient number of samples and produce a level of correlated flux above the statistical (thermal) noise.
The EHT and GMVA are composed of heterogeneous collections of individual stations with varying sensitivities and characteristics, and they target high observing frequencies over wide bandwidths. For both VLBI networks, nonlinear phase systematics beyond the first-order fringe solution are important. These include phase variations over the observing band due to small variations in path delay versus frequency prior to digitization, as well as stochastic phase fluctuations in time due to achromatic path variations from atmospheric turbulence. The instrumental phase bandpass is typically constant over long timescales and can be solved using bright calibrator sources. Atmospheric phase is more difficult, as it is continuously varying and must be solved on-source. At millimeter wavelengths, the atmospheric phase can have a decoherence timescale of seconds, and compensating for it requires that the source be detectable on a baseline to within just some fraction of the decoherence time. The need to be able to measure and compensate for the atmosphere on-source at rapid timescales has been a primary driver of the wide recording bandwidths targeted by the EHT.
In Section 2 which follows, we introduce overall structure and algorithms behind the iterative phase calibration applied during the EHT-HOPS pipeline. In Section 3, we describe a suite of post-processing tools that perform absolute flux calibration and polarization gain ratio calibration, enabling the formation of calibrated Stokes visibility coefficients in a standard UVFITS file format. Section 4 describes the overall EHT-HOPS computing software organization and workflow. The EHT-HOPS pipeline is tested on a representative 3.5 mm GMVA+ALMA data set in Section 5, and the output of the pipeline is compared against a classical reduction pathway for low-frequency VLBI in terms of fringe detection, consistency of measured phase and amplitude, and similarity of derived images on blazar NRAO 530.
2 EHT-HOPS Pipeline
The current Haystack Observatory post-processing System444https://www.haystack.mit.edu/tech/vlbi/hops.html (HOPS) was born from the efforts of Alan Rogers in the late 1970s with a program called FRNGE, which was written in FORTRAN and designed to be efficient on an HP-21MX (later renamed HP-1000) minicomputer (Rogers, 1970; Rogers et al., 1974). With improvements in hardware and software, a rewrite and augmentation of the tool set were launched in the early 1990s by Colin Lonsdale, Roger Cappallo, and Cris Niell as driven by the needs of the of the geodetic community and of a move to higher frequencies in astronomical VLBI. The basic algorithms were adopted from FRNGE, but there was a complete rewrite of the code into (K&R) C and substantial revisions of the input/output, control and file structures, and graphical and summary analysis tools, resulting in the framework of the current HOPS system. This was followed by a substantial effort in the early to mid-2000s to develop tools for optimizing signal-to-noise (S/N) and deriving correction factors for data with imperfect coherence, based on analysis of amplitude with coherent averaging time (Rogers et al., 1995). Further evolution was provoked by the reemergence of software correlation (DiFX; Deller et al., 2011) and by the needs of EHT-scale millimeter VLBI in the 2010s, which brings us to HOPS in its current form.
Acknowledging its geodetic heritage, HOPS was optimized for precision on per-baseline delay and delay rate measurements, which are the fundamental quantities of interest for geodetic analysis programs. Consequently, it is somewhat light on support for some routine calibration processes found in some other astronomical software packages, such as the Astronomical Image Processing System (AIPS; Greisen, 2003) and the Common Astronomy Software Applications package (CASA; McMullin et al., 2007). Nevertheless, it provides a good framework for the reduction and analysis of millimeter VLBI data, where the complexities of atmospheric effects require ever more specialized processing to obtain reliable astronomical results.
Over the past decade, HOPS has been used extensively for the analysis and reduction of early EHT data (e.g., Doeleman et al., 2008, 2012; Fish et al., 2011, 2016; Akiyama et al., 2015; Johnson et al., 2015; Lu et al., 2018). The HOPS suite grew to support the evolving EHT instrument, with steadily increasing bandwidth (Whitney et al., 2013; Vertatschitsch et al., 2015), dual-polarization observations (Johnson et al., 2015), and a move from the Mark4 hardware correlator (Whitney et al., 2004) to the DiFX software correlator (Deller et al., 2011). Calibration strategies were also developed and implemented within HOPS in order to support the segmented averaging of amplitudes and bispectra (Johnson et al., 2015; Fish et al., 2016) as well as on-source phase stabilization (Johnson et al., 2015). The techniques improved the ability to build S/N of visibility amplitude and phase information for high-frequency EHT observations, in the presence of rapid atmospheric phase fluctuations.
For the needs of the EHT campaigns of 2017 and subsequent years, we have extended the basic HOPS framework with Python-based packages, included within the EHT Analysis Toolkit555https://github.com/sao-eht/eat (eat library). The Python libraries provide a convenient Python-based interface to the underlying HOPS binary and ASCII file formats via Python ctypes and Pandas DataFrames, and they provide a community-standard UVFITS output data format for downstream processing. The eat routines are also able to enforce a global (station-based) calibration solution across the VLBI array, locking together the baseline-based fringe solutions provided by the HOPS fourfit fringe fitter. The HOPS and eat software suites are packaged together into a EHT-HOPS pipeline, with a set of driver scripts that run an automated end-to-end calibration and reduction of EHT or GMVA correlated data given a minimal basic configuration.
The first five stages of the pipeline run several iterations of fourfit (Capallo, 2017), while solving for nonlinear phase corrections and a global fringe solution. The pipeline workflow is shown in Figure 1, and specific details of the fourfit stages are given below. Examples of various steps are provided via application of stages of the pipeline on a representative 3.5 mm GMVA+ALMA data set from 2017 (project code MB007), the scientific results of which are published in Issaoun et al. (2019). Details of the observations and data reduction are given in Section 5.1.
2.1 Data Flagging
Data selection and flagging are defined using HOPS ASCII control codes. Data selection involves setting the start and stop time of processing, as well as which frequency channels are processed. Flagging defines small intervals of time within the processed segment and small frequency ranges within a channel (notches) that have their data weights set to zero and are thus ignored when fringe fitting and visibility averaging. The EHT-HOPS pipeline does not currently implement automated flagging in either time or frequency, and these must be defined by hand from data inspection and telescope logs. However, HOPS tool aedit and custom time series and spectral plotting tools within the eat library are available to assist with identifying time and frequency ranges, as well as programmatic manipulation of the relevant HOPS control codes.
2.2 Bandpass Calibration
Bandpass response of an antenna can be understood in context of the signal path from Figure 2. In the simplified picture, the recorded signal is composed of the sum of received source signal and system noise , subject to a common transfer function and additive quantization noise before being digitally recorded to disk: . includes effects such as atmospheric attenuation, dish characteristics, and receiver response. System noise includes contributions such as receiver thermal noise, atmospheric emission, and radio-frequency interference. The common transfer function accounts for components like cable transmission and back-end electronics. Finally, the effects of low-bit quantization can be approximated as additive quantization noise that depends on the signal profile prior to recording. For noise-dominated signals with a flat spectrum, quantization noise is white and uncorrelated with the source signal, and the effect on the data is modeled in a straightforward way by the correlation amplitude efficiency factor from Equation 1.
The SEFD is defined as the source flux necessary to contribute equal signal power to the system noise. In terms of elements from Figure 2,
[TABLE]
where is the flux density of the (unpolarized) source that generates . Ignoring quantization and assuming a noise-dominated signal, the autocorrelation spectrum of the received signal is
[TABLE]
and the cross-correlation spectrum is
[TABLE]
as the system noise between sites is uncorrelated.
On a single baseline, the bandpass from both antennas 1 and 2 will directly affect the correlation coefficient measured (Equation 1). The DiFX software correlator (Deller et al., 2011), used for both EHT and GMVA correlation, computes averaged over 1 subchannel (0.5 MHz) and 1 AP (accumulation period, 0.5 s), as illustrated in Figure 3. The values for each AP are then normalized by their channel-average autocorrelation power during the DiFXMark4 data conversion stage (using DiFX conversion tool difx2mark4). This step removes the “autocorrelation” amplitude bandpass (at the resolution of a full channel) but leaves the residual cross-power amplitude bandpass from that reflects changes in SEFD over frequency. Also left is the combined phase bandpass, , which reflects very small and stable changes in instrumental path length as a function of frequency.
Stage 2 in the EHT-HOPS pipeline estimates and provides corrections for the relative phase bandpass over a baseline by averaging over an ensemble of high-S/N cross-correlation measurements to a common reference station. High-S/N fringes from the reference station (generally ALMA) to other stations in the network are taken from stage 1 output to estimate a single baseline phase and phase slope per 58 MHz channel by direct S/N-weighted average. Baselines that do not contain the reference antenna (station 0) can then be assumed to be subject to phase bandpass .
Because fourfit output is already channel averaged, it is not possible to directly measure intrachannel phase bandpass from detected fringes, regardless of S/N. Generally the phase evolution across each 58 MHz channel is small (), as is any possible coherence loss from residual intrachannel phase variation. To track situations of more rapid intrachannel phase variation, particularly near the 2 GHz band edge of the EHT, the first-order phase slope is also estimated using the differences between nearby channels, and a linear phase slope correction is implemented as a channel-by-channel “single-band-delay” (SBD) offset referenced to the center of each channel.
The total instrumental phase attributed to each station relative to the reference station is
[TABLE]
where within the range of each channel , is the average measured instrumental phase for channel taken at the channel reference frequency , and is a small single-band delay used to track phase variation within each 58 MHz channel. Due to the available tuning parameters in fourfit, the contribution is polarization dependent, while the contribution is taken as an average over both polarizations. An example of phase (and amplitude) bandpass for a GMVA baseline between Fort Davis and GBT at 86 GHz is given in Figure 4, before and after correction using the piecewise parameterization available in HOPS.
2.3 Atmospheric Phase
The phase evolution over time captured by the first-order fringe fit is insufficient for millimeter VLBI, where atmospheric turbulence causes nonlinear, stochastic phase evolution on timescales of seconds (Figure 5), much shorter than a typical VLBI scan length of minutes. Unlike the nonlinear corrections in phase from stable instrumental bandpass mentioned previously, atmospheric phase is continually changing and must be measured and corrected on-source. HOPS provides the ability to pre-correct nonlinear phase evolution over time using station-based ad hoc phases, where the term ad hoc is used to distinguish these arbitrary atmospheric phase corrections from the modeled linear phase drift due to delay rate. These nonlinear corrections are estimated and applied at stage 3 in the pipeline, resulting in an overall increase in scan-average S/N, as well as increased precision and overall self-consistency of the linear fringe solutions across the array.
Nonlinear time-dependent phase in the EHT-HOPS pipeline is estimated per scan using on-source detections from a single reference station to other stations in the array. The correlated signal must be strong enough so that phase can be estimated on a timescale that is short with respect to the atmospheric coherence time. Corrective phases relative to the reference station are then applied to the remaining stations, stabilizing relative phase due to station-based variation across the entire array. The following subsections describe how the reference station is chosen for each scan and how the data are stacked for short-timescale phase estimation. A stochastic atmospheric phase model of a known power spectrum is assumed so that the variation from atmospheric phase drift can be balanced against available S/N in the data. This sets the effective integration timescale for phase estimation, which is then performed in a round-robin estimation/application process to avoid self-tuning on statistical noise.
2.3.1 Reference Station Selection
Similar to instrumental phase, atmospheric phase corrections are assigned to each station relative to a reference station. However, since one reference antenna may not be present in all scans, the choice of reference antenna is made scan by scan by maximizing a statistic designed to capture the total measurable phase degrees of freedom using only baselines to the reference antenna. The scoring depends on the S/N from the proposed reference antenna to all remaining antennas , the S/N required for a good phase measurement , an S/N threshold below which false fringes appear , and an assumed phase coherence timescale s at 1.3 mm and 18 s at 3.5 mm, characteristic of challenging weather. Here is defined as the expected time span over which phase drifts by 1 rad (as defined later in Equation 14).
Each between a possible choice of reference station [math] and remaining station is taken as a quadrature sum of the individual from each of four polarization products , reflecting the fact that changes in atmospheric path delay do not depend on polarization and polarization products can be stacked for better S/N:
[TABLE]
The arctan logistic function quickly transitions from 0 to 1 as , and is used to apply a threshold below which to ignore likely false fringes. For a given baseline [math]– with scan-average S/N of , we estimate the number of segments that could be formed by splitting the scan in time, while maintaining an S/N above for each segment. This corresponds to the number of measurable degrees of freedom above some nominal statistical precision
[TABLE]
At very high S/N, the number of measurable degrees of freedom might be very large, corresponding to a very short segment duration. In this situation, the maximum useful degrees of freedom over total duration are limited by the number of phase measurements required to fully characterize any atmospheric variability. Correcting phase more rapidly than 5 times per gives rapidly diminishing returns, so we set
[TABLE]
Finally, we calculate the total useful degrees of freedom by summing over all baselines to the proposed reference station under a scheme that reflects the diminishing returns for measurable degree of freedom beyond the maximum useful number
[TABLE]
The reference station chosen for each scan and set as station [math] is the one that provides the largest for detections from that scan.
2.3.2 Data Alignment
When the time required to accumulate approaches , performance of on-source phase stabilization increases dramatically by stacking data prior to measuring phase. For example, by stacking two equal-sensitivity measurements and increasing the S/N by , the timescale over which phases can be reliably estimated is correspondingly reduced by a factor of two.
For the purpose of atmospheric phase estimation, the EHT-HOPS pipeline stacks data from all polarization products by aligning the data empirically before computing a weighted average. First, data are band averaged and adjusted to a common fringe solution, as prior to step 5 fringe globalization (Figure 1), different polarization products may have different delay rate solutions. The empirical phase offset between one of the polarization products and another is measured by segmented average
[TABLE]
where the length of each segment should be long enough to accumulate to .
The measured between one of the polarization products and others is then used to align and stack the original visibility data. While it may be challenging to accumulate sufficient S/N per , the S/N across an entire scan is many times larger so that is accurately measured. The same alignment procedure can be used to stack data from multiple independently processed bands when available.
2.3.3 Phase Model
Atmospheric phase is assumed to follow a random stochastic process due to a turbulent cascade. In this section we adopt a phase model appropriate for a single station, although the atmospheric phase corrections will cover the combined effects on a baseline. The model itself is used to set tuning parameters and needs to reflect broadly the ensemble behavior rather than be exact. The phase variation is captured by the phase structure function, which typically follows a power-law profile over a wide range of scales
[TABLE]
In this representation, the coherence timescale is the time after which phase is expected to drift on average by 1 rad. The power-law index will be modified at large scales (where energy is injected) and small scales (where energy is dissipated), but these limits are typically outside the primary timescale range of interest – from the minimum useful integration time up to the duration of a scan. For 2D Kolmogorov turbulence , and for 3D Kolmogorov turbulence (Thompson et al., 2017). Measured values of generally lie somewhere in between. The corresponding power spectrum is
[TABLE]
which is related to the structure function through the autocorrelation function
[TABLE]
and its Fourier transform
[TABLE]
Phase estimation is done using an atmospheric phase model drawn from a Savitzky–Golay (savgol) filter (Savitzky & Golay, 1964) applied to the visibility data, which is a running piecewise polynomial fit that has a convenient implementation in Scipy. The filter acts as a symmetric low-pass linear filter for regularly spaced data (Schafer, 2011). Real and imaginary components of the complex visibility time series are filtered separately, and the filtered visibilities are used to derive a smoothly varying interpolated phase estimate over time at the location of each data value.
The savgol filter fits an -degree polynomial over a window length , so that the effective integration time per degree of freedom is . The statistical phase noise for a measurement taken over is approximately
[TABLE]
where is the S/N in 1 s of accumulation, and we have ignored impact on S/N from coherence loss from atmospheric phase drift over the integration period.
In addition to statistical noise, there is residual phase noise from the inability of the smoothed model to capture true rapid phase variations. The residual noise after filtering by window function can be calculated from integrating residual power in the frequency domain:
[TABLE]
For a boxcar moving-average filter of length (equivalent to savgol filter of degree zero), the window function is and the residual power is
[TABLE]
Other window functions such as ideal low-pass and Gaussian give equally simple expressions, and all scale as . The boxcar response is a reasonable approximation to savgol filters of low nonzero degree.
The effective averaging time that minimizes total error is
[TABLE]
which is close to the where . We use this optimal to set the parameters of the savgol filter within the constraints of the filter construction (filter length in units of the correlator accumulation period is odd and equal to or greater than polynomial degree ),
[TABLE]
2.3.4 Round-robin Implementation
Atmospheric phase compensation requires a large number of parameters to be derived from data on-source in a regime that is often S/N limited. By restricting the number of fitted degrees of freedom based on available S/N, the previously outlined strategy helps to avoid introducing additional noise from over-fitting to mere statistical variations. However, some degree of fitting to thermal noise is inevitable, and this can lead to biases in derived quantities – such as a positive bias in coherently averaged visibility amplitude through the introduction of false coherence. To avoid biases from self-tuning, Johnson et al. (2015) estimate from and apply phases to data corresponding to different polarization products.
We employ a round-robin (leave-out-one) scheme for phase corrections that partitions over frequency to ensure that any phase adjustments are derived from data that are disjoint from the data they are being applied to. Because path variations due to the atmosphere are expected to be achromatic over the observing bandwidth, visibilities for each of the frequency channels can be phase stabilized using a smooth atmospheric phase model derived from the remaining channels. As long as the number of channels in the data is large (EHT bands are partitioned into 32 corresponding ALMA channels for correlation), the leave-out-one strategy uses most of the available S/N for estimating a phase model and avoids entirely issues of self-tuning. One drawback to the strategy is that it does not transition naturally to making one stable common phase adjustment to all channels in the limit of low S/N (or no correction at all), which is the desired behavior. Atmospheric phase correction at 86 GHz is demonstrated in Figure 5, where a strong baseline between ALMA and GBT is able to self-correct phases at a timescale of 2.5 s while using the round-robin approach over four independent channels.
2.3.5 Second-order Corrections
Because it is the atmospheric path length variations and not phase variations that we assume are achromatic, a small frequency-dependent adjustment is made to the original unwrapped phase corrections based on the relative difference of the channel frequency to a reference frequency (typically set to the middle of the entire band, and assumed to be representative of the frequency at which estimates are made)
[TABLE]
The adjustment can be interpreted as tracking the small nonlinear variations in delay that are inferred from measured phase drift.
Residual frequency offsets in the data can also be corrected at this stage through explicit frequency shifting, so long as the frequency shift is small compared to the sampling of the data,
[TABLE]
If left uncorrected, the effects of the frequency offset will instead be fit through a delay rate compensation , through the association . However, since the residual fringe rate varies with observing frequency while the frequency offset is fixed, the corrections are not identical and the compensation through fringe rate (essentially stretching or compressing the data in time) imprints a second-order effect that scales with the fractional bandwidth. Thus, it is best to measure any residual frequency offset and correct it at correlation or in data pre-processing prior to fitting delay rate.
2.3.6 Comparison to standard techniques
Stochastic phase variation due to atmospheric turbulence is a dominant residual systematic for high-frequency VLBI observations, and the success of on-source phase estimation and compensation is a major factor in the quality of fringe fitting and reduction. Traditionally, this is handled by dividing data into segments shorter than the phase coherence timescale. The complex correlation coefficients can then be vector averaged for each individual segment without suffering much decoherence from drifting phase.
Baseline measurements for each segment can be used to reference phases to a single antenna under a global fringe solution that includes absolute station phase (e.g., Schwab & Cotton, 1983), or they can be used to form derivative products such as closure phase (Rogers et al., 1974) and closure amplitude (Readhead et al., 1983) that cancel out station gains and are sensitive to only source structure. Phase referencing to a reference station will try to transfer any unmodeled structure phase to baselines that do not include the reference antenna. In this way, one expects similar results if forming a closure phase from multisegment averages of phase-corrected visibilities, or if averaging many closure phases that are themselves calculated individually for each segment, aside from details related to nonlinear propagation of thermal noise at low S/N (Rogers et al., 1995).
For the on-source atmospheric phase calibration presented here, we have incorporated 1) automated selection of reference station based on available S/N across the array; 2) coherent stacking of polarization products for increased S/N during phase estimation; 3) corrective phases which are estimated smoothly over the scan, using an adaptive effective integration time that balances statistical errors to those from expected residual phase drift; and 4) a strategy to avoid self-tuning on statistical fluctuations while still using most of the data for estimation. Alternate strategies for S/N-dependent selection of integration time (Janssen et al., 2019) and cross-application of estimated phases (Johnson et al., 2015) have been presented elsewhere. The use of a savgol filter for smooth estimation of local complex visibility prior to phase estimation is similar to the use of overlapping segments by Rogers et al. (1995) in the context of incoherent averaging of amplitude. The standard approach of using independent segments of vector-averaged visibilities can be considered a down-sampled version of a boxcar moving-average coherent integration window. The boxcar window (savgol order zero) acts as a low-pass filter with a sinc response, while higher-order savgol filters will have a sharper cutoff.
2.4 RCP–LCP Delay Calibration
Signals that take different analog paths from the receiver to recording elements will be subject to different delays from cables, clocks, and electronics. The sensitivity of the measured correlation to relative delay depends on the inverse bandwidth – for 1 GHz of bandwidth, the relative delay should be known to much better than 1 ns for sufficient coherence across the band. It is particularly important to delay align RCP and LCP feeds at each antenna, to be able to stationize the (polarization-independent) atmospheric and geometric delay across all four polarization products. It can also be useful to estimate stable instrumental relative delays between frequency bands so that a station-based set of delays is characterized by only a single free delay parameter per station instead of one per station per band. Because components of the receiving system and electronics are generally locked to the same clock reference, instrumental contributions to delay rate are generally not polarization dependent and do not need to be relatively calibrated. For the same reason, the instrumental delay calibration is generally stable over time so long as the setup is not disturbed.
During the initial stages of the EHT-HOPS pipeline, the fringe search is unconstrained within some delay (and delay rate) search window that is wide enough to accommodate the full range of residual geometric, atmospheric, instrumental, and clock errors. Each baseline and polarization product is fit separately to a relative delay and delay rate. One strategy to align R–L delay at an antenna is to measure the relative delay to RCP and LCP feeds at a site given a common reference signal (e.g. LCP at some other station ). This requires some amount of linear polarization in the source to produce a cross-hand fringe in addition to the parallel-hand fringe. Then, for example,
[TABLE]
with and as the measured baseline relative delays measured for polarization products LR and LL, and the inferred relative delay between RCP and LCP at station . The measurement can be averaged over all available reference signals for increased accuracy.
One drawback to the reference signal strategy is that detected fringes in the cross-hand polarization products are sensitive to polarization leakage since both the typical magnitude of leaked power and the degree of linear polarization are often of the same magnitude. Therefore, prior to polarization leakage calibration, parallel-hand correlated signal can leak into the cross-hand measurement and introduce significant noise in the delay measurement.
When ALMA is present in the array, it can be used to measure RCP–LCP delay at other stations using only parallel-hand products to ALMA. This is because the ALMA linear feeds are delay and phase aligned through ALMA quality assurance calibration (Goddi et al., 2019). The PolConvert process converts ALMA’s mixed-polarization products to circular polarization, maintaining the zero relative delay between ALMA-converted RCP and LCP (Martí-Vidal et al., 2016). Then,
[TABLE]
with A for ALMA. Since the R–L instrumental delays are generally stable through the night, ALMA only needs to be present in a subset of scans in order to fully R–L delay calibrate the network. The basic strategy at stage 4 of the pipeline is therefore to take an average of ALMA parallel-hand detections to other stations to derive a single RCP–LCP delay offset for each non-ALMA site on each observing night. The average itself is a weighted mean, after accounting for a small amount of systematic delay error and after rejecting 10 outliers from the median value. Further validation steps check that the constant offset is a good model to within thermal error plus small systematic tolerances.
Figure 6 shows the distribution of all measured RR–LL delay differences between ALMA and other stations after calibrating out a constant delay offset between RCP and LCP feeds at non-ALMA sites. The fact that all measured differences are consistent with zero confirms the assumed stability of RCP versus LCP relative delay at each site.
2.5 Global Fringe Solution
After stage 4, fitted delays and delay rates on each baseline are expected to be the same for all polarization products to within measurement thermal noise. This allows us to stationize the fitted delay and delay rate parameters, modeling each as the difference between a pair of station delays and delay rates. The stationization of the fringe solution provides several benefits: it prevents the first-order fringe correction from introducing nonclosing (not station-based) phase adjustments to the data, it reduces the total number of free parameters describing the corrections from a number that scales with the baselines to a number that goes as stations, and it allows fringe locations to be accurately predicted on baselines that may have no independently detectable correlated signal.
The thermal contribution to errors in the estimation of delay and delay rate is directly related to the noise in a measurement of total accumulated phase drift across bandwidth and time . At moderate S/N and near the true fringe peak, the error is approximately , where is the standard deviation of a uniform distribution corresponding to the flat integration period and represents thermal noise in the phase measurement (Thompson et al., 2017, A12.25). Therefore,
[TABLE]
In addition to the thermal error, we can add some level of systematic error to fitted delay and delay rate,
[TABLE]
which may be baseline and polarization dependent. The systematic errors arise from search resolution and interpolation accuracy, contamination from leaked signal power (particularly in cross-hand products), or other baseline-dependent processing artifacts and in general must be estimated from the data.
For a fringe search that fits delay and delay rate to values which maximize total detected fringe power , we must also consider the probability of false positive, i.e., one minus the probability that all of independent noise measurements across the search space in delay and delay rate are less than the measured value. Thermal noise gives an exponentially distributed random contribution to fringe power, so the probability of a false positive over trials (Thompson et al., 2017) is
[TABLE]
This is also the cumulative (survival) distribution of the maximum noise fringe power over independent measurements. A requirement that the false-positive rate be very low (much less than the number of fits performed) sets a threshold above which detections are considered reliable.
Following Alef & Porcas (1986), we take the estimated baseline and polarization-dependent delay and delay rate solutions along with their errors from Equation 28, and then perform a least-squares fit to station-based parameters. For each scan, one delay and delay rate parameter is fit per antenna that minimizes the squared error across all baseline measurements. Measurements with are assigned a very large so that they are effectively ignored in the presence of any other constraining data. The least-squares minimization is performed in Scipy with an additional soft_l1 loss function applied at scale to mitigate the effects of outliers.
Specifically the least-squares approach solves for, e.g., model station delays (and delay rates ) by minimizing a chi-square error function
[TABLE]
where loops over baselines, indexes the four polarization products, is the measured delay for each baseline/polarization, and are not dependent on polarization owing to the previous step of delay calibration, is total error as described in Equation 28, and is the soft_l1 loss function specified earlier, as implemented in Scipy. The best-fit station delays and delay rates are used to model baseline fringe parameters
[TABLE]
which are then applied to the data for the global fringe solution (as zero-width search windows).
Expanding the fringe amplitude (Equation 4) to second order about zero total phase drift,
[TABLE]
so that a total phase drift of rad corresponds to a 1% amplitude loss. The expected amplitude loss at a fringe solution based on a measurement of S/N is each for delay and rate errors and not including any noise bias. Propagating fringe solutions with S/N of 7 and above will maintain sub-1% amplitude loss.
In terms of errors on delay and rate directly, the amplitude efficiency loss factor is
[TABLE]
To maintain sub-1% amplitude loss for an observing bandwidth of GHz at observing frequency GHz, delay must be within 0.04 ns and rate must be within 0.07 ps/s for s coherent integration. These limits are within typical systematic errors seen in real data (e.g., Figure 6).
Not all baselines are constrained by the global fringe solution. If a station has no reliable () detections to other stations in the array, its relative delay and delay rate to other sites remain unconstrained. Following fringe globalization, stations in the array are partitioned into fringe groups. Each group represents a set of mutually connected stations, where stations are connected through one or more baselines where at least one polarization product gives fringe detection with . Baselines between stations that belong to different fringe groups are flagged from the data and removed, so that the only surviving correlation measurements are those that are evaluated at single well constrained fringe locations. After the global fringe solution is adopted, individual baselines that have well constrained fringe parameters can be measured to arbitrarily low S/N, as shown in Figure 7, and are no longer subject to a noise floor owing to the large fringe search parameter space.
As noted by Alef & Porcas (1986), the least-squares global fringe fit derived from initial baseline-based fringe solutions is not as powerful (in terms of optimal S/N) as the coherent global fringe search of Schwab & Cotton (1983). However, for our purposes it offers a few advantages. For one, the baseline-based fringe search with independent solutions per baseline and per polarization product is extremely useful for using delay consistency to test for instrumental artifacts, data issues, and false fringes, for which Figure 6 provides one example. Second, the baseline-based fringe solution is immune to biases toward an assumed source model (Wielgus et al., 2019), as is does not use a source model. We note that the round-robin strategy as outlined in subsubsection 2.3.4 could also be used to avoid amplitude and phase biases in the Schwab-Cotton method. The difference in sensitivity between the baseline-based search and coherent global fringe search is not large for the EHT and GMVA because both arrays have relatively few stations (the difference between the baseline fit parameters and station parameters is not so large and can be made up by other optimizations such as optimal fringe solution intervals) and because both arrays are highly heterogeneous, with fringe solutions driven primarily by baselines to anchor stations such as ALMA or GBT.
3 Post-processing
The EHT-HOPS pipeline is naturally divided into the initial stages 1–5, where iterations of HOPS fourfit fringe fitter are performed with increasing refinement of the initial phase calibration and a series of post-processing stages 6–9 that operate on the fourfit output. The first step (stage 6) in post-processing is to convert the fourfit native binary output data into standard UVFITS (Greisen, 2012) format, using interfaces developed as part of the eat library for accessing and interpreting the HOPS Mark4 file set, as well as UVFITS interfaces originally developed for use in the eht-imaging library (Chael et al., 2016, 2018). The data conversion routines are packaged as part of the eat library and provide a direct conversion of the HOPS “type-2 fringe” files into corresponding UVFITS format. The fringe files include all calibration corrections from stages 1–5 of the EHT-HOPS pipeline applied, including the fringe solution and atmospheric phase corrections, and are provided at the channel-averaged “fourfit output” time and frequency resolution described in Figure 3. This level of averaging is maintained until the final network calibration stage 9, at which data are further averaged (typically full-band, 10 s averages) for a more convenient data volume. The post-processing stages 7–9 that follow read and write UVFITS formatted data directly and apply amplitude calibration and polarization- and time-dependent phase corrections that currently cannot be applied upstream within the HOPS framework. Because they operate on standard UVFITS output, the post-processing routines have some general utility even outside the EHT-HOPS pipeline.
3.1 A Priori Flux Density and Field Angle Calibration
The sensitivity of each telescope is expressed by the SEFD, which represents the flux (Jy) of an unpolarized astronomical source that would be necessary to produce a received power equal to the system noise power (as in Equation 5). It can be estimated from observations of bright primary calibration targets (such as planets) and a calibrated measurement of atmospheric and receiver noise. At millimeter wavelengths, atmospheric noise and attenuation due to opacity are often substantial, so that SEFD can have a strong dependence on elevation.
The EHT-HOPS pipeline relies on SEFD information delivered from each telescope, provided in the form of ANTAB666http://www.aips.nrao.edu/cgi-bin/ZXHLP2.PL?ANTAB formatted data tables. The ANTAB tables provide SEFD information in the form of a constant degrees-per-flux-unit (DPFU) value encoding dish area and efficiency, an elevation-dependent parameterized gain curve efficiency correction , and a time-dependent effective system noise temperature scaled according to the expected level of atmospheric attenuation through line-of-sight opacity . While millimeter observatories generally estimate directly via the “hot-load” calibration technique (Penzias & Burrus, 1973; Ulich & Haas, 1976), centimeter-wave observatories, such as the majority of stations in the GMVA (even while observing at several millimeters, see Martí-Vidal et al., 2012), measure the system noise temperature directly from calibrating to a noise diode injection, which does not account for atmospheric attenuation. In this case, opacity is estimated in the line of sight using the measured and an estimate of the receiver noise temperature and physical temperature of the atmosphere (e.g., Altshuler et al., 1968)
[TABLE]
and then used to scale appropriately, as described in Issaoun et al. (2017).
For each source, the values are interpolated into the observation times, and SEFD is calculated as
[TABLE]
The SEFD calibration tables are then used to amplitude calibrate visibilities in the UVFITS formatted data to a physical flux scale within the eat post-processing framework,
[TABLE]
where is the correlation coefficient as in Equation 1.
Apart from flux scaling of visibility amplitudes, this stage of calibration also corrects for the a priori polarimetric field rotation angle, i.e., the relative orientation of the feed with respect to a fixed direction on the sky. The effect manifests as a nonlinear, source- and time-dependent phase offset between RCP and LCP components at each station; see Figure 8, top panel. The field rotation angle is generally a combination of the source parallactic angle at the location of the th station and a possible contribution from elevation-dependent rotation due to the receiver mount type. The correction takes the form of a station-based polarization-dependent phase correction to Equation 38 to align RCP and LCP to a fixed orientation on the sky. The middle panel of Figure 8 shows the R–L phase offsets after applying the field rotation correction.
3.2 RCP/LCP Polarimetric Gain Ratios Calibration
In order to form total intensity Stokes visibilities, it is necessary to calibrate the phase and amplitude mismatch between the measured LCP and RCP components. For small Stokes component and small leakage coefficients, the LCP and RCP visibilities are approximately related as (e.g., Roberts et al., 1994)
[TABLE]
The field rotation component is removed at the a priori calibration stage, Section 3.1, leaving the complex gain ratios to be accounted for. Polarimetric gain ratio phases are particularly important to calibrate. The RCP versus LCP phase stability is analogous to the RCP versus LCP delay stability (Section 2.4), but more sensitive by a factor corresponding to the inverse fractional bandwidth (e.g., two orders of magnitude more sensitive). Thus, while relative RCP versus LCP instrumental delays are generally constant throughout the night, relative instrumental phases can exhibit some residual drift.
The station-based phase offsets, , are modeled as polynomial functions of time and are estimated directly from Equation 39 with respect to a reference station. If the reference station gain ratio is known, or can be derived a priori, as is the case for ALMA, this enables absolute calibration of the electric vector position angle on the sky for the entire array. While the polynomial fit parameters are estimated from the data using robust, S/N-weighted statistics, the algorithm requires a manual selection of a polynomial degree used for a phase offset fit for a particular station. In a heterogeneous VLBI array, the type of fit depends on particular properties of each station, which may vary from a constant offset for multiple subsequent nights to a nonlinear trend varying on timescales of an hour. When available, we jointly analyze observations of multiple sources (e.g., scientific target and calibrators) when estimating source-independent station phase gain offsets over the course of a campaign. This makes the estimate robust against tuning to specific intrinsic source properties, such as contamination from a nonzero Stokes circular polarization component.
As an illustration, of the GBT, estimated from the GMVA+ALMA data set (see Section 5.1) is shown in the middle pandel of Figure 8 with a dashed line. Here the offset was modeled as a second-order polynomial and estimated using a data set consisting of four observed sources. For the phase gain offset calibration, one polarization component is chosen as a reference (LCP by default), and the other one is calibrated to match the first one. As an example, we have
[TABLE]
A final product of the polarimetric phase offset calibration is shown in the bottom panel of Figure 8. In the top panel we also show the full polarimetric phase offset calibration model fit (field rotation plus gains) for Sgr A*∗* and NRAO 530 as dashed lines.
While the flux calibration, described in Section 3.1, is performed separately for different polarization products and is expected to account for a priori known differences in sensitivity between RCP and LCP at each site, the eat post-processing framework also offers an option to calibrate residual differences in RCP/LCP amplitude gain. If the option is selected, amplitude gain is estimated as an S/N-weighted median RCP/LCP amplitude ratio . Calibrating polarimetric amplitudes for the baseline yields
[TABLE]
The presented framework assumes a negligible influence of polarimetric leakage, the calibration of which is not yet a standard part of the EHT-HOPS data calibration pipeline. Proper calibration of leakage necessarily relies on the joint modeling of leakage terms, together with both polarized and unpolarized source structure (Leppanen et al., 1995).
3.3 Network Amplitude Calibration
The a priori amplitude calibration of the EHT-HOPS pipeline (Section 3.1) can be improved by determining station-based corrections that produce visibility amplitude relationships that are expected from array redundancy. While array redundancy has regularly been used to improve calibration of connected element arrays, it has not been commonly used for VLBI (see, e.g., Pearson & Readhead, 1984; Cornwell & Fomalont, 1989). However, the EHT differs from standard VLBI arrays by including a number of colocated sites that introduce significant redundancy (e.g., three different facilities on Maunakea have participated in EHT observations: the Submillimeter Array [SMA], the James Clerk Maxwell Telescope [JCMT], and the Caltech Submillimeter Observatory), and this redundancy has been routinely utilized to derive amplitude calibration corrections (e.g., Fish et al., 2011; Johnson et al., 2015; Lu et al., 2018). We refer to the procedure of deriving these corrections as network calibration, and the EHT-HOPS implementation of network calibration is an extension of techniques developed in Johnson et al. (2015). We now outline the assumptions, procedure, and limitations of network calibration.
3.3.1 Network Calibration Assumptions
Consider a VLBI array that contains one or more pairs of stations at a single geographic site (e.g., ALMA/APEX and SMA/JCMT for the EHT). Because intrasite baselines do not resolve the compact emission structure sampled on intersite baselines, they introduce consistency relationships that are weakly dependent on source structure. For example, letting denote the ideal source visibility on the baseline ,
- •
Intrasite visibilities should be equal to each other and to measurements of the total flux density made with connected element interferometers that sample the same angular scales, e.g.,
[TABLE]
- •
Intersite visibilities to intrasite stations should be equal, e.g.,
[TABLE]
Both of these properties follow from the assumption that intrasite baselines do not resolve the source; the first relationship integrates an additional measurement (), which is routinely recorded in parallel with VLBI observations.
3.3.2 Network Calibration Procedure
To motivate the network calibration procedure, we first consider visibility measurements with no thermal noise. Under the assumption that all systematic errors are station based, we can write a measured visibility on a baseline between sites and as
[TABLE]
where and are the station-based residual gains.
Suppose that stations and are colocated, so that . Knowledge of is not sufficient to determine and , but measurements to a third site break the degeneracy:
[TABLE]
As these equations suggest, network calibration only determines the amplitudes of the gains of stations with colocated partners; it does not modify the gains of other stations or determine absolute phase corrections. In the limit of all stations having a colocated partner, network calibration yields absolute amplitude calibration for all stations.
Because the gains of an intrasite pair are fully determined by a third site, additional sites can be combined to reduce thermal uncertainties in the estimated gains. The EHT-HOPS pipeline uses all baselines simultaneously to solve for the set of unknown model visibilities and station gains by minimizing an associated . Specifically, for each solution interval, we find the set of gains and source visibilities connecting each pair of sites by minimizing
[TABLE]
where is the thermal uncertainty on . In practice, the only gains that must be included are those of sites with intrasite partners; also, visibilities connecting two sites that each lack an intrasite partner can be excluded, as they provide no additional constraints for the network calibration. Thus, for sites of which have intrasite partners, network calibration requires solving for at most gains and model visibilities. In 2017, the EHT had and , requiring solutions for at most 4 gains and 15 model visibilities in each solution interval.
We implemented this procedure for network calibration within the eht-imaging library (Chael et al., 2016, 2018). This calibration can be used for any VLBI array and only requires specifying the total source flux density and a maximum baseline separation for which a pair of sites is considered colocated (i.e., a threshold to define baseline lengths that do not resolve the observed source).
3.3.3 Network Calibration Error Budget
The outcome of network calibration has both thermal errors from thermal noise on the input visibilities and systematic errors from broken assumptions in the network calibration procedure. We now briefly assess expected elements of this error budget.
Thermal errors are are straightforward to compute from analysis of the hypersurface explored in the minimization procedure discussed in subsubsection 3.3.2. From Equation 45, it is clear that thermal errors have contributions from intrasite baselines and from intersite baselines; the latter typically have lower S/N because these baselines can heavily resolve the source, so they typically dominate the thermal error budget. For each pair of colocated sites , the fractional uncertainty from thermal noise will be dominated by their strongest intersite baselines to another site , with
[TABLE]
For instance, in the case of ALMA and APEX, APEX will always have much lower S/N than ALMA and dominates the thermal uncertainties for the derived gains of both stations. If the maximum S/N from APEX to another site is 10 in the network calibration solution interval, then the network calibration will have a fractional uncertainty for and of approximately 5% from thermal noise.
Systematic errors in the network calibration solution arise from incorrect or broken assumptions (see subsubsection 3.3.1). We now estimate the magnitude of three primary expected errors; additional sources of error (e.g., from baseline-dependent systematic errors) can be assessed using Equation 45.
Incorrect assumed total flux density: Errors in the assumed total flux density lead to a constant multiplicative factor for the derived gains. Suppose that , where is the true total flux density. Then, .
Intrasite baselines partially resolve the source: In practice, intrasite baselines may partially resolve the emission structure. In some cases, it may be possible to model this effect and correct for it (e.g., using an ALMA image to predict the flux density seen on the SMA–JCMT baseline). However, even in the limit of unmodeled losses, the measured flux density on a short baseline will differ from the true value by some amount , and the error propagation is identical to the case of an incorrect assumed total flux density.
Intersite baselines to intrasite partners are not equal: Suppose that the intrasite stations are separated by a vector displacement , and let denote an intersite baseline to a site that has an intrasite pair. In this case, network calibration relies on the approximation that the two intersite visibilities to the pair are approximately equal: . By the van Cittert–Zernike theorem, this condition can be expressed in terms of the sky brightness distribution (Thompson et al., 2017):
[TABLE]
where is an angular coordinate on the sky and is the sky brightness distribution. The second approximation requires , where is the maximum extent of nonzero source brightness. The fractional error in the first approximation is then of order . For the EHT, the longest intrasite baselines are shorter than intersite baselines by a factor of u_{\rm inter}/u_{\rm intra}\mathrel{\raise 1.29167pt\hbox{>\kern-7.5pt\lower 4.30554pt\hbox{\sim}}}10^{3}. For sources that are weakly resolved on the shortest intersite baselines (i.e., 2\pi u_{\rm inter}x_{\rm max}\mathrel{\raise 1.29167pt\hbox{<\kern-7.5pt\lower 4.30554pt\hbox{\sim}}}1) the fractional error on a derived gain from breaking this assumption will then be \Delta g/g\mathrel{\raise 1.29167pt\hbox{<\kern-7.5pt\lower 4.30554pt\hbox{\sim}}}0.01.
4 Computing workflow
The EHT-HOPS pipeline is designed to be automated and provide reproducible output. The pipeline is conceptually structured in three layers: 1) The software libraries/modules layer consists of the core software packages HOPS, eat, and eht-imaging. 2) The driver scripts layer consists of BASH scripts for preparing input files, running programs from the software layer, creating logs and summary Jupyter notebooks, and cleaning up data products. 3) The pipeline repository layer is made up of multiple directory structures that contain both configuration files for different processing stages (see Figure 1) and a master run script that enables running the full pipeline and packing output data products in a single step. The software and driver script layers are generic and are suitable for being applied to different VLBI data sets. Each pipeline repository, including summary notebook templates, is specific to a given production and to a specific data set.
To ensure reproducibility, software libraries and module layers that are developed within the EHT, such as eat, are version controlled by git and publicly available on GitHub. Furthermore, we use Docker, an operating-system-level virtualization software, to freeze the entire software environment, which includes many libraries and software packages distributed in binary format. The recipes to build the Docker images, i.e., the Dockerfiles, are also version controlled and available on GitHub.
Although the entire pipeline can be run and debugged interactively on the native host operating system, production runs make use of Docker environments. The associated hash-based Docker image identification numbers allow us to keep track of the exact versions of software, down to system libraries, and the specific image used for each production run is tagged along with its output. This allows us to go back and repeat any previously tagged analysis.
The correlated data are separated by scan in relatively small “type-1 corel” individual files in the Mark4 file set. When we run the EHT-HOPS pipeline, within each stage, all CPU cores on the (virtual) machine are made available to a single Docker container. Inside the Docker container, we use GNU parallel to start multiple fourfit tasks, with one scan mapped per task, to maximize CPU utilization. When fringe fitting is done, we use the HOPS alist program to reduce the fringe fitting results into a single summary text file. Further tools from eat process this output to generate HOPS calibration control codes for the next stage. Figure 9 is a screenshot of CPU and network usage during a production run on a 64-core virtual machine on the Google Cloud Platform. The periods of high CPU and network utilization correspond to the parallel fourfit tasks, while the periods of low utilization correspond to the alist and eat reduction tasks. From the utilization cycles, it is easy to read off from Figure 9 that there are two passes of the data, one for each of the two 2 GHz bands from the EHT. Each pass includes one bootstrap stage with generic parameters and wide search windows, followed by the five fringe fitting stages with refined HOPS control files.
5 Comparison to AIPS
5.1 Data Set
The data set used for validation of the EHT-HOPS pipeline is the result of observations of Sgr A*∗* on 2017 April 3 (project code MB007) with the GMVA, composed of the eight VLBA antennas operating at 86 GHz, the Robert C. Byrd Green Bank Telescope (GBT), the Yebes 40m telescope (YS), the IRAM 30m telescope (PV), the Effelsberg 100 m telescope (EB), and the ALMA phased array of 37 antennas. A total bandwidth of 512 MHz (256 MHz per polarization) was recorded at each station except YS, which recorded a single left circular polarization component. At correlation, the bandwidth per polarization was divided into four channels of 116 subchannels each. The observations included three calibrator sources: 1749096, a bright quasar for bandpass and instrumental phase and delay calibration, and NRAO 530 and J1924–2914, two quasars only 10∘ away from Sgr A*∗* on the sky, for differential phase, delay, and rate calibration. Several of the VLBA stations (NL, OV, PT) observed in difficult weather conditions, such as frost, strong winds, or rain, leading to limited detections to those stations. Observations at PV suffered from phase instability and coherence losses in the signal chain, which led to poor-quality data and lower visibilities on its baselines. See Issaoun et al. (2019) for further details on the observations.
The data were reduced via the EHT-HOPS pipeline (Figure 1), with additional validation from the NRAO AIPS (Greisen, 2003). Reduction in HOPS utilized ALMA, the most sensitive station in the array, as the reference antenna to derive stable instrumental phase bandpass and RR–LL delay relative to other stations (Section 2.2 and 2.4). Depending on S/N, either ALMA or GBT baselines were used to correct for intra-scan stochastic differential atmospheric phase, which varies on a timescale of a few seconds for this data set. The integration time for rapid phase corrections was determined automatically for each scan, taking into account the amount of random thermal variation and thus depending on S/N (Section 2.3). In the final fourfit stage, fringe solutions per scan were constrained to a single set of station-based delays and rates, or global fringe solutions, obtained from a least-squares solution to robust baseline detections (Section 2.5). A priori calibration was performed in post-processing, where all stations apart from YS, PV, and ALMA required an additional opacity correction to calibrate the visibility amplitudes (Section 3.1).
The AIPS reduction followed a classical procedure for low-frequency VLBI, with additional steps for fringe fitting refinement. After loading the data set into AIPS, during which digital sampler corrections are applied, we inspected the data interactively via the tasks BPEDT and EDITA and removed spurs in frequency domain accumulated bandpass tables and time domain amplitude plots. We then normalized the amplitudes via ACCOR and applied field rotation angle corrections via VLBAPANG (correcting for source parallactic angle and receiver mount type of each antenna) prior to fringe fitting. The standard instrumental phase calibration, with the station-based fringe fitter KRING, corrects for experiment-wide correlator model phase and delay offsets using the full bandwidth and scan coherence. These solutions were derived using a scan on 1749+096, the brightest calibrator of the experiment, where 12 out of the 13 stations are present. A later scan on J1924–2914, the second-brightest calibrator, was used to derive solutions for the MK VLBA station, not present in the 1749096 scans. ALMA was also used as the reference antenna for this processing. The instrumental phase calibration was applied to all scans before proceeding to finer fringe fitting, where either ALMA or GBT was used as a reference antenna, depending on the source. We solved for fringe rates and residual phase and delay offsets per channel, using full scan coherence, for each individual scan. We ran a third fringe fitting step to solve for stochastic atmospheric phase variations in time across the full bandwidth, with a fixed solution interval of 10 s. A final fringe fitting step was used to solve for further scan-based residual delays and phases per channel to realign the channels. A priori calibration was performed with APCAL, ignoring the opacity correction (DOFIT ) for YS, ALMA, and PV.
5.2 Pipeline Comparison
We have performed a comparative analysis of the GMVA+ALMA data set processed by the EHT-HOPS pipeline and a classic AIPS reduction. The EHT-HOPS pipeline has recovered a significantly larger number of detections, as summarized in Table 1, as well as in Figure 10. This likely reflects a more efficient use of free parameters for phase calibration in the EHT-HOPS pipeline. The EHT-HOPS pipeline calibration is driven by purpose-designed tasks targeting the characteristics of high-frequency VLBI data, while the AIPS processing relies on standard tasks available in the AIPS environment. A significant difference is in the handling of atmospheric phase, where the EHT-HOPS pipeline parameterizes phase variations as a smooth function using a flexible variability timescale that can accommodate the available S/N in the data (Section 2.3). In our AIPS reduction, rapid phase variation is captured using a fixed 10 s fringe solution interval, which may be too long (in the case of rapidly varying atmosphere for poor weather conditions or low elevation) or too short (in the case of low S/N). Benefits in sensitivity from the coherent Schwab-Cotton global fringe search in AIPS may not make up for the other inefficiencies owing to the arguments presented at the end of Section 2.5.
A broad consistency between the pipelines can be seen in Figure 11 for the common set of detections, showing the scatter plot of the correlation coefficient amplitude after the fringe fitting. While a certain amount of variation is seen in the lower-S/N part of the data set, particularly for Sgr A*∗*, the high-S/N data show a high level of consistency between the two reductions. Additionally, we directly compare closure quantities in Figure 12. Here we consider maximum sets of closure phases (left panel) and log closure amplitudes (right panel). We construct differences of scan-averaged RR and LL closure products matched between the pipelines and normalize them by the combined error for both pipelines. In the case of two independent measurements of the true underlying quantity, with normally distributed uncertainties, we would expect the result to be a standard normal distribution, plotted with a dashed line for reference. The fact that the measured spread of the normalized differential quantity is smaller than that of a standard normal distribution indicates that differences between the pipelines are of subthermal magnitude, even after full scan averaging. This is not surprising, as the pipelines are analyzing the same (not independent) thermal noise realizations. In Figure 12, we also note a small number of outliers.
In Figure 13, we illustrate the detections from both reductions on the coverage plot for the blazar NRAO 530, in which the EHT-HOPS pipeline has recovered % more detections. We proceed to an additional validation of the data sets via image reconstructions. We reconstruct images of NRA0 530 with both the AIPS and EHT-HOPS data sets, constraining the total flux of the source from simultaneous ALMA interferometric measurements (Goddi et al., 2019). For the imaging process, we make use of only closure quantities (amplitudes and phases), as the 13 stations of the GMVA+ALMA array and their coverage provide a large relative amount of closure information, independent of station gain errors (e.g., Thompson et al., 2017). We image NRAO 530 using the eht-imaging library (Chael et al., 2016), following the closure imaging method of Chael et al. (2018). The same script was used for both data sets, and the resulting images are shown in Figure 14. The images show a high degree of consistency with each other, in addition to consistency in both morphology and jet direction with previous observations of NRAO 530 in the literature (Bower et al., 1997; Bower & Backer, 1998; Feng et al., 2006; Chen et al., 2010; Lu et al., 2011).
In Figure 15, we inspect individual closure phases on three triangles of various sizes and orientations. The HOPS and AIPS closure phases are generally consistent, but the HOPS data set indicates smoother trends. The HOPS pipeline recovers zero closure phase more consistently on triangles that do not resolve the source, whereas AIPS has some difficulty owing to the lower S/N of the intra-VLBA detections (bottom panel of Figure 15). The closure phase trends derived from the two reconstructed images are also shown in Figure 15, and both images result in smooth trends in modeled closure phase that are similar to each other and either follow both data sets when the detections are well constrained or follow predominantly the HOPS detections when the AIPS detections result in different values.
While the calibrators are bright blazar sources typically reduced through classical AIPS procedures, the case of Sgr A*∗* presents added difficulty to the calibration process. In particular, the source is subject to interstellar scattering in our line of sight, causing scatter broadening predominantly in the east–west direction, where a large majority of GMVA baselines lie (Davies et al., 1976; van Langevelde et al., 1992; Frail et al., 1994; Bower et al., 2004, 2006; Shen et al., 2005; Johnson et al., 2018; Psaltis et al., 2018). Additionally, Sgr A*∗* was 2 Jy in 2017 at 3.5 mm, at the lower end of its typical flux density range at this wavelength, and most stations of the GMVA, in the northern hemisphere, observe Sgr A*∗* at very low elevations and thus through a large air mass that lowers the chance for strong detections. These conditions add difficulty to a classical AIPS processing, which does not fare as well for Sgr A*∗* fringe fitting as the EHT-HOPS pipeline. Due to the clear difference in performance, as shown in Table 1 and Figure 10, the EHT-HOPS pipeline processing was chosen to derive subsequent scientific results on Sgr A*∗*, presented in Issaoun et al. (2019).
6 Summary
We have developed an automated calibration and reduction pipeline for high-frequency VLBI data, suitable for processing data from the GMVA (at 86 GHz) and the EHT (at 230 GHz). The pipeline is structured around the Haystack Observatory Post-processing System (HOPS), which was originally designed for precision geodetic analysis but has also been widely used for the processing of early data from the EHT. The new EHT-HOPS pipeline was targeted to meet the needs of the developing EHT and GMVA arrays. Specifically, it leverages high-sensitivity anchor stations, such as ALMA acting as a phased array, in order to phase-stabilize the network to atmospheric turbulence. The pipeline also provides reduced data that are phase calibrated to a global fringe solution in a standard UVFITS data format. This allows the HOPS output to be analyzed using a wide variety of downstream tools for VLBI data characterization, imaging, and modeling.
The EHT-HOPS pipeline was successfully used for the analysis of VLBI data taken at 86 GHz on Sgr A*∗* and associated calibration sources, using the GMVA joined by the ALMA phased array. The scientific analysis of the data was presented in Issaoun et al. (2019), leading to the first VLBI images of the intrinsic compact radio core of Sgr A*∗*and the first VLBI results with ALMA. In this work we have used data from the observations to illustrate the calibration process and have compared the output from the EHT-HOPS pipeline with a classical data reduction through AIPS. The EHT-HOPS pipeline was also applied as one of three independent reduction pipelines to the 230 GHz (1.3 mm) observations from the EHT 2017 April campaign (Event Horizon Telescope Collaboration et al., 2019b, c), where it showed a high degree of consistency with parallel reductions in AIPS (using a similar reduction to that presented in this work) and CASA (using rPICARD; Janssen et al., 2019). The scientific analysis of the EHT 2017 data set resulted in the first images and characterization of a black hole “shadow” at the center of the radio galaxy M87 (Event Horizon Telescope Collaboration et al., 2019a, d, e, f).
The current implementation of the pipeline addresses the need for rapid phase calibration at high observing frequencies and focuses on the robust detection of correlated fringes for the newly expanded VLBI networks. Future developments to the UVFITS post-processing tool set will support amplitude bandpass corrections and polarization leakage corrections, to reduce nonclosing baseline systematic errors and to provide the calibration necessary for polarization analysis.
We thank Thomas Krichbaum and Iván Martí-Vidal for helpful comments and discussion, as well as the EHT Collaboration, particularly members of the Correlation and the Calibration & Error Analysis working groups. We thank the National Science Foundation (AST-1126433, AST-1614868, AST-1716536) and the Gordon and Betty Moore Foundation (GBMF-5278) for financial support leading to this work. This work was supported in part by the Black Hole Initiative at Harvard University, which is supported by a grant from the John Templeton Foundation. The work was also supported by the ERC Synergy Grant “BlackHoleCam: Imaging the Event Horizon of Black Holes,” Grant 610058. This paper makes use of the following ALMA data: ADS/JAO.ALMA2016.1.00413.V. ALMA is a partnership of ESO (representing its member states), NSF (USA), and NINS (Japan), together with NRC (Canada), MOST and ASIAA (Taiwan), and KASI (Republic of Korea), in cooperation with the Republic of Chile. The Joint ALMA Observatory is operated by ESO, AUI/NRAO, and NAOJ. This research has made use of data obtained with the Global Millimeter VLBI Array (GMVA), which consists of telescopes operated by the Max-Planck-Institut für Radioastronomie (MPIfR), IRAM, Onsala, Metsahovi, Yebes, the Korean VLBI Network, the Green Bank Observatory, and the Very Long Baseline Array (VLBA). The VLBA is a facility of the National Science Foundation operated under cooperative agreement by Associated Universities, Inc. The data were correlated at the correlator of the MPIfR in Bonn, Germany. This work is partly based on observations with the 100 m telescope of the MPIfR at Effelsberg. This work made use of the Swinburne University of Technology software correlator (Deller et al., 2011), developed as part of the Australian Major National Research Facilities Programme and operated under licence.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Akiyama et al. (2015) Akiyama, K., Lu, R.-S., Fish, V. L., et al. 2015, Ap J, 807, 150 · doi ↗
- 2Alef & Porcas (1986) Alef, W. & Porcas, R. W. 1986, A&A, 168, 365
- 3Altshuler et al. (1968) Altshuler, E. E., Falcone, V. J., & Wulfsberg, K. N. 1968, IEEE Spectr., 5, 83 · doi ↗
- 4Bower & Backer (1998) Bower, G. C. & Backer, D. C. 1998, Ap J, 507, L 117 · doi ↗
- 5Bower et al. (1997) Bower, G. C., Backer, D. C., Wright, M., et al. 1997, Ap J, 484, 118 · doi ↗
- 6Bower et al. (2004) Bower, G. C., Falcke, H., Herrnstein, R. M., et al. 2004, Science, 304, 704 · doi ↗
- 7Bower et al. (2006) Bower, G. C., Goss, W. M., Falcke, H., Backer, D. C., & Lithwick, Y. 2006, Ap J, 648, L 127 · doi ↗
- 8Capallo (2017) Capallo, R. 2017, Fourfit user’s manual, https://www.haystack.mit.edu/tech/vlbi/hops/fourfit_users_manual.pdf
