xyz_to_direlev

xyz_to_direlev(p_xyz, deg=False)[source]

Convert unit cartesian vector in spherical coordinate with CNES convention

CNES convention :
  • elevation angle (like latitude) 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
  • deg (boolean) – output angle in degree, else rad
Returns:

array of spherical coordinate direction and elevation

:rtype:numpy array with shape (n,2)