analyze_color_evolution
Compute color evolution for an astronomical source by generating matched and interpolated color curves (band1-band2). Outputs CSV and Jupyter notebook with overlaid plots for analysis.
Instructions
Analyze color evolution and color at peak brightness.
Calculates color curves (band1 - band2) using BOTH methods:
Matched: Day-to-day colors (pairs close observations)
Interpolated: Rolling/continuous colors (interpolates for smooth curve)
Generates CSV data file + Jupyter notebook with overlaid plots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band1 | No | First photometric filter (default: "ztfg") | ztfg |
| band2 | No | Second photometric filter (default: "ztfr") | ztfr |
| source_name | Yes | Source identifier - SkyPortal obj_id, ZTF name, or TNS name | |
| max_data_gap | No | For matched method - if gap between consecutive observations in either band exceeds this, don't calculate colors across the gap (default: 3.0 days). Prevents spurious colors during observing gaps. | |
| max_time_gap | No | For matched method - maximum time difference (days) to pair observations (default: 0.5 days) | |
| output_format | No | Output format - "notebook" (default) generates Jupyter notebook + CSV, "text" returns summary in chat | notebook |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |