@spiceErrorCheck<EOL>def recsph(rectan):
rectan = stypes.toDoubleVector(rectan)<EOL>r = ctypes.c_double()<EOL>colat = ctypes.c_double()<EOL>lon = ctypes.c_double()<EOL>libspice.recsph_c(rectan, ctypes.byref(r), ctypes.byref(colat),<EOL>ctypes.byref(lon))<EOL>return r.value, colat.value, lon.value<EOL>
Convert from rectangular coordinates to spherical coordinates.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html

:param rectan: Rectangular coordinates of a point.
:type rectan: 3-Element Array of floats
:return:
        Distance from the origin,
        Angle from the positive Z-axis,
        Longitude in radians.
:rtype: tuple