cartesian_to_spherical

cartesian_to_spherical#

gaiaunlimited.scanninglaw.cartesian_to_spherical(xyz)#

Convert cartesian XYZ to (longitude,latitude).

Parameters:

xyz ((N,3) array) – (X,Y,Z) coordinates for each point

Returns:

longitude and latitude of each point

Return type:

(2,N) array