fetch_cmb_spectrum
Download a public CMB bandpower spectrum (TT, TE, EE, BB, or lensing PP) and save it as a tidy CSV for analysis.
Instructions
Fetch one public CMB bandpower spectrum and write it as a tidy CSV.
Use this first for any spectrum task. Columns: ell, D_ell, err_lo, err_hi (+ ell_min,
ell_max when bins are known; + planck_best_fit for Planck binned). Units: D_ell =
ell(ell+1)C_ell/2pi in muK^2; PP is [L(L+1)]^2 C_L^phiphi/2pi (ACT/SPT C^kk converted).
If the dataset ships a covariance (ACT DR6, all lensing) it is saved as <stem>_cov.npy.
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_cmb_spectrum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binned | No | Planck only: True = PLA binned (ell>=30, bundled); False = unbinned 2<=ell (downloaded). | |
| dataset | No | planck_pr3 | act_dr6 | spt3g_d1 | spt3g_2018. | planck_pr3 |
| spectrum | No | TT, TE, EE, BB (Planck low-ell only) or PP (lensing). | TT |
| output_dir | Yes | Directory for the tidy CSV. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |