@spiceErrorCheck<EOL>def recgeo(rectan, re, f):
rectan = stypes.toDoubleVector(rectan)<EOL>re = ctypes.c_double(re)<EOL>f = ctypes.c_double(f)<EOL>longitude = ctypes.c_double(<NUM_LIT:0>)<EOL>latitude = ctypes.c_double(<NUM_LIT:0>)<EOL>alt = ctypes.c_double(<NUM_LIT:0>)<EOL>libspice.recgeo_c(rectan, re, f, ctypes.byref(longitude),<EOL>ctypes.byref(latitude), ctypes.byref(alt))<EOL>return longitude.value, latitude.value, alt.value<EOL>
Convert from rectangular coordinates to geodetic coordinates.

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

:param rectan: Rectangular coordinates of a point.
:type rectan: 3-Element Array of floats
:param re: Equatorial radius of the reference spheroid.
:type re: float
:param f: Flattening coefficient.
:type f: float
:return:
        Geodetic longitude (radians),
        Geodetic latitude (radians),
        Altitude above reference spheroid
:rtype: tuple