hamsci_psws.geopack.lspToLcar¶
- hamsci_psws.geopack.lspToLcar(X, Y, Z, inverse=False)[source]¶
Converts a position from local spherical to local cartesian (and vice-versa).
- The local spherical coordinate system is defined as:
origin: local position
azimuth (with respect to North)
Elevation (with respect to horizon)
Altitude
- The local cartesian coordinate system is defined as:
origin: local position
X: East
Y: North
Z: up
The meaning of the input (X,Y,Z) depends on the direction of the conversion (to global cartesian or to global spherical).
- Parameters
X (float) – azimuth [degree, N] or local cartesian X [km]
Y (float) – elevation [degree] or local cartesian Y [km]
Z (float) – distance origin [km] or local cartesian Z [km]
inverse (Optional[bool]) – inverse conversion
- Returns
X (float) – local cartesian X [km] or azimuth [degree, N]
Y (float) – local cartesian Y [km] or elevation [degree]
Z (float) – local cartesian Z [km] or distance from origin [km]