ecliptic_xyz_to_equatorial_xyz
- ssapy.utils.ecliptic_xyz_to_equatorial_xyz(xc, yc, zc)[source][source]
Convert ecliptic rectangular coordinates (X, Y, Z) to equatorial rectangular coordinates.
This function transforms the position of an object from the ecliptic coordinate system to the equatorial coordinate system using the obliquity of the ecliptic.
Parameters:
xc (float): X-coordinate in the ecliptic coordinate system. yc (float): Y-coordinate in the ecliptic coordinate system. zc (float): Z-coordinate in the ecliptic coordinate system.
Returns:
- tuple: A tuple containing:
xq (float): X-coordinate in the equatorial coordinate system (unchanged from ecliptic X).
yq (float): Y-coordinate in the equatorial coordinate system.
zq (float): Z-coordinate in the equatorial coordinate system.
Notes:
The transformation uses the obliquity of the ecliptic (sin_ec and cos_ec) to rotate the Y and Z components.
The obliquity of the ecliptic (sin_ec and cos_ec) must be defined globally or imported prior to calling this function.
Example:
ecliptic_xyz_to_equatorial_xyz(1.0, 0.5, 0.3) -> (xq, yq, zq)