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