fetch_cluster_selection_function
Download and save survey selection-function tables (completeness vs observable) for Planck, ACT, or SPT cluster catalogs, providing inputs to forward-model cluster counts.
Instructions
Fetch the survey selection function / completeness characterisation for a cluster survey.
Use to get the detection probability as a function of the survey observable
(Planck: completeness C(Y500, theta500); ACT: Q-filter + RMS noise per tile;
SPT: field areas + noise correction factors). These are the inputs needed to
forward-model cluster counts via predict_cluster_counts_lcdm.
Planck data: range-fetches only the ~120 KB tail of the 403 MB FITS file.
ACT data: streams the 7.4 GB tarball but extracts only the ~2 MB selFn tables.
SPT data: hard-coded field parameters from Bocquet+19 (no download needed).
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>"
},
"name": "fetch_cluster_selection_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | No | Dataset key: psz2, act_dr6, or spt_sz. | psz2 |
| variant | No | Planck variant: MMF3_cosmology (default, 65%% sky), union_survey (84%% sky). Ignored for ACT/SPT. | |
| output_dir | Yes | Directory for selection-function CSV/JSON. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |