generate_bulk_lightcurve_code
Create a ready-to-run Jupyter notebook that bulk downloads ZTF alert photometry from Fritz, exports to CSV, and generates interactive light curve plots.
Instructions
Generate a Jupyter notebook to bulk download ZTF light curves from Fritz.
Creates a ready-to-run .ipynb notebook that uses ztfquery's Fritz integration to download alert photometry (detection epochs) for multiple sources with multiprocessing, save results to CSV, and create interactive Plotly plots.
Note: This downloads alert photometry, not forced photometry. For forced photometry (including non-detections/upper limits), use the IRSA ZTF forced photometry service.
Requires: ztfquery + Fritz API token.
Setup: from ztfquery.io import set_account; set_account('fritz', token_based=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Comma-separated filter names (default: "ztfg,ztfr,ztfi") | ztfg,ztfr,ztfi |
| sources | Yes | Comma-separated list of ZTF source names, or JSON array. Example: "ZTF24aaaaaaa,ZTF24aaaaaab,ZTF24aaaaaac" Or: '["ZTF24aaaaaaa", "ZTF24aaaaaab"]' | |
| include_plots | No | Generate interactive Plotly light curve plots (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |