crossmatch_catalogs
Cross-match two cluster catalogues by sky position and redshift, then output one-to-one matched pairs with separations, dz, and mass ratios for SZ-vs-X-ray or SZ-vs-SZ comparisons.
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. Optical catalogues (des_y6_wazp)
carry richness instead of mass (mass_ratio NaN): pass WaZP (optionally richness-cut) as
catalog_a and the SZ catalogue as catalog_b with ~2' radius to get a richness_a-vs-M500_b
table (the KD-tree is built on A, every B entry is queried).
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 |