compute_cluster_counts
Computes per-catalogue cluster-count histograms N(z) and cumulative N(>M500), saving CSV and PNG outputs to compare survey depths or support LCDM predictions.
Instructions
Histogram cluster counts: N(z) per redshift bin and cumulative N(>M500), 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).
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). | |
| output_dir | Yes | Directory for output files (created if missing). | |
| 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 |