compare_mass_calibration
Quantify relative mass bias between galaxy-cluster surveys from matched catalogs by reporting median mass ratios, log-normal scatter, redshift trends, and optional slope fits.
Instructions
Mass-calibration comparison for matched clusters: M500_b vs M500_a scatter, ratio vs z and vs mass.
Use after crossmatch_catalogs to quantify relative mass bias between surveys
(e.g. Planck's hydrostatic 1-b ~0.8 vs WL-calibrated SPT/ACT, or SZ vs eROSITA).
Reports median ratio with bootstrap error, log-normal scatter, per-z-bin ratios
and (optionally) a power-law slope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_dir": "<output_dir>",
"matched_csv": "<matched_csv>"
},
"name": "compare_mass_calibration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| z_edges | No | Redshift bins for the ratio trend (default 0,0.2,0.4,0.6,0.8,1.2). | |
| fit_slope | No | Fit ln M_b = alpha + beta ln(M_a/3e14) by orthogonal-ish (BCES-Y|X and bisector) regression. | |
| output_dir | Yes | Directory for the PNG / CSV. | |
| matched_csv | Yes | CSV written by crossmatch_catalogs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |