xyz_to_equatorial
- ssapy.utils.xyz_to_equatorial(xq, yq, zq, xe=0, ye=0, ze=0, degrees=False)[source][source]
Convert equatorial rectangular coordinates to RA and declination.
- Parameters:
xq (float or array-like) – Object coordinates in the equatorial frame.
yq (float or array-like) – Object coordinates in the equatorial frame.
zq (float or array-like) – Object coordinates in the equatorial frame.
xe (float or array-like, optional) – Reference-point coordinates in the equatorial frame.
ye (float or array-like, optional) – Reference-point coordinates in the equatorial frame.
ze (float or array-like, optional) – Reference-point coordinates in the equatorial frame.
degrees (bool, optional) – If True, return angles in degrees. Otherwise, return radians.
- Returns:
Right ascension and declination.
- Return type: