plot_sn_lightcurve
Plots a Type Ia supernova multi-band light curve by downloading per-SN photometry on demand and generating a publication-style chart with one color per band in flux or magnitude space.
Instructions
Plot a SN Ia multi-band light curve (per-SN photometry).
Downloads the light curve on demand (same as fetch_sn_lightcurve) and makes a publication-style
plot with one colour per band. Flux space (default) shows the SALT2 flux calibration; magnitude
space inverts the y-axis and uses mag where available.
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": "plot_sn_lightcurve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | SN candidate ID. | |
| dataset | No | pantheonplus or des5yr. | pantheonplus |
| flux_space | No | Plot in flux (True) or magnitude (False, inverted axis). | |
| output_dir | Yes | Directory for the PNG. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |