generate_cone_search_code
Generates Python code to query ZTF detections around multiple sky coordinates, enabling catalog cross-matching and coverage checks.
Instructions
Generate code to perform ZTF cone searches at multiple positions.
This tool generates Python code that searches for ZTF detections within a radius of specified sky coordinates. Useful for cross-matching catalogs or checking if known positions have ZTF coverage.
Use Case: When you have a list of coordinates (e.g., from a catalog, TNS, or previous observations) and want to find all ZTF detections nearby.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinates | Yes | Comma-separated "RA,Dec" pairs or JSON array of [RA, Dec]. RA/Dec in decimal degrees (J2000). Examples: - "150.0,2.5,151.2,3.1,152.5,2.8" (3 positions) - '[[150.0, 2.5], [151.2, 3.1]]' (JSON format) | |
| radius_arcsec | No | Search radius in arcseconds (default: 2.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |