fetch_sn_lightcurve
Download and parse photometric light-curve data for one Type Ia supernova, returning a CSV with MJD, band, flux, and flux error from Pantheon+ or DES-SN5YR datasets.
Instructions
Download and parse raw photometric light-curve data for one SN Ia.
Pantheon+ light curves are individual SNANA .dat files from PantheonPlusSH0ES/DataRelease
(downloaded on demand). DES-SN5YR light curves come from the SALT3 fit LCPLOT file (data +
model columns; 7.4 MB download on first use). Returns a CSV with mjd, band, flux, flux_err
(and mag where available). Use plot_sn_lightcurve to visualise.
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>",
"cid": "<cid>"
},
"name": "fetch_sn_lightcurve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | SN candidate ID (e.g. '2011fe', '523183', '2254'). | |
| dataset | No | pantheonplus (SNANA text files, per-SN download) or des5yr (extracted from DES5YR_SALT3_LCFIT.LCPLOT.gz). | pantheonplus |
| output_dir | Yes | Directory for the light-curve CSV(s). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |