convert_state
Convert a 6-element state vector between coordinate frames including KOE, ECI, ECEF, GCRF, ITRF, and EME2000. Supports angular formats and epoch specification.
Instructions
Convert a 6-element state vector between coordinate frames.
Supported conversions: KOE<->ECI, ECI<->ECEF (requires epoch), GCRF<->ITRF (requires epoch), GCRF<->EME2000.
Args: vector: 6-element state vector [x,y,z,vx,vy,vz] or [a,e,i,RAAN,omega,M]. from_frame: Source frame (ECI, KOE, ECEF, GCRF, ITRF, EME2000). to_frame: Target frame (same set). angle_format: "degrees" (default) or "radians" for KOE angles. epoch: ISO epoch string, required for ECI<->ECEF and GCRF<->ITRF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epoch | No | ||
| vector | Yes | ||
| to_frame | Yes | ||
| from_frame | Yes | ||
| angle_format | No | degrees |