@spiceErrorCheck<EOL>def pgrrec(body, lon, lat, alt, re, f):
body = stypes.stringToCharP(body)<EOL>lon = ctypes.c_double(lon)<EOL>lat = ctypes.c_double(lat)<EOL>alt = ctypes.c_double(alt)<EOL>re = ctypes.c_double(re)<EOL>f = ctypes.c_double(f)<EOL>rectan = stypes.emptyDoubleVector(<NUM_LIT:3>)<EOL>libspice.pgrrec_c(body, lon, lat, alt, re, f, rectan)<EOL>return stypes.cVectorToPython(rectan)<EOL>
Convert planetographic coordinates to rectangular coordinates.

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

:param body: Body with which coordinate system is associated.
:type body: str
:param lon: Planetographic longitude of a point (radians).
:type lon: float
:param lat: Planetographic latitude of a point (radians).
:type lat: float
:param alt: Altitude of a point above reference spheroid.
:type alt: float
:param re: Equatorial radius of the reference spheroid.
:type re: float
:param f: Flattening coefficient.
:type f: float
:return: Rectangular coordinates of the point.
:rtype: 3-Element Array of floats