analyze_light_curve
Analyze transient light curves to measure rise time, fade time, and duration across photometric bands, including incomplete curves, and generate an interactive notebook with plots.
Instructions
Analyze light curve evolution for multiple photometric bands.
Calculates key temporal properties of a transient's light curve including rise time, fade time, total duration, and pre-peak variability (flares) for each requested photometric band.
Handles incomplete light curves:
Still rising: Reports time from first detection to current
Still fading: Reports time from peak to current
Returned to baseline: Reports complete rise + fade times
Generates CSV data file + Jupyter notebook with interactive Plotly plots showing all bands overlaid, plus editable analysis code cells.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_name | Yes | Source identifier - SkyPortal obj_id, ZTF name, or TNS name | |
| filter_names | No | Comma-separated photometric filters (default: "ztfg,ztfr") Examples: "ztfg,ztfr", "ztfg,ztfr,ztfi", "sdssr" | ztfg,ztfr |
| output_format | No | Output format - "notebook" (default) generates Jupyter notebook + CSV, "text" returns summary in chat | notebook |
| baseline_threshold | No | Magnitude difference from peak to consider "baseline" (default: 0.3 mag, i.e., source must fade by >0.3 mag from peak to be considered at baseline) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |