plot_redshift_distributions
Plot normalized redshift distributions per tomographic bin for selected weak-lensing surveys and export the curves to CSV for inspection or cross-survey comparison.
Instructions
Plot n(z) per tomographic bin (one panel per dataset) and write them to CSV.
Use to inspect or compare redshift distributions across surveys.
Curves are normalised to unit integral; the metadata reports each
bin's mean redshift (sanity: DES Y3 sources ~0.34, 0.52, 0.74, 0.96;
KiDS-1000 ~0.26..0.93; HSC Y3 ~0.44..1.3).
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": {
"datasets": "<datasets>",
"output_dir": "<output_dir>"
},
"name": "plot_redshift_distributions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample | No | 'lens' exists only for des_y3. | source |
| datasets | Yes | One or more dataset keys. | |
| output_dir | Yes | Directory where output files are written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |