xyz_to_thetaphi

xyz_to_thetaphi(p_xyz)[source]

Convert unit cartesian vector to physical spherical coordinate convention

Spherical coordinate convention:
  • theta angle is the angle between the pointing vector X and the earth center
  • phi angle is the angle between y axis and projection vector in plane (y,z)
Parameters:p_xyz (numpy array with shape (3)) – array of unit cartesian vector

:return : theta, phi in degree :rtype :numpy array with shape (2)