predict_shear_correlation
Predict theoretical cosmic-shear correlation functions xi+ and xi- for tomographic bin pairs using CAMB, Limber, and Hankel transforms, with optional baryon corrections and dataset comparison.
Instructions
Predict cosmic-shear xi+(theta), xi-(theta) per tomographic bin pair (CAMB halofit + Limber + Hankel), optional baryons.
Pure GG lensing signal: no intrinsic alignments, shear bias, or photo-z
shifts. P_NL(k,z) from CAMB (halofit, normalised to sigma8);
C_ell by the Limber approximation (k = (ell+1/2)/chi) in flat
cosmology; xi+- by dense Bessel J0/J4 quadrature to ell = 1e5. With
baryon_file the ratio S(k[,z]) multiplies P(k) (S -> 1 below the
tabulated k, held at its last value above), and the output also gives
the DMO prediction and the ratio xi_baryon / xi_dmo. Writes
theory_xipm.csv (bin1, bin2, theta_arcmin, xip, xim[, xip_dmo, xim_dmo,
ratio_xip, ratio_xim]) and, with plot, a triangle figure. Needs camb
(pip install camb). ~5-15 s. Validation: KiDS-1000 n(z), Om=0.27,
S8=0.76 -> served KiDS-1000 xi+ / theory = 0.90 +/- 0.03 (0.5-75
arcmin; the remaining deficit is mostly intrinsic alignments, absent
here).
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": "predict_shear_correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | H0 / 100. | |
| Ob | No | Omega_b. | |
| Om | No | Omega_m (total matter, incl. neutrinos). | |
| S8 | No | S8 = sigma8 sqrt(Om/0.3); used if sigma8 is not given. | |
| ns | No | Scalar spectral index. | |
| mnu | No | Sum of neutrino masses [eV]. | |
| plot | No | ||
| sigma8 | No | sigma8 (give this or S8). | |
| halofit | No | CAMB halofit_version: takahashi, mead2020, mead (HMcode2016), original, bird. | takahashi |
| bin_pairs | No | 1-based tomographic pairs, e.g. [[1,1],[1,2]]; default all i<=j. | |
| nz_source | No | n(z): 'kids_1000', 'kids_legacy', 'des_y3', 'hsc_y3' (the release n(z) this server serves) or a path to a text/CSV file with columns z, n_1(z), n_2(z), ... | kids_1000 |
| output_dir | Yes | Directory where output files are written. | |
| baryon_file | No | Optional P_hydro/P_dmo ratio CSV multiplied into P(k): hydroemu-mcp-server Pk-ratio output ('# ' header lines, columns x = k [h/Mpc], y_mean = ratio) or plain k[h/Mpc], z, ratio (z-dependent) / k, ratio. Without z the ratio is applied at all redshifts. | |
| theta_arcmin | No | Angular separations [arcmin]; default 20 log-spaced values 0.5-300. | |
| compare_dataset | No | Overlay the served xi+ data vector of this dataset (same n(z) recommended) and fit a single amplitude A = data / theory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |