angles_to_x

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

Convert spherical angles to unit Cartesian vectors.

Parameters
pointsndarray

A set of angles in the form phi, theta (in degrees).

latitudebool, optional

If True, assume that the angles actually represent longitude, latitude, or equivalently, RA, Dec.

Returns
ndarray

The corresponding Cartesian vectors.