Measurements of the H i intensity mapping power spectrum at low redshifts with MIGHTEE data: comparison with detected H i galaxies 2026 Measurements of the H i intensity mapping power spectrum at low redshifts with MIGHTEE data: comparison with detected H i galaxies – A Junaid Townsend, Mario G. Santos, Suman Chatterjee, Zhaoting Chen, Sourabh Paul, Aishrila Mazumder, Laura Wolz, Matt J. Jarvis, Bradley S. Frank Abstract Line intensity mapping provides a statistical approach to tracing the large-scale distribution of matter in the Universe. We apply the H i intensity mapping technique to interferometric data from the MeerKAT International GHz-Tiered Extragalactic Explorations (MIGHTEE) Survey, analysing 17.5 hours of a single pointing in the COSMOS field, using a 60 MHz sub-band in the frequency range 1332 - 1392 MHz ( 0.02 ≲ z ≲ 0.07 0.02\lesssim z\lesssim 0.07 ). Using a delay-spectrum-based estimator, we measure the H i power spectrum on sub-megaparsec scales and compare it directly to the power spectrum inferred from a catalogue of individually detected H i galaxies in the same field. After mitigating low-level broadband contamination through conservative outlier flagging in the three-dimensional power spectrum, cross-correlation of time-split visibilities yields a statistically significant detection on scales 3 ≲ k ≲ 20 ​ Mpc − 1 3\lesssim k\lesssim 20\,\mathrm{Mpc}^{-1} with a total signal-to-noise ratio of ∼ 13 \sim 13 . Over this range, the power spectra obtained from visibilities and detected galaxies are consistent within uncertainties and have comparable amplitudes of order 10 − 2 10^{-2} – 10 − 1 10^{-1} mK 2 ​ Mpc 3 \mathrm{mK}^{2}\mathrm{Mpc}^{3} . End-to-end validation is performed by propagating detected galaxies through the power spectrum estimator via both direct intensity-field construction and simulated visibilities, demonstrating agreement up to k ∼ 20 ​ Mpc − 1 k\sim 20\ \mathrm{Mpc}^{-1} , beyond which measurements become noise-dominated. A statistically significant correlation is also observed between the data and the simulated visibilities from the detected H i galaxies, which should be free of systematics. These results provide a self-consistent validation of interferometric H i intensity mapping at low redshift and demonstrate agreement with galaxy-based measurements within the same cosmological volume. 1 Introduction Intensity mapping (IM) with the 21 cm emission line of neutral hydrogen ( H i ) has been proposed as a novel technique to explore the cosmological and astrophysical properties of the Universe ( 6 ; 5 ; 4 ; 43 ; 10 ; 80 ; 7 ; 65 ; 34 ) . In the era of precision cosmology in which the Cosmic Microwave Background (CMB) from Recombination at z \sim 1100 has provided significant insights into our understanding of the Universe (e.g. 58 ), IM with the 21-cm line would help make this picture more complete with its large area and deep volume coverage capabilities, allowing us to probe substantial portions of the Universe’s cosmic history. In addition to its fast survey speeds, H i IM also provides excellent redshift information since it measures the 21 cm line, with a rest frame frequency of \sim 1420 MHz, while radio telescopes typically provide sub-MHz frequency resolutions, without the need for special spectroscopic techniques required for optical surveys. Coupled with the abundance of H i throughout the Universe’s cosmic history, IM provides a means of probing cosmological information all the way up to z\sim 200 ( 66 ) , well into the Dark Ages. As such, it has the means of providing a comprehensive view of the Universe’s evolution from the present day until the first stars and galaxies started forming and even beyond. First predicted by 75 and then detected by 24 , this 21 cm emission line arises from the spin-flip transition of the electron within the hydrogen atom, which then emits a photon of energy at a wavelength of about 21 cm. Despite this transition being highly forbidden, we can observe this emission line with radio telescopes sensitive to centimetre-wavelength radiation due to hydrogen being the most abundant form of baryonic matter in the Universe. During the Epoch of Reionisation (EoR), the hydrogen in the intergalactic medium went from neutral to fully ionised due to the ultraviolet photons and X-ray radiation from the first luminous objects, such as stars within early galaxies ( 25 ) . In the post-reionisation Universe, we expect to find most of the H i within so-called damped Lyman-alpha (Ly- \alpha ) systems ( 62 ; 76 ; 69 ) that provide shielding from those sources that would otherwise potentially ionise all the H i . Due to this, we observe most of the H i after reionisation within galaxies, galaxy groups, and galaxy clusters. This makes it an excellent tracer of the underlying dark matter density field, which gravitationally binds the Baryonic matter and, therefore, the large-scale structure of the Universe and structure formation history across time. IM with H i also allows us to study the gas content of galaxies in the post-reionisation era ( 77 ) , which serves as the fundamental fuel reservoir for star formation in galaxies ( 31 ; 39 ) . It helps probe galaxy evolution across cosmic time, which can be compared against state-of-the-art H i galaxy simulations such as SIMBA ( 21 ) . These comparisons will enable us to understand better the astrophysics of H i gas and the galaxies or clusters of galaxies that host it. Measurements of the H i IM signal are done in practice using statistical measurements via the power spectrum, a 2-point Fourier statistic, which tells us how much H i clustering there is on a range of cosmological scales ( 57 ; 23 ) . This can be achieved by surveying large volumes of the Universe with radio telescopes sensitive to the 21 cm line emission, making sky maps across frequency, which can be used to calculate the power spectrum statistic in either cross-correlation with other tracers of dark matter, such as galaxy surveys, or in auto-correlation of the H i intensity maps. There have been numerous experiments designed to do H i IM, with some of them having made detections of the H i power spectrum at various epochs in cross-correlation with galaxy surveys ( 9 ; 40 ; 1 ; 79 ; 18 ; 15 ) or provided upper limits on the auto-correlations ( 70 ; 44 ) (also see 37 for a review). A detection of the H i auto-power spectrum on small scales at redshifts z\sim 0.32 and z\sim 0.44 has been reported in 54 , based on 96 hours of MeerKAT data on a single-pointing ( 41 ) . Generally, two experimental configurations exist for H i intensity mapping. These include single-dish and interferometric instruments. In the post-reionisation era ( z<6 ), single-dish experiments focus on probing larger scales ( k\lesssim 0.1\ \text{Mpc}^{-1} ) by rapidly surveying large sky areas with low angular resolution ( 64 ) , while the interferometric experiments probe smaller, linear to non-linear scales ( k\gtrsim 0.1\ \text{Mpc}^{-1} ) due to tightly-packed baselines between individual antennas that result in better angular resolution ( 49 ; 14 ) . In this manner, the two survey types are complementary on angular scales, k_{\perp} , while being sensitive to the same range of line-of-sight scales, k_{\parallel} , set by the bandwidth and frequency resolution of the observing instrument ( 7 ) . A direct detection of the H i intensity mapping power spectrum presents several challenges due to a combination of instrumental systematics and foregrounds several orders of magnitude stronger than the signal ( 3 ; 68 ; 12 ) . Cross-correlations with external galaxy surveys can confirm the presence of an H i signal but do not guarantee that the measured auto-power spectrum is free from systematics. Residual contamination such as low-level broadband radio frequency interference (RFI) can contribute power to the measurement. While null tests can increase the confidence in a detection, they cannot completely rule out subtle, undetected systematics. Ultimately, establishing this technique as a robust cosmological probe will require a combination of well-tested data reduction pipelines and multiple, independent measurements. In this paper, we aim to address these issues by applying our signal extraction methodology to a self-contained test case, where we directly compare the measured intensity mapping power spectrum to that derived from H i galaxies detected in the same field. We use Early Science visibility data from the MeerKAT International GHz-Tiered Extragalactic Explorations (MIGHTEE) Survey ( 32 ) , employing the delay-spectrum technique ( 46 ; 51 ; 53 ; 73 ; 52 ; 72 ; 56 ; 47 ) to measure the H i power spectrum on sub-Megaparsec scales at low redshifts. This technique has primarily been applied to studies of the Epoch of Reionisation (EoR), where it has been used to set upper limits on the 21 cm power spectrum with instruments such as PAPER, the Murchison Widefield Array (MWA), and the Hydrogen Epoch of Reionisation Array (HERA) ( 51 ; 59 ; 52 ; 22 ; 28 , e.g.,) . More recently, applications of this method in the post-EoR regime have shown promising results, employing foreground avoidance and using statistical measures such as spherical and cylindrical power spectra to analyse both simulated and observational data ( 55 ; 13 ; 12 ; 11 ; 54 ; 42 ) . Comparing the intensity mapping power spectrum to the galaxy power spectrum derived from directly-detected H i galaxies in the same MIGHTEE dataset allows us to test the robustness of the intensity mapping approach in a regime where traditional H i galaxy surveys are still feasible, given the relatively low redshift. This comparison further allows us to evaluate whether either the intensity mapping technique or direct detections using radio interferometric data systematically miss part of the H i content and how consistent the two power spectrum measurements are. Our analysis builds upon and tests the methodology developed in 54 . It also serves as a follow-up to the MIGHTEE-COSMOS analysis presented in 42 , where data from multiple COSMOS pointings were incoherently combined to obtain upper limits on the H i power spectrum at z\sim 0.44 . That study was itself a comparative test of the tentative detection reported in 54 . The MIGHTEE survey, leveraging the wide field-of-view and high sensitivity of MeerKAT, is particularly well-suited for these tests, providing a good sample of H i galaxies at low redshifts. The rest of the paper is structured as follows. Section 2 outlines the data used in this work. Section 3 focuses on the ’delay’-spectrum methodology and pipeline developed to measure the H i power spectrum from the visibility data, while also showcasing the visibility power spectrum results. Section 4 discusses validations employed using a simulated cosmological volume which contains detected H i galaxies from MIGHTEE. Further validations of the power spectrum results using visibilities simulated on these H i detections are discussed in Section 5 , followed by the summary and conclusions in Section 6 . Throughout this paper, a flat ( \Omega_{\text{k}}=0 ) \Lambda CDM cosmology is assumed, with cosmological parameters [ h,\Omega_{\text{M}},\Omega_{\text{b}},n_{\text{S}},\sigma_{8} ] = [0.674, 0.311, 0.049, 0.965, 0.811], corresponding with those from the latest Planck results ( 58 ) . 2 MIGHTEE Data In this work, data from the MeerKAT telescope’s MIGHTEE survey ( 32 ) is used to make a statistical measurement of the H i signal at low z and on small scales (smaller than about 1 Mpc) via the H i power spectrum. The details of the specific MIGHTEE survey data are discussed below. 2.1 The MIGHTEE Survey The MIGHTEE Survey 1 1 1 https://www.mighteesurvey.org/ is one of the Large Survey Projects (LSPs) conducted using the MeerKAT telescope. It covers four well-studied extragalactic fields, namely COSMOS 2 2 2 https://cosmos.astro.caltech.edu/ , XMM-LSS, CDFS, and ELAIS-S1, with a total observed area of about 20 \deg^{2} . These various fields also have the potential to be used for multi-wavelength studies, which is a good trade-off for the fact that it is shallower in comparison to the complementary, deeper LADUMA Survey ( 2 ) , which will go to much higher redshifts despite covering a much smaller patch of the sky. Importantly for the context of this study, the full MIGHTEE survey will reach similar depths ( \sim 1 \mu Jy) as the planned SKA Observatory, thus making it a useful survey with which assess the level of sensitivity achievable for IM. To achieve its scientific goals, MIGHTEE conducts its survey by simultaneously making continuum ( 26 ) , polarimetry (MIGHTEE-pol) ( 71 ) , and spectral-line (MIGHTEE- H i ) ( 30 ) measurements. Observations with the MIGHTEE survey have concluded, taking approximately 1000 hours of data in L-band over the four fields described above. In this work, the focus is on the use of various "Early-Science" data products, particularly the COSMOS central pointing (RA \sim 150.12 \deg , Dec. \sim 2.2 \deg ) visibility data and MIGHTEE- H i galaxy detections obtained using said visibility data, over the low-redshift band (0 < z < 0.09, corresponding to the frequency range of 1310 MHz < \nu < 1420 MHz). 2.2 Visibility data The data used comprises the interferometric visibilities observed with the MeerKAT telescope on the central pointing of the COSMOS field, as well as a catalogue of detected H i galaxies created using these interferometric observations ( 60 ) . The visibility data consist of three measurement sets (or data blocks) with a total on-source observation time of 17.45 hours. For the exact visibility data specifications, refer to Table 1 . Although there are other blocks available over the COSMOS field, they correspond to different pointings and cannot be easily coherently averaged for the visibility-based power spectrum analysis. The initial two data blocks were observed with 4K (4096) channels over the L-band, with the last observed using the 32K (32768 channels) mode configuration of the telescope. The time resolution is 8 seconds. These data blocks are each divided into scans. The length of each of these scans in block 1524147354 and block 1525613583 is \sim 10 minutes, amounting to 37 and 31 scans for each, respectively. Block 1524147354, therefore, has a total observation time of 6.1 hours, while block 1525613583 has an observation time of 5.1 hours. The 32K block, block 1587911796, has longer scans of \sim 55 minutes, and a total observation time of 6.25 hours spread over 7 scans. Figure 1: The uv distribution of the combined COSMOS field data used in this study at the central frequency of 1362.425 MHz. This distribution is shown in 2D, with the number of uv points displayed in the colour bar. The grid size used here is \Delta u=\Delta v=73\lambda , where \lambda is the central wavelength of the band used in this study. Being a core-heavy instrument, data observed with MeerKAT will be most sensitive to the larger range of cosmological ( k ) scales we are sensitive to. The core-concentration of MeerKAT is demonstrated by the uv distribution of the combined data blocks shown in Figure 1 . For this study, we use the calibrated, flagged, and reduced measurement sets. The reduction process for this visibility data is described in 38 for the 4K data blocks, and in 29 for the 32K data block. We do not repeat such processes before putting the visibility data through the gridding, averaging, and power spectrum estimation pipeline discussed in Section 3 . We make use of the frequency channels stored in the observed measurement sets over the range 1310 - 1420 MHz. From this selection of data blocks, we choose a relatively RFI-free region spanning approximately 1332.64 - 1392.20 MHz ( 0.020N\times\sigma_{P_{\text{TN}}}(\boldsymbol{k}_{\perp},k_{\parallel}), (7) That is, we flag voxels when the difference between the delay power spectrum, P_{\text{D}} , and the average expected thermal noise power spectrum, \bar{P}_{\text{TN}} , at (\boldsymbol{k}_{\perp},k_{\parallel}) is greater than some integer multiple, N , of the standard deviation, \sigma_{P_{\text{TN}}} , of this set of thermal noise power spectra generated from the thermal noise visibility realisations (we discuss these realisations further in Section 3.3 ). This procedure is done on the 3D auto-power spectrum cube, P_{\text{D}} , of both the "odd" and "even" visibility grids, and then the masks generated on each are combined. If voxels are flagged in the "odd" or "even" case, then the final mask will have that voxel flagged (regardless of whether or not it is only flagged in one or the other of the odd/even cases). Further, we used N=5 , which should only pick up extreme outliers while eliminating most of the trace contamination that shows up in the Stokes I power spectrum. Guaranteeing that our data are indeed free of outliers might be subject to some discussion. In this case, visual inspection on the 2D power spectrum helped us identify some "hot" pixels that should not be present if the data were H i or noise-dominated. We have a good understanding of how both the H i and noise should be distributed at the 3D power level for our dataset. Any strong outliers from the expected distribution (e.g., by looking at the histograms) are almost certainly due to contamination. Of course, this will become more difficult if the contamination level is close to the noise level. Another way to spot contamination is to look at clear patterns in the flag fraction, as can be seen later in Section 5.4 . Ideally, this contamination should be picked earlier in the data processing, but wide-band, low-level RFI might very well only show up at the 3D power spectrum level, after some visibility averaging is done. Further cases for N and the power spectrum results of this are discussed in Section 5.4 . Again, it is important to note that the H i signal is highly anisotropic at these scales, so the impact of this flagging will depend on where it is applied, at least in terms of the 2D power spectrum. A comparison with any model should be done by applying the same flags to the model in the 2D space before any spherical averaging. With a means to grid, average, and transform the visibility data and then subsequently estimate power spectra with thermal noise weighting and contamination flagging, these methods can be applied to the Stokes I data. We next discuss the thermal noise simulations. 3.3 Thermal noise simulations Figure 5: Comparison between the Stokes V and refitted simulated thermal noise 1D auto-power spectra. The increased amplitude we observe at k\lesssim 10 Mpc -1 for Stokes V is primarily due to leakage from Stokes I, resulting in the discrepancy in the two power spectra. Beyond this, the power spectra are consistent across all k scales. Thermal noise simulations are required to effectively apply the estimator to the Stokes I (or V) data, as it relies on these simulations for the noise weighting, as well as removing contamination found in the H i window of the power spectrum cube generated on the visibility data. This is done at the visibility level. For each baseline, time stamp, and frequency channel, the thermal noise is assigned randomly from a complex Gaussian distribution with a mean of zero, \mu_{\text{TN}}=0 , and a standard deviation given by the radiometer equation ( 8 ; 48 ) : \sigma_{\text{TN}}=\frac{2k_{\text{B}}T_{\text{sys}}}{A_{e}\sqrt{\delta\nu\ \delta t}}, (8) where T_{\text{sys}} is the system temperature of the instrument, A_{e} is the effective area of the dishes and \delta\nu and \delta t are the frequency and time resolutions, respectively. The quantity A_{e}/T_{\text{sys}} is known as the natural sensitivity. It is particularly crucial for ensuring that the simulated thermal noise amplitude is accurate when comparing it to the Stokes I power spectrum amplitude. The reported 4 4 4 https://skaafrica.atlassian.net/wiki/spaces/ESDKB/pages/277315585/MeerKAT+specifications MeerKAT natural sensitivity for the selected frequency range is 6.22 \text{m}^{2}/\text{K} . Since the reported value from MeerKAT and that obtained from the data itself may be different due to differing system temperature, it needs to be corrected. To do this, we compare simulated thermal noise power spectra amplitudes based on the observation parameters of our data to the power spectrum obtained from the Stokes V data. At least at large k values, we expect such data to be noise-dominated. The Stokes V data are put through the same gridding and averaging procedures as described for Stokes I. The 1D power spectrum is then compared to the 1D thermal noise power spectrum averaged over 10,000 realisations put through the same procedures described for Stokes I and Stokes V. The ratio of the 1D thermal noise power and Stokes V power at k>10 Mpc -1 is then used as a factor to rescale the initial value of A_{e}/T_{\text{sys}} . Doing so results in a value of 6.75 m 2 /K, which is still consistent with what we expect for MeerKAT. Once a refitted value for the natural sensitivity is obtained, the 10,000 realisations of the thermal noise simulations are used as a model of the thermal noise present in the data. The spherically averaged noise power spectrum is shown in Figure 5 and compared to the 1D power spectrum from the Stokes V data. The noise increases for large k_{\perp} due to the smaller number of long baselines. At k\gtrsim 10\ \text{Mpc}^{-1} , there is good agreement between the power spectra as expected, since the Stokes V signal will be noise-dominated. Below that, we see more power from Stokes V which should be primarily leakage from Stokes I. We then use the variance over the set of thermal noise power spectrum realisations, \sigma_{P_{\text{TN}}}^{2} , as the weights, w_{j} , in the power spectrum estimator. 3.4 Power Spectrum Results Figure 6: The Stokes I cylindrical power spectrum for the combined measurement set data after the 5\sigma cut has been applied for both cross- (left) and auto-correlation (right) cases. Also shown is the horizon limit, k_{\parallel}^{\text{horizon}}(k_{\perp}) as a dashed grey line for \pm k_{\parallel} . The contamination present in the same region above the horizon limit in the power spectrum shown in Figure 4 was removed after applying this cut in either case (cross or auto). We now turn to the power spectrum results using the pipeline described above. Figure 6 shows the cylindrical power spectra for auto-correlation and cross-correlation of the visibilities. Both cases are shown after 5 \sigma flags calculated on the data using Equation 7 have been applied to the 3D power spectrum cube. The flagging percentage in the region of uv space corresponding to the region above the horizon line in P(k_{\perp},k_{\parallel}) is shown in Figure 7 , demonstrating that the contamination that is flagged out by the criterion given in Equation 7 flags \boldsymbol{k} modes in the cube that are localised at \boldsymbol{k}_{\perp}\lesssim 20 Mpc -1 , which corresponds to a radius in uv -space of \sim 2700 \lambda . The percentage of k modes flagged by this criterion in each k bin is shown in Table 2 . For the visibility data, the flagging removes \sim 5% within the first k bin and \sim 2% in all subsequent bins. This indicates that the flagging is not extensive and should not result in significant signal loss. Figure 7: The uv -plane flagging fraction in the central portion of the uv grid for the measurement set data used. The maximum fraction has been set to 30% on the colour bar to clearly show lower level flagging applied by the 5\sigma cut, especially in the central region of the uv distribution corresponding with small k_{\perp} . Visibility power spectrum: odd \times even k bin [Mpc -1 ] Total Sampled Percentage Sampled 2.46 – 4.34 1034 982 94.97% 4.34 – 7.77 5062 4944 97.67% 7.77 – 13.8 17900 17606 98.36% 13.8 – 24.6 48548 47928 98.72% 24.6 – 43.7 132944 131365 98.81% Table 2: Table summarizing the k bins, total k modes in each bin, and the percentage of these that are sampled after applying the 5\sigma cut for the visibility data cross-power spectrum (odd \times even). In addition to considering the power spectrum estimated on the cross-correlation of delay-transformed visibility cubes (even \times odd), we also consider the auto-power of the combined visibility data placed in a single uv\tau cube (odd + even). To include this case in the comparison, the auto-power spectrum cube is also flagged using the 5 \sigma criteria to remove the contamination. After this, a thermal noise power spectrum model is subtracted from the 1D auto-power spectrum after applying the power spectrum estimator given in Equation 3 . The model that is subtracted from the auto-power spectrum is the mean of the 10,000 thermal noise realisations described in Section 3.3 . Assuming that the estimated value of A_{e}/T_{\text{sys}} accurately represents the noise in our data, this average will be a good approximation and can, therefore, be subtracted from the Stokes I auto-correlation power spectrum. Figure 8 shows a comparison of the 1D cross-power spectrum and auto-power spectrum estimated from the visibility data after applying a 5 \sigma cut. Included in the comparison is the power spectrum of the cross-correlated visibility data before the contamination flagging is performed. The shaded open circles show the negative power amplitudes. The auto-correlated visibility power spectrum should be an upper limit on the expected H i power spectrum on these scales. It is interesting that, other than in the second and fourth k bins, the thermal noise-subtracted auto-power is consistently higher than the power spectrum on the cross-correlation of visibilities before the 5 \sigma flagging is applied. This is likely due to small inaccuracies in the thermal noise power spectrum modelling at small k , despite its close correspondence with the Stokes V power spectrum at k\gtrsim 20\ \text{Mpc}^{-1} . Additionally, it could also indicate that there is residual contamination present in the auto-correlation power spectrum, which is ultimately reduced when taking the cross-correlation. The cross power spectrum estimate after 5 \sigma flagging shows a significant drop in the second and third k bins. The smaller drop in the first bin might indicate that there is still some contamination left after the 5 \sigma cut. The estimated power spectrum values after the 5 \sigma flagging are shown in Table 3 with an overall signal to noise of \sim 13 . As we will see later, this measured power spectrum is consistent with the power from the detected H i galaxies. Moreover, there is a clear non-zero signal when cross-correlating with the H i galaxy data, as expected if the majority of the signal in the cleaned visibility dataset is from H i . However, the power spectrum result presented here might still be biased, both due to residual contamination and possible signal loss. This is further discussed in the validation sections. Figure 8: Comparison of the 1D power spectrum estimate from the visibility data before and after applying the 5\sigma flagging to the 3D power spectrum. Included is the auto-correlation power spectrum after doing a noise model subtraction and applying the same 5 \sigma flags. Visibility power spectrum: odd \times even (after 5\sigma cut) k\ \left[\text{Mpc}^{-1}\right] P(k)\ \left[\text{mK}^{2}\ \text{Mpc}^{3}\right] \sigma_{P}(k)\ \left[\text{mK}^{2}\ \text{Mpc}^{3}\right] P(k)/\sigma_{P}(k) 3.366 0.227 0.031 7.323 6.297 0.100 0.012 8.333 11.055 0.017 0.006 2.833 19.131 0.025 0.004 6.250 33.162 -0.001 0.003 -0.333 Table 3: Estimated 1D power spectrum values. Shown are the effective k at which the power spectrum amplitudes, P(k) , are quoted, as well as the errors, \sigma_{P}(k) , and the ratio of the amplitude to error, P/\sigma_{P} . 4 Validations: H i Power spectrum from a box of detected H i galaxies In this section, we develop a pipeline to measure the H i galaxy power spectrum, which will be used to compare to our visibility-based approach. The procedures in this section describe a method of going directly from the information provided in the galaxy catalogue described in Section 2.3 such as H i mass, M H i , RA, Dec., redshift ( z ) and W_{50} to an H i intensity cube and then the H i power spectrum. 4.1 Temperature mesh assignment The procedures applied to the catalogue to produce the temperature cube/mesh and the power spectrum estimation steps can be summarized as follows: • Galaxies within the redshift range (0.02 < z < 0.066) are selected along with their R.A., Dec., and M_{\text{\text{H\,{i}}}} . • The galaxies are transformed from sky coordinates (R.A., Dec., z ) to Cartesian coordinates (L_{x},L_{y},L_{z}) in Mpc/h units. • The Cartesian coordinates and the galaxy masses themselves are added to a mesh grid using the Nearest Grid Point (NGP) mass-assignment scheme. This scheme can be expressed as ( 33 ; 17 ; 16 ; 19 ) : W_{\text{NGP}}(\textbf{x})=\begin{cases}1,\ &\text{for}\ |\textbf{x}|<\frac{1}{2}\\ 0,\ &\text{otherwise,}\end{cases} (9) where x is the distance of the particle (in this case, a given galaxy from the catalogue) from the centre of the grid point, normalised by the cell (pixel) size. The pixel size selected for this is 0.05 Mpc/h to ensure that a pixel can realistically contain all the H i for each galaxy. This choice is made based on the expected H i sizes of the MIGHTEE-detected galaxies according to the H i size-mass relation ( 63 ) . In our case, even the highest-mass galaxies have a D_{\text{H\,{i}}} that is smaller than the 0.05 Mpc/h pixel size, and so requires no further interpolation of H i mass into neighbouring cells in the mesh grid, hence our use of the NGP mass-assignment scheme. This is illustrated in Figure 9 via the expected H i size calculated from the H i masses of each galaxy in the catalogue based on the fit provided in 63 . Figure 9: The best-fit H i size-mass relation ( D_{\text{H\,{i}}} - M_{\text{H\,{i}}} ) from 63 with 3\sigma scatter, plotted with the predicted H i sizes of the selected galaxies on the central COSMOS pointing according to their H i masses. The red dotted line shows the pixel size selected for the mesh in Mpc. • For completeness, higher-order mass assignment schemes are also tested without applying any aliasing corrections to see the deviation from the NGP assignment scheme case. In particular, the Cloud-in-Cell (CIC) and Triangular-Shaped Cloud (TSC) mass assignment schemes are tested. These are given in real space as W_{\text{CIC}}(\textbf{x})=\begin{cases}1-|\textbf{x}|,&\text{for}\ \textbf{x}<1\\ 0,&\text{otherwise}\end{cases} (10) W_{\text{TSC}}(\textbf{x})=\begin{cases}\frac{3}{4}-|\textbf{x}|^{2},&\text{for}\ |\textbf{x}|<\frac{1}{2}\\ \frac{1}{2}\left(\frac{3}{2}-|\textbf{x}|\right)^{2},&\text{for}\ \frac{1}{2}\leq|\textbf{x}|<\frac{3}{2}\\ 0,&\text{otherwise}\end{cases} (11) Figure 10: Comparison of the power spectrum using the standard mass-assignment schemes in nbodykit , using the standard power spectrum estimator on the H i galaxy mesh. This does not include the spreading of mass along L_{z} , any k mode-exclusion induced by the foreground avoidance, and the 5\sigma flagging or thermal noise weighting. The power spectrum results on the galaxy mesh grids comparing the various mass assignment schemes are shown in Figure 10 . This comparison is done without including the spreading of M_{\text{H\,{i}}} along L_{z} . This is to ensure that the comparison is done without including any window functions along z which could induce suppression of the power spectra in addition to that imposed by the different mass assignment schemes. Also shown here is the H i shot noise power spectrum model given by ( 12 ) P_{\text{SN}}=\bar{T}_{\text{H\,{i}}}^{2}V\sum_{i}\left(M_{\text{H\,{i}}}^{i}\right)^{2}/\ \left(\sum_{i}M_{\text{H\,{i}}}^{i}\right)^{2}, (12) where \bar{T}_{\text{H\,{i}}} is the average H i temperature, V is the volume of the mesh, and the sum is over the H i mass in the mesh. Since this model assumes point sources and does not include the effect of W_{50} along the line-of-sight or the smoothing along L_{x} and L_{y} induced by mass assignment, we expect it to be consistent with the power spectrum on the H i galaxies using the NGP scheme. We indeed see that the NGP power spectrum and shot noise model are consistent in Figure 10 for k\gtrsim 10 Mpc -1 . A derivation of this shot noise model can be found in Appendix A . When including all the effects, such as the line width, and given the large cell size, we found that the NGP scheme is the optimal option for our purposes. • Once the galaxy H i masses have been placed in voxels, the mass is distributed along L_{z} using the characteristic width given by the W_{50} of each galaxy in the catalogue. Here, a choice for the shape is made as only a numerical value for the W_{50} is provided in the catalogue. 35 has shown that the choice of the shape of the profile has minimal effects on the power spectrum estimated from the galaxies, hence we make the choice of using a Boxcar function which evenly distributes the H i mass of each galaxy along L_{z} over the pixels which correspond to the characteristic length scale given by the W_{50} . The relation between this length scale and the W_{50} can be expressed as: r_{\text{galaxy}}=\frac{W_{50}}{H(z)}(1+z), (13) where H is the Hubble factor at the redshift of the galaxy, z , in units of km/s/Mpc. • The mesh now has the H i mass of each galaxy selected from the catalogue in units of M_{\odot} . This is converted to H i temperature using ( 12 ) T^{\text{pix}}_{\text{H\,{i}}}=\frac{C_{\text{H\,{i}}}(z)\ M^{\text{pix}}_{\text{H\,{i}}}}{V_{\text{pix}}}, (14) where the conversion is done across the entire mesh at the central frequency of the mesh, z_{c} . • So far, the steps described above make use of tools in the nbodykit 5 5 5 https://nbodykit.readthedocs.io/en/latest/ package ( 27 ) , which is conveniently suited to dealing with the computations required for converting survey data into cosmological volumes ready for power spectrum estimation and other cosmological calculations. • The H i temperature mesh cube is then used to obtain an estimate of the power spectrum using equations 3 and 4 , with the same foreground avoidance applied using Equation 6 , and taking comparative cases in which the same thermal noise weights, w_{j} , are applied. For the standard estimator on the H i temperature mesh, these weights are excluded, i.e., w_{j}=1,\ \forall\ j . The thermal noise weighting and foreground avoidance help ensure that the estimated galaxy H i power spectrum is equivalent to the estimate obtained from the visibility data. • Finally, to be able to apply the same windows and weights to this 3D power spectrum, we interpolate and extrapolate the (k_{\perp},k_{\parallel}) galaxy cube to match exactly the one derived from the visibility data. The main issue is the perpendicular resolution of the galaxy box. In order to fix this, a simple extrapolation was made where higher k_{\perp} values were matched to the galaxy box maximum k_{\perp} . This is enough because 1) the foreground cuts remove most of the high k_{\perp} values, 2) we only show comparisons down to the galaxy box resolution, and 3) the shot noise will dominate at higher k_{\perp} . 4.2 Impact of flags and weights We now discuss the impact of foreground avoidance, noise weights, and power spectrum flags on the H i galaxy power spectra. Since the H i power spectrum is highly anisotropic, especially on the scales considered in this work, any change in the selected ({\bf k}_{\perp},k_{\parallel}) modes can impact the final 1D power spectrum. Figure 11 shows the effect of foreground avoidance on the mass spread ( W_{50} ) case. Note that for the case of no spread along L_{z} in which each galaxy’s mass is confined to a single voxel, we do not expect foreground avoidance to have a significant effect on the overall amplitude. On the other hand, for the W_{50} case, the loss of low k_{\parallel} modes leads to a loss of power which becomes more significant at large k . Figure 11: Comparing the H i power spectrum from galaxies with and without foreground avoidance. This is done before applying the 5 \sigma flags or the thermal noise weights. Figure 12: The H i power spectrum estimated on the H i galaxies comparing the cases of including and excluding the 5 \sigma flags (top), as well as the ratio of the two cases (bottom) over the full k range. Figure 13: The H i power spectrum on the H i galaxies, comparing the cases of including and excluding the thermal noise weights when using the estimator. Figure 12 shows the effect of applying the 5 \sigma flags. In this case, we flag the exact same 3D modes as the ones flagged on the visibility data. The difference between the flagged and unflagged cases is less than 5%. This is somewhat at odds with what we have seen with the full visibility data, where the power spectrum shows a larger drop as we increase the \sigma flagging. The comparison is non-trivial because the 2D power spectrum is highly anisotropic. This is why we can even have the signal amplitude increasing slightly, as seen in this figure. Our understanding is that the "real" signal has power more "spread out" and closer to the horizon cut in comparison to our H i galaxy only signal. That is also where most of the \sigma flagging is happening (Figure 23 ). On the other hand, the thermal noise weights have a much more significant impact on the estimated power spectrum. Specifically, these weights raise the power spectrum amplitude at k\lesssim 20 Mpc -1 as shown in Figure 13 . This is because we have small k_{\perp} values contributing to these modes, which have low noise due to the large number of short baselines and therefore get "up-weighted". Above k\sim 20 Mpc -1 , the noise will start dominating everywhere (Figure 5 ). The impact of these weights on the final averaged power spectrum arises from the strong anisotropies in the 3D power spectrum. Therefore, the same weights, flags, and windows must be applied to any model power spectrum for a proper comparison. 4.3 Estimating error bars based on M_{\text{H\,{i}}} uncertainties The final step is to estimate an error on the power spectrum from these galaxies. So far, the error bars shown on the power spectra have been estimated using a Jackknife approach. We mask pixels containing individual galaxies in the mesh and run the entire power spectrum code end-to-end, from assigning H i mass to the mesh to the power spectrum estimation. Due to the small sample of galaxies, this method and the sampling variance in Equation 4 do not capture the uncertainty in the power spectrum we are estimating, especially when we want to compare to the power spectrum estimated on the visibility data. The M_{\text{H\,{i}}} of these galaxies have an uncertainty associated with them according to the mass range in which they lie. These uncertainties are derived from the noise properties of the H i cubes from which these galaxy masses are measured ( 38 ) , and a detailed description of these mass measurements is given in 60 . The exact levels are given at the 5% level for M_{\text{H\,{i}}}>10^{9}M_{\odot} , 10% for 10^{8}M_{\odot}