@spiceErrorCheck<EOL>def recpgr(body, rectan, re, f):
body = stypes.stringToCharP(body)<EOL>rectan = stypes.toDoubleVector(rectan)<EOL>re = ctypes.c_double(re)<EOL>f = ctypes.c_double(f)<EOL>lon = ctypes.c_double()<EOL>lat = ctypes.c_double()<EOL>alt = ctypes.c_double()<EOL>libspice.recpgr_c(body, rectan, re, f, ctypes.byref(lon), ctypes.byref(lat),<EOL>ctypes.byref(alt))<EOL>return lon.value, lat.value, alt.value<EOL>
Convert rectangular coordinates to planetographic coordinates.

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

:param body: Body with which coordinate system is associated.
:type body: str
: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:
        Planetographic longitude (radians),
        Planetographic latitude (radians),
        Altitude above reference spheroid
:rtype: tuple