x_to_angles¶
-
pydl.pydlutils.mangle.
x_to_angles
(points, latitude=False)[source]¶ Convert unit Cartesian vectors to spherical angles.
Parameters: points :
ndarray
A set of x, y, z coordinates.
latitude :
bool
, optionalIf
True
, convert the angles to longitude, latitude, or equivalently, RA, Dec.Returns: The corresponding spherical angles.