fetch_wl_chain
Download a published weak-lensing MCMC or nested-sampling chain and write a slim CSV with weight, Omega_m, sigma_8, S_8, and h0/w for comparison before analysis or contour plotting.
Instructions
[Published result - for comparison only] Download a published MCMC/nested-sampling chain and write a slim CSV (published result, for comparison only).
Use before analyze_wl_chain / plot_s8_om_contours. The CSV holds weight, omega_m, sigma_8, S_8 (derived as sigma_8 sqrt(Om/0.3) where the chain lacks it or has NaN) and h0 / w when present. DES chains are 5-50 MB each; KiDS chains come from the release tarball. HSC Y3 chains need HSC-SSP credentials (clear error + manual-download path).
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": {
"dataset": "<dataset>",
"chain": "<chain>",
"output_dir": "<output_dir>"
},
"name": "fetch_wl_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain key, see describe_wl_dataset(...)['chains']: des_y3 3x2pt_lcdm, 3x2pt_wcdm, 1x2pt_lcdm, 2x2pt_lcdm, planck_lcdm, ...; des_y6 3x2pt_lcdm, 1x2pt_lcdm, 3x2pt_cmb_lcdm, ... (see fetch_des_y6_chain); kids_* cosebis, bandpowers, xipm. | |
| dataset | Yes | Survey release key. | |
| max_rows | No | Cap on rows written to the CSV (highest-weight rows kept). | |
| output_dir | Yes | Directory where output files are written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |