fetch_sn_sample
Download and tidy a Type Ia supernova Hubble diagram with its full statistical and systematic covariance, writing a CSV and matching covariance array for plotting or external analysis.
Instructions
Download (first use) and tidy one SN Ia Hubble diagram with its FULL stat+sys covariance.
Use this first: it writes `<dataset>_hd.csv` (cid, survey, z, zhel, mu, mu_err_diag,
is_calibrator) and `<dataset>_cov.npy` (the matching sub-covariance in mag^2, same row
order). Every other tool can take the dataset name directly, but the CSV is what you
hand to plotting or external codes. Union3 is a 22-node binned (compressed) Hubble
diagram - there is no public per-SN Union3 table.
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": "fetch_sn_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zmax | No | Keep z_HD <= zmax. | |
| zmin | No | Keep z_HD > zmin. None = release standard (Pantheon+ 0.01, others 0). | |
| dataset | No | pantheonplus | des5yr | union3 | des_dovekie (see list_sn_datasets). | pantheonplus |
| output_dir | Yes | Directory for the CSV + covariance .npy. | |
| calibrators | No | Pantheon+ Cepheid-host calibrators (IS_CALIBRATOR=1): include | exclude | only. Other samples have none. | include |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |