xyz_to_ecliptic

ssapy.utils.xyz_to_ecliptic(xc, yc, zc, xe=0, ye=0, ze=0, degrees=False)[source][source]

Convert ecliptic rectangular coordinates to longitude and latitude.

Parameters:
  • xc (float or array-like) – Object coordinates in the ecliptic frame.

  • yc (float or array-like) – Object coordinates in the ecliptic frame.

  • zc (float or array-like) – Object coordinates in the ecliptic frame.

  • xe (float or array-like, optional) – Reference-point coordinates in the ecliptic frame.

  • ye (float or array-like, optional) – Reference-point coordinates in the ecliptic frame.

  • ze (float or array-like, optional) – Reference-point coordinates in the ecliptic frame.

  • degrees (bool, optional) – If True, return angles in degrees. Otherwise, return radians.

Returns:

Ecliptic longitude and latitude.

Return type:

tuple