compute_cluster_counts
Compute per-catalogue cluster count histograms by redshift and cumulative mass or richness thresholds, outputting CSVs and a plot to compare survey depths or LCDM predictions.
Instructions
Histogram cluster counts: N(z) per redshift bin and cumulative N(>M500) (or N(>richness)), per catalogue.
Use to compare survey depths or as the observed side of predict_cluster_counts_lcdm.
Writes counts_nz.csv and counts_nm.csv (+ a PNG with both panels). Optical catalogues
without masses (des_y6_wazp) get N(>richness) rows in counts_nrich.csv instead of
N(>M500); m500_min is not applied to them (use richness_min).
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>",
"catalogs": "<catalogs>"
},
"name": "compute_cluster_counts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m_grid | No | M500 thresholds [1e14 Msun] for N(>M) (default log 0.5..30). | |
| z_edges | No | Redshift bin edges (default 0..1.6 step 0.1). | |
| catalogs | Yes | Harmonised CSVs from fetch_cluster_catalog and/or dataset keys (full catalogue). | |
| m500_min | No | Mass threshold for N(z) in 1e14 Msun (None = all with z). | |
| zmax_area | No | des_y6_wazp: divide each z bin by the footprint area whose ZMAX exceeds z (averaged over the bin; the depth-limited area where richness is complete), instead of the full 4544.7 deg^2. Pair with in_cosmo clusters. | |
| output_dir | Yes | Directory for output files (created if missing). | |
| richness_min | No | Richness threshold for N(z) of optical catalogues (des_y6_wazp NGALS); ignored for SZ/X-ray. | |
| richness_grid | No | Richness thresholds for N(>richness) of optical catalogues (default log 5..300). | |
| normalise_by_area | No | Also give counts per deg^2 using each dataset's area. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |