---
title: "用 X-COP 公开剖面重算流体静力学质量，再跑一次玩具 SZ 巡天"
description: "重新拟合 A2029 和 A2319 的冻结 X-COP 公开剖面，各得三种质量，再跑玩具 SZ 巡天，看假定的偏差怎样决定宇宙学参数。"
canonical_url: "https://sandboxphysics.com/zh/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/"
language: "zh-CN"
page_type: "story"
alternate_languages:
  en: "https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/"
last_modified: "2026-11-22"
---

[用 X 射线、SZ 和引力透镜称星系团](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/)

# 用 X-COP 公开剖面重算流体静力学质量，再跑一次玩具 SZ 巡天

Sandbox Physics · 2026-11-22

Planck 给 Abell 2029 称出 $7.04\times10^{14} M_\odot$。用背景星系的形变推算，质量是 $12.1\times10^{14} M_\odot$。把两份结果和 X 射线剖面放在一起，再把比较的半径统一，看看三把秤之间还差多少。

先从公开 X-COP 剖面重算 Abell 2029 和 Abell 2319 的质量，再模拟一次 SZ 巡天，看看质量偏差会把星系团计数推向哪里。推导见[流体静力学质量偏差和星系团计数](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/)。

## 取文件

下载并解压[完整复算包](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/xcop-mass-calibration-replay.zip)。也可单独取下面的文件。

- [README.md](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/README.md)：运行方法、目录结构和失败案例
- [xcop\_hydrostatic\_masses.py](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/xcop_hydrostatic_masses.py)：剖面拟合和三种质量估计
- [cluster\_mass\_function.py](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/cluster_mass_function.py)：晕质量函数
- [cluster\_count\_selection.py](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/cluster_count_selection.py)：玩具 SZ 巡天
- [compare\_catalogues.py](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/compare_catalogues.py)：对上 Planck、CFHT 和 X-COP 的同一对象
- [observed-catalogues.json](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/observed-catalogues.json)：PSZ2 两行数据及 Abell 2029 的弱透镜数据
- [requirements.txt](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/requirements.txt)：NumPy 和 SciPy 的版本
- [reproduce.py](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/reproduce.py)：全部重跑，并和冻结的输出比对
- [xcop-a2029.json](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/xcop-a2029.json) 和 [xcop-a2319.json](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/xcop-a2319.json)：冻结的 X-COP 数据列
- [expected-outputs.json](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/expected-outputs.json) 和 [provenance.json](https://sandboxphysics.com/stories/cluster-mass-calibration/materials/provenance.json)：输出、来源和 SHA-256 校验和

复算包已经排好目录。用 Python 3.12 建一个新环境，再装依赖并运行。

```
python3 -m pip install -r requirements.txt
python3 reproduce.py
```

算完会逐项比对 expected-outputs.json。全部落在容差内，退出码为 0。

## 第一步：看输入文件

一个输入文件对应一个星系团。数据列原样取自 X-COP 的 FITS 表，表头记录红移、$R_{500}$、$M_{500}$ 和压强单位 $P_{500}$。每个 FITS 文件和总压缩包都附 SHA-256 校验和。打开 xcop-a2029.json，找到：

- density：反投影后的电子密度 NE，单位 ${\rm cm^{-3}}$，对应半径 R\_IN 到 R\_OUT（kpc），附上下界。
- pressureXRay：压强 P\_X，单位是 $P_{500}$；半径 RW\_X 以 $R_{500}$ 为单位。
- pressureSZ：Planck 测的压强 P\_SZ，半径 RW\_SZ。FITS 表头写作 P/K500。Ghirardini 等在图 4 里把两套压强都除以同一个压强标度。
- gasFraction：已发表的气体比例剖面。

X-COP 团队请使用者引用三篇论文：热力学剖面引 Ghirardini 等，质量引 Ettori 等，气体比例引 Eckert 等。[Universal thermodynamic properties of the intracluster medium in the X-COP sample](https://arxiv.org/abs/1805.00042v2) [Hydrostatic mass profiles in X-COP galaxy clusters](https://arxiv.org/abs/1805.00035v3) [Non-thermal pressure support in X-COP galaxy clusters](https://arxiv.org/abs/1805.00034v2)

## 第二步：拟合密度和压强

fit\_density 用 Vikhlinin 等人密度模型的单成分形式拟合 $\ln n_{\rm e}$。[Chandra sample of nearby relaxed galaxy clusters, Eq. 3](https://arxiv.org/abs/astro-ph/0507092v1) fit\_pressure 把 X 射线点和 SZ 点放在一起，用广义 NFW 剖面拟合，内斜率按 Arnaud 等人的做法固定为 0.3081。[The universal galaxy cluster pressure profile from REXCESS, Eq. 12](https://arxiv.org/abs/0910.1234v1)

SZ 点多一个自由缩放因子。两组点重叠的地方，SZ 值偏低：A2029 的比值中位数是 0.73，A2319 是 0.89；发布的 12 个星系团里，这个比值从 0.73 到 1.24 不等。一条剖面穿不过两组点。拟合出的缩放因子是 0.756 和 0.922，所以 SZ 点只约束外部形状，不约束归一。

用每点误差算残差，A2029 的 24 个压强点合计 75.8，A2319 的 29 个点合计 252。点与点之间还有相关性，这里的残差只用来比较几种拟合。

## 第三步：流体静力学质量和星系团边缘

analyse\_cluster 计算

$$
M(<r)=-\frac{r^2}{G\mu m_{\rm p}n_{\rm e}}\,\frac{\mathrm dP_{\rm e}}{\mathrm dr},\qquad \mu=0.61,
$$

再在 $H_0=70$、$\Omega_{\rm m}=0.3$ 下找平均包含密度达到 $500\rho_{\rm c}(z)$ 的 $R_{500}$。式子用电子压强估计热压强，假定光靠热压就能托住这团气体。

**表 5.1** 我们的流体静力学拟合和已发表的 X-COP 数值对比。

| 星系团 | 我们的 $R_{500}$（kpc） | 已发表 | 我们的 $M_{500}$（$10^{14}\ M_\odot$） | 已发表 | 比值 |
| --- | --- | --- | --- | --- | --- |
| A2029 | 1393 | 1414 | 8.28 | 8.65 | 0.957 |
| A2319 | 1361 | 1368 | 7.57 | 7.68 | 0.985 |

质量取决于 $R_{500}$ 处压强的对数斜率：A2029 是 $-2.69$，A2319 是 $-2.61$。A2029 的拟合卡在外斜率参数的边界上，几个参数在那里此消彼长，但 $R_{500}$ 处的斜率稳得住。

## 第四步：一份数据，三种质量

脚本接着按 $\rho_{\rm gas}=\mu m_{\rm p}(n_{\rm e}+n_{\rm p})$、$n_{\rm e}=1.17n_{\rm p}$ 积分气体质量，然后给出：

1. 我们的 $R_{500}$ 处的流体静力学气体比例：A2029 为 0.140，A2319 为 0.187；已发表值是 0.140 和 0.190。
2. 让气体比例等于普适值 0.131 的质量：9.22 和 14.7。
3. 用 Planck 的 X 射线标定关系，把我们算的球内 $Y_{500}$ 换成质量：8.44 和 10.0。[Planck 2015 results XXIV, Sec. 1 and Eq. 7](https://arxiv.org/abs/1502.01597v3)

对 A2029，和气体比例相容的常数非热比例是 $1-0.131/0.140=0.065$；对 A2319 是 0.30。

## 第五步 把目录里的质量放在一起

**表 5.2** 平均密度为 $500\rho_{\rm c}(z)$ 时的质量，单位为 $10^{14}\,M_\odot$。

| 星系团 | X-COP 静力学 | Planck PSZ2 代理 | CFHT 弱透镜 NFW 拟合 |
| --- | --- | --- | --- |
| A2029 | 8.65 | $7.04_{-0.19}^{+0.20}$ | $12.1\pm2.5$ |
| A2319 | 7.68 | $8.74_{-0.12}^{+0.11}$ |  |

Planck 给 Abell 2319 的数更重，给 Abell 2029 的数更轻。目录用热压信号估质量，换算关系以静力学质量为标尺。目录误差反映这一次提取，X-COP 与 Planck 还共用了一部分观测。[第二版 Planck SZ 目录，第 7 节与字段说明](https://arxiv.org/abs/1502.01598v1)

Herbonnet 团队还积分了 Abell 2029 周围的切向剪切，用 NFW 模型把柱内质量换成球内质量。半径取 1.52 Mpc 时，弱透镜给 $10.8\times10^{14}\,M_\odot$，X-COP 剖面在同一半径给 $9.21\times10^{14}\,M_\odot$，两者之比是 0.85。只看弱透镜这一项的误差，结果已经覆盖了 $(8.5,12.7)\times10^{14}\,M_\odot$。这份 CFHT 表能对上 Abell 2029，Abell 2319 那格因此留空。[Herbonnet 等，第 5.2 节及固定预印本的表 A2](https://arxiv.org/abs/1912.04414v1)

## 第六步 去掉 Planck 最靠中心的三点

Planck 的波束会抹平中心。Ghirardini 团队在拟合时去掉了最里面的三个 SZ 点。我们照着删，Abell 2029 的压强缩放从 0.756 变到 0.888，Abell 2319 从 0.922 变到 1.096，跨过了 1。再把缩放锁死在 1，后者的残差从 198.4 升到 206.2。截取哪段半径会改变拟合，拿这个数当统一标定常数就会出问题。[Ghirardini 等，第 2.5 节](https://arxiv.org/abs/1805.00042v2)

## 第七步 重跑模拟巡天

cluster\_count\_selection.run 搭了一次巡天，真实 $\sigma_8=0.81$、真实 $1-b=0.8$：Tinker 质量函数，Planck 的 $Y$-$M$ 关系，0.173 的对数正态弥散，随角尺寸增大的噪声，$q>6$ 才算探测到，65% 天区，红移 0 到 1 分十个箱。

**表 5.3** 模拟巡天的检验。

| 检验 | 结果 |
| --- | --- |
| 解析计算的探测数 | 481.9 |
| 200 次蒙特卡罗巡天的平均 | 483.1，标准差 19.7 |
| 差值折合标准误差 | 0.86 |
| 若 $1-b$ 为 1，$\sigma_8=0.81$ 时预言的探测数 | 1255 |

蒙特卡罗检验的意义在于，它一个个抽星系团、加弥散、过阈值，和解析积分走的是两条独立的路。然后脚本对每个假定的 $1-b$ 求出能对上期望总数的 $\sigma_8$：0.6 时 0.916，0.8 时 0.810，1.0 时 0.739。

## 特意保留的失败案例

- Abell 2029 的压强拟合撞到了外斜率的上界。Abell 2319 去掉内圈数据后，最合适的缩放又跨过了 1。放宽归一化只能缓和一部分残差。
- 脚本忽略协方差矩阵，拟合的是平滑函数，已发表的质量则来自正向建模。两种方法共用剖面。结果相近，让我们确认质量没有算偏一个量级。
- 这两个对象用来练习如何统一定义和半径。要给整批星系团定质量修正，还要知道样本怎么选出来。
- 玩具巡天的噪声模型和天区都简化过，探测数调到和 Planck 的 439 相近。它只拟合总数，$\sigma_8$ 和 $1-b$ 完全简并。

## 下次读标定论文时的清单

1. 论文说的“真实质量”指什么？标定标度关系用的又是哪种质量？
2. 报告的是只算热压强的流体静力学质量，还是修正过非热压强？
3. $Y$ 是球内的还是柱内的，在哪个半径以内？
4. 观测量的弥散有没有和选择效应一起建模？
5. 标定和宇宙学是不是分阶段拟合的？第一阶段的不确定度怎样带进第二阶段？

想拿这些数字对照实验里看到的东西，打开[星系团质量实验](https://sandboxphysics.com/zh/labs/galaxy-cluster-mass-calibration/)。

## 到实验里试试

[用三种办法称一个星系团](https://sandboxphysics.com/zh/labs/galaxy-cluster-mass-calibration/)：把实验里的 X 射线质量比和你算出的 A2029、A2319 结果对照。

## 来源

1. [Universal thermodynamic properties of the intracluster medium in the X-COP sample](https://arxiv.org/abs/1805.00042v2)
2. [Hydrostatic mass profiles in X-COP galaxy clusters](https://arxiv.org/abs/1805.00035v3)
3. [Non-thermal pressure support in X-COP galaxy clusters](https://arxiv.org/abs/1805.00034v2)
4. [Chandra sample of nearby relaxed galaxy clusters, Eq. 3](https://arxiv.org/abs/astro-ph/0507092v1)
5. [The universal galaxy cluster pressure profile from REXCESS, Eq. 12](https://arxiv.org/abs/0910.1234v1)
6. [Planck 2015 results XXIV, Sec. 1 and Eq. 7](https://arxiv.org/abs/1502.01597v3)
7. [第二版 Planck SZ 目录，第 7 节与字段说明](https://arxiv.org/abs/1502.01598v1)
8. [Herbonnet 等，第 5.2 节及固定预印本的表 A2](https://arxiv.org/abs/1912.04414v1)

## 继续阅读

用 X 射线、SZ 和引力透镜称星系团 · 阅读路径

### 从三把秤到星系团计数

1. [文章 **为什么 X 射线、SZ 效应和引力透镜称出的星系团质量不一样**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/three-ways-to-weigh-a-cluster/)
2. [文章 **用流体静力学平衡和热气体称星系团**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/hydrostatic-mass-from-x-rays/)
3. [文章 **用 SZ 康普顿 y 参数和透镜切变搭第一个能算的星系团模型**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/)
4. [文章 **流体静力学质量偏差怎样带偏星系团计数的宇宙学结论**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/)
5. [当前页面 **用 X-COP 公开剖面重算流体静力学质量，再跑一次玩具 SZ 巡天**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/)
6. [文章 **怎样读 Planck 2015 SZ 星系团计数和质量偏差**](https://sandboxphysics.com/zh/stories/cluster-mass-calibration/reading-the-planck-cluster-count-mass-bias/)
