The first part reruns the fits for Abell 2029 and Abell 2319 from the public X-COP profiles. The second uses a simulated survey to follow the mass difference into a count. Start with hydrostatic mass bias and cluster counts if you want the derivation.
Get the files
Download and unpack the complete replay ZIP. The individual files are also available.
The ZIP preserves the folders. Create a Python environment with the versions listed in requirements.txt and run the replay.
python3 -m pip install -r requirements.txt
python3 reproduce.py
The run takes a few seconds and exits with status 0 when every number agrees with expected-outputs.json within its tolerance.
Step 1: read an input file
Each input file holds columns copied unchanged from the X-COP FITS tables for one cluster, the SHA-256 of every FITS file and of the release archive, and a header with the published redshift, R500, M500 and the pressure unit P500. Open xcop-a2029.json and find:
- density: deprojected electron density NE in cm−3 between radii R_IN and R_OUT in kpc, with lower and upper bounds.
- pressureXRay: pressure P_X in units of P500 at radius RW_X in units of R500.
- pressureSZ: pressure P_SZ from Planck at RW_SZ. The FITS header says P/K500. Ghirardini et al. plot both pressure profiles in units of the same pressure scale in Figure 4.
- gasFraction: the published gas fraction profile.
The team asks users to cite three papers: Ghirardini et al. for thermodynamic profiles, Ettori et al. for masses and Eckert et al. for gas fractions. Universal thermodynamic properties of the intracluster medium in the X-COP sample Hydrostatic mass profiles in X-COP galaxy clusters Non-thermal pressure support in X-COP galaxy clusters
Step 2: fit density and pressure
fit_density fits lnne with a one-component form of the Vikhlinin et al. density model. Chandra sample of nearby relaxed galaxy clusters, Eq. 3 fit_pressure fits all X-ray and SZ points together with a generalised NFW profile, inner slope fixed at 0.3081 as in Arnaud et al. The universal galaxy cluster pressure profile from REXCESS, Eq. 12
The SZ points get one free scale factor. Where SZ and X-ray points overlap, the SZ values are lower: the median ratio is 0.73 for A2029 and 0.89 for A2319, and across all 12 clusters in the release it ranges from 0.73 to 1.24. A single profile could not pass through both sets. The fitted factors are 0.756 and 0.922, so the SZ points constrain the outer shape but not the normalisation.
The printed χ2 is 75.8 for 24 pressure points in A2029 and 252 for 29 points in A2319. Treat these as weighted residual scores. The points are correlated and this calculation uses their individual error bars.
Step 3: hydrostatic mass and the cluster edge
analyse_cluster evaluates
and finds R500 where the mean enclosed density reaches 500ρc(z) for H0=70 and Ωm=0.3. The profile measures electron pressure. Hydrostatic balance here assumes thermal pressure supports all the gas against gravity.
The mass depends on the logarithmic pressure slope at R500: −2.69 for A2029 and −2.61 for A2319. For A2029 the fit sits on the bound of the outer slope parameter. The parameters trade off there, but the slope at R500 stays put.
Step 4. Three mass estimates from one data set
The script then integrates the gas mass with ρgas=μmp(ne+np) and ne=1.17np, and forms:
- the hydrostatic gas fraction at our R500: 0.140 for A2029, 0.187 for A2319, against published 0.140 and 0.190;
- the mass at which the gas fraction would equal the universal 0.131: 9.22 and 14.7;
- the mass that the Planck X-ray-calibrated relation assigns to our spherical Y500: 8.44 and 10.0. Planck 2015 results XXIV, Sec. 1 and Eq. 7
For A2029, 1−0.131/0.140=0.065 is a constant non-thermal fraction consistent with the gas fraction. For A2319 it is 0.30.
Step 5. Compare with the catalogues
The Planck proxy exceeds the X-COP mass for Abell 2319 and falls below it for Abell 2029. The proxy applies a pressure-to-mass relation calibrated on hydrostatic masses. Its printed errors describe the catalogue extraction. The hydrostatic and Planck estimates share some Planck data. Second Planck SZ Catalogue, Sec. 7 and catalogue definitions
Herbonnet et al. also integrated the tangential shear around Abell 2029 and deprojected it using an NFW model. The central estimate is 10.8×1014M⊙ inside 1.52 Mpc. At that same radius the published X-COP profile gives 9.21×1014M⊙. Their ratio is 0.85. The lensing mass alone spans (8.5,12.7)×1014M⊙ over its quoted uncertainty. The frozen CFHT table supplies a match for Abell 2029. Its coverage leaves the Abell 2319 entry empty. Herbonnet et al., Sec. 5.2 and Table A2 of the pinned preprint
Step 6. Fit with the central Planck bins masked
The Planck beam smears the smallest radii. Ghirardini et al. drop the first three SZ bins. Repeat that cut and the best pressure scale factor moves from 0.756 to 0.888 for Abell 2029 and from 0.922 to 1.096 for Abell 2319. Fixing the scale to one on these same outer bins raises the weighted residual score from 60.9 to 64.4, and from 198.4 to 206.2, respectively. The fitted factor depends on the radial cut. Ghirardini et al., Sec. 2.5
Step 7. Rerun the simulated survey
cluster_count_selection.run builds a survey with true σ8=0.81 and true 1−b=0.8: Tinker mass function, Planck's Y-M relation, lognormal scatter 0.173, noise growing with angular size, detection at q>6, 65 percent of the sky, ten redshift bins from 0 to 1.
The Monte Carlo check matters because it draws individual clusters, scatters them and applies the cut, a route independent of the analytic integral. Then the script solves for the σ8 that matches the expected total for each assumed 1−b: 0.916 at 0.6, 0.810 at 0.8, 0.739 at 1.0.
Failure cases kept on purpose
- Abell 2029's pressure fit reaches the outer-slope bound. Abell 2319's fitted scale crosses unity after masking. A single temperature or pressure calibration cannot explain those checks on its own.
- The script ignores covariance matrices and fits smooth forms, while the published masses come from forward-modelling. The fit tests whether the same inputs yield a nearby answer.
- The published rows are an exercise in matching definitions and apertures. Estimating one population correction requires a sample and its selection model.
- The toy survey's noise model and sky are simplified and its count is tuned to be similar to Planck's 439. It fits only the total count, so σ8 and 1−b are completely degenerate.
A checklist for the next calibration paper
- Which mass does the paper call "true", and which mass calibrated the scaling relation?
- Are the reported masses thermal-only hydrostatic masses, or corrected for non-thermal pressure?
- Is Y spherical or cylindrical, and inside which radius?
- Is the scatter in the observable modelled together with the selection?
- Are calibration and cosmology fitted in separate stages, and how does the uncertainty of the first enter the second?
To check what the Lab shows against these numbers, open the cluster mass Lab.