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, optional If
True, convert the angles to longitude, latitude, or equivalently, RA, Dec.
- points
- Returns:
ndarrayThe corresponding spherical angles.