compute_lcdm_theory_spectrum
Computes lensed LCDM TT/TE/EE/BB and lensing-potential spectra to CSV for CMB fitting, plotting, and residual checks; uses supplied camb parameters or a Planck 2018 fallback.
Instructions
Compute a lensed LCDM TT/TE/EE/BB + lensing-potential theory spectrum to CSV.
Model computation: with camb and YOUR parameters this is your own model for
fitting the bandpowers. Uses camb (optional dependency, lazily imported; or a facility
node via set_dispatch). Without camb and without params it falls back to the bundled
Planck 2018 published best-fit theory file (ell<=2508) - that is a published result
(comparison only), flagged in metadata.model_source; say so when reporting. Pass the CSV as theory_file to
plot_cmb_spectra / compute_cmb_residuals / plot_lensing_spectrum.
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": "compute_lcdm_theory_spectrum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lmax | No | Maximum multipole (ACT needs ~6500). | |
| params | No | LCDM parameters: ombh2, omch2, cosmomc_theta (or H0), tau, logA (or As), ns, mnu. Missing -> Planck 2018 best fit. Requires camb. | |
| output_dir | Yes | Directory for the theory CSV. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |