convert_relative_position
Convert spacecraft positions between Earth-centered Earth-fixed (ECEF) and topocentric horizon frames (ENZ, SEZ, AZEL) relative to a ground station.
Instructions
Convert a position relative to a ground station between ECEF and topocentric frames.
Supported conversions: ECEF<->ENZ, ECEF<->SEZ, ENZ->AZEL, SEZ->AZEL.
Args: station: 3-element station position (geodetic [lon,lat,alt] or ECEF [x,y,z]). vector: 3-element position to convert. from_frame: Source frame (ECEF, ENZ, SEZ). to_frame: Target frame (ECEF, ENZ, SEZ, AZEL). station_type: How station is specified: "geodetic" (default), "geocentric", or "ecef". angle_format: "degrees" (default) or "radians" for AZEL output and station angles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector | Yes | ||
| station | Yes | ||
| to_frame | Yes | ||
| from_frame | Yes | ||
| angle_format | No | degrees | |
| station_type | No | geodetic |