def georec(lon, lat, alt, re, f):
    """
    Convert geodetic coordinates to rectangular coordinates.

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

    :param lon: Geodetic longitude of point (radians).
    :type lon: float
    :param lat: Geodetic latitude  of point (radians).
    :type lat: float
    :param alt: Altitude of point above the 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 point.
    :rtype: 3-Element Array of floats
    """
    lon = ctypes.c_double(lon)
    lat = ctypes.c_double(lat)
    alt = ctypes.c_double(alt)
    re = ctypes.c_double(re)
    f = ctypes.c_double(f)
    rectan = stypes.emptyDoubleVector(3)
    libspice.georec_c(lon, lat, alt, re, f, rectan)
    return stypes.cVectorToPython(rectan)
Convert geodetic coordinates to rectangular coordinates.

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

    :param lon: Geodetic longitude of point (radians).
    :type lon: float
    :param lat: Geodetic latitude  of point (radians).
    :type lat: float
    :param alt: Altitude of point above the 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 point.
    :rtype: 3-Element Array of floats