fetch_wl_datavector
Download a published two-point statistic data vector from a weak-lensing survey and write a tidy CSV with covariance for plotting or signal-to-noise analysis.
Instructions
Download one published 2pt statistic and write a tidy CSV.
Use this first for any data-vector question. Columns: bin1, bin2
(tomographic bin pair, 1-based; for gammat bin1=lens, bin2=source),
angbin, x (theta in arcmin, COSEBI mode n, or ell - see x_name),
value, error (sqrt of the covariance diagonal). Also writes the
statistic's covariance sub-matrix as .npy for plot_covariance /
compute_signal_to_noise. Data vectors are the published ones (scale
cuts NOT applied: DES/KiDS files are the full measured vectors; the HSC real-space
file is the CosmoSIS-library one, wider than the Li+23 analysis cuts).
KiDS downloads a 50-130 MB release tarball on first use. des_y6 returns
a not-yet-public notice (available=False, no files) until DES releases
the Y6 2pt products.
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>",
"statistic": "<statistic>",
"output_dir": "<output_dir>"
},
"name": "fetch_wl_datavector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | Survey release key (see list_wl_datasets). | |
| statistic | Yes | Statistic: xip, xim (all); gammat, wtheta (des_y3); cosebis, bandpowers (kids_*; plus cosebis_b, bandpowers_b for kids_legacy); cl_ee (hsc_y3). | |
| output_dir | Yes | Directory where output files are written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |