bin_hubble_diagram
Compress a supernova Hubble diagram into redshift bins of mu residuals against a fiducial cosmology, preserving full covariance for compact correlated data vectors and trend analysis.
Instructions
Compress a Hubble diagram into redshift bins of mu residuals vs a fiducial cosmology.
Use to see trends (e.g. the low-z vs high-z offset that drives Om/w differences between
samples) and to make compact, correlated data vectors. Residuals are mu - mu_fid with the
best-fit offset removed; binning is a full-covariance GLS compression, so the bin
covariance (written as .npy) keeps systematic correlations. Union3 is already binned:
bins with one node are passed through.
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": "bin_hubble_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zmax | No | Upper z cut. | |
| zmin | No | z cut (None = release standard). | |
| fid_Om | No | Fiducial flat-LCDM Om for residuals. | |
| fid_w0 | No | Fiducial w0. | |
| fid_wa | No | Fiducial wa. | |
| n_bins | No | Number of log-spaced z bins. | |
| dataset | No | SN sample. | pantheonplus |
| output_dir | Yes | Directory for the binned CSV + covariance. | |
| calibrators | No | include | exclude | only (Pantheon+). | exclude |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |