xyz_to_direlev

xyz_to_direlev(p_xyz)[source]

Convert unit cartesian vector in spherical coordinate with CNES convention

CNES convention :
  • elevation angle is the angle between vector and plane (y,z)
  • direction is angle between y axis and projection vector in plane (y,z)
Parameters:p_xyz (numpy array with shape (n,3)) – array of unit cartesian vector

:return : array of spherical coordinate direction and elevation in degree :rtype :numpy array with shape (n,2)