Topocentric Coordinates¶
Functions for working with local topocentric coordinate frames including East-North-Up (ENZ), South-East-Zenith (SEZ), and Azimuth-Elevation-Range.
ENZ (East-North-Up) Frame¶
Rotation Matrices¶
rotation_ellipsoid_to_enz builtin ¶
rotation_ellipsoid_to_enz(x_ellipsoid: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Compute rotation matrix from ellipsoidal coordinates to East-North-Up (ENZ) frame.
Calculates the rotation matrix that transforms vectors from an ellipsoidal coordinate frame (geocentric or geodetic) to the local East-North-Up (ENZ) topocentric frame at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_ellipsoid | ndarray or list | Ellipsoidal position | required |
angle_format | AngleFormat | Angle format for input angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix from ellipsoidal frame to |
rotation_enz_to_ellipsoid builtin ¶
rotation_enz_to_ellipsoid(x_ellipsoid: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Compute rotation matrix from East-North-Up (ENZ) frame to ellipsoidal coordinates.
Calculates the rotation matrix that transforms vectors from the local East-North-Up (ENZ) topocentric frame to an ellipsoidal coordinate frame (geocentric or geodetic) at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_ellipsoid | ndarray or list | Ellipsoidal position | required |
angle_format | AngleFormat | Angle format for input angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix from |
Position Conversions¶
relative_position_ecef_to_enz builtin ¶
relative_position_ecef_to_enz(location_ecef: Union[ndarray, List], r_ecef: Union[ndarray, List], conversion_type: EllipsoidalConversionType) -> ndarray
Convert relative position from ECEF to East-North-Up (ENZ) frame.
Transforms a relative position vector from Earth-Centered Earth-Fixed (ECEF) coordinates to the local East-North-Up (ENZ) topocentric frame at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location_ecef | ndarray or list | Reference location in | required |
r_ecef | ndarray or list | Position vector in | required |
conversion_type | EllipsoidalConversionType | Type of ellipsoidal conversion ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Relative position in |
Example
relative_position_enz_to_ecef builtin ¶
relative_position_enz_to_ecef(location_ecef: Union[ndarray, List], r_enz: Union[ndarray, List], conversion_type: EllipsoidalConversionType) -> ndarray
Convert relative position from East-North-Up (ENZ) frame to ECEF.
Transforms a relative position vector from the local East-North-Up (ENZ) topocentric frame to Earth-Centered Earth-Fixed (ECEF) coordinates at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location_ecef | ndarray or list | Reference location in | required |
r_enz | ndarray or list | Relative position in | required |
conversion_type | EllipsoidalConversionType | Type of ellipsoidal conversion ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Position vector in |
Example
position_enz_to_azel builtin ¶
position_enz_to_azel(x_enz: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Convert position from East-North-Up (ENZ) frame to azimuth-elevation-range.
Transforms a position from the local East-North-Up (ENZ) topocentric frame to azimuth-elevation-range spherical coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_enz | ndarray or list | Position in | required |
angle_format | AngleFormat | Angle format for output angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Azimuth-elevation-range |
Example
SEZ (South-East-Zenith) Frame¶
Rotation Matrices¶
rotation_ellipsoid_to_sez builtin ¶
rotation_ellipsoid_to_sez(x_ellipsoid: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Compute rotation matrix from ellipsoidal coordinates to South-East-Zenith (SEZ) frame.
Calculates the rotation matrix that transforms vectors from an ellipsoidal coordinate frame (geocentric or geodetic) to the local South-East-Zenith (SEZ) topocentric frame at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_ellipsoid | ndarray or list | Ellipsoidal position | required |
angle_format | AngleFormat | Angle format for input angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix from ellipsoidal frame to |
Example
rotation_sez_to_ellipsoid builtin ¶
rotation_sez_to_ellipsoid(x_ellipsoid: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Compute rotation matrix from South-East-Zenith (SEZ) frame to ellipsoidal coordinates.
Calculates the rotation matrix that transforms vectors from the local South-East-Zenith (SEZ) topocentric frame to an ellipsoidal coordinate frame (geocentric or geodetic) at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_ellipsoid | ndarray or list | Ellipsoidal position | required |
angle_format | AngleFormat | Angle format for input angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix from |
Example
Position Conversions¶
relative_position_ecef_to_sez builtin ¶
relative_position_ecef_to_sez(location_ecef: Union[ndarray, List], r_ecef: Union[ndarray, List], conversion_type: EllipsoidalConversionType) -> ndarray
Convert relative position from ECEF to South-East-Zenith (SEZ) frame.
Transforms a relative position vector from Earth-Centered Earth-Fixed (ECEF) coordinates to the local South-East-Zenith (SEZ) topocentric frame at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location_ecef | ndarray or list | Reference location in | required |
r_ecef | ndarray or list | Position vector in | required |
conversion_type | EllipsoidalConversionType | Type of ellipsoidal conversion ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Relative position in |
Example
relative_position_sez_to_ecef builtin ¶
relative_position_sez_to_ecef(location_ecef: Union[ndarray, List], x_sez: Union[ndarray, List], conversion_type: EllipsoidalConversionType) -> ndarray
Convert relative position from South-East-Zenith (SEZ) frame to ECEF.
Transforms a relative position vector from the local South-East-Zenith (SEZ) topocentric frame to Earth-Centered Earth-Fixed (ECEF) coordinates at the specified location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location_ecef | ndarray or list | Reference location in | required |
x_sez | ndarray or list | Relative position in | required |
conversion_type | EllipsoidalConversionType | Type of ellipsoidal conversion ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Position vector in |
Example
position_sez_to_azel builtin ¶
position_sez_to_azel(x_sez: Union[ndarray, List], angle_format: AngleFormat) -> ndarray
Convert position from South-East-Zenith (SEZ) frame to azimuth-elevation-range.
Transforms a position from the local South-East-Zenith (SEZ) topocentric frame to azimuth-elevation-range spherical coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_sez | ndarray or list | Position in | required |
angle_format | AngleFormat | Angle format for output angular coordinates ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Azimuth-elevation-range |