angles_to_x¶
-
pydl.pydlutils.mangle.angles_to_x(points, latitude=False)[source]¶ Convert spherical angles to unit Cartesian vectors.
Parameters: points :
ndarrayA 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: ndarrayThe corresponding Cartesian vectors.