x_to_angles

pydl.pydlutils.mangle.x_to_angles(points, latitude=False)[source]

Convert unit Cartesian vectors to spherical angles.

Parameters:
pointsndarray

A set of x, y, z coordinates.

latitudebool, optional

If True, convert the angles to longitude, latitude, or equivalently, RA, Dec.

Returns:
ndarray

The corresponding spherical angles.