convert_frame
Convert celestial coordinates between ICRS, FK5, FK4, and Galactic reference frames using validated astropy transforms.
Instructions
Transform coordinates between reference frames (ICRS, FK5, FK4, Galactic).
Uses astropy's tested transforms, never hand-rolled trigonometry. Returns the position in the target frame with the frame explicitly labeled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ra_deg | Yes | ||
| dec_deg | Yes | ||
| to_frame | No | galactic | |
| from_frame | No | icrs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes | ||
| epoch | No | ||
| frame | No | icrs |