measure_nz_from_catalog
Builds weighted photo-z n(z) histograms per tomographic bin from a shear catalogue to show which redshifts a selected subset probes.
Instructions
Weighted photo-z histogram n(z) per tomographic bin from a shear catalogue.
Use for 'what redshifts does my subset probe'. This is the naive
lensfit-weighted z_B histogram; by construction each bin is confined
to its z_B edges and lacks the outlier tails that the released,
SOM-calibrated n(z) (Hildebrandt+21, Wright+20) has - so its mean z
sits below the calibrated one for the high bins. Treat the release
n(z) as the analysis-grade product; this tool shows the selection.
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": {
"catalog_fits": "<catalog_fits>",
"output_dir": "<output_dir>"
},
"name": "measure_nz_from_catalog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dz | No | Histogram bin width. | |
| z_column | No | Photo-z column to histogram (BPZ z_B). | z_b |
| output_dir | Yes | Directory where output files are written. | |
| catalog_fits | Yes | Slim FITS from fetch_shear_catalog. | |
| compare_release | No | Overlay the released KiDS-1000 SOM n(z). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |