angles_to_x¶
-
pydl.pydlutils.mangle.
angles_to_x
(points, latitude=False)[source]¶ Convert spherical angles to unit Cartesian vectors.
- Parameters
points :
ndarray
A set of angles in the form phi, theta (in degrees).
latitude :
bool
, optionalIf
True
, assume that the angles actually represent longitude, latitude, or equivalently, RA, Dec.- Returns
ndarray
The corresponding Cartesian vectors.