crossmatch_catalogs
Cross-match two galaxy-cluster catalogs positionally and by redshift to identify one-to-one counterparts, then write matched pairs, separations, redshift offsets, and mass ratios to CSV.
Instructions
Positionally (+ redshift) cross-match two cluster catalogues; write the matched pairs and mass ratios.
Use for SZ-vs-X-ray (or SZ-vs-SZ) comparisons. Nearest neighbour in A for each B
entry within the radius, made one-to-one (each A keeps its closest B). Typical
radii: 2' for SZ-SZ (ACT/SPT beams ~1'), 3' for Planck (5' beam, larger
positional error) or SZ-vs-eROSITA. Output CSV has *_a / *_b columns,
sep_arcmin, dz and mass_ratio = M500_b / M500_a.
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>",
"catalog_a": "<catalog_a>",
"catalog_b": "<catalog_b>"
},
"name": "crossmatch_catalogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_dz | No | Max |z_a - z_b| / (1 + z_a); None = no redshift requirement (entries without z can still match). | |
| catalog_a | Yes | Harmonised CSV from fetch_cluster_catalog, or a dataset key. | |
| catalog_b | Yes | Harmonised CSV from fetch_cluster_catalog, or a dataset key. | |
| output_dir | Yes | Directory for the matched CSV. | |
| radius_arcmin | No | Max angular separation in arcmin. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |