def ckgp(inst, sclkdp, tol, ref):
    """
    Get pointing (attitude) for a specified spacecraft clock time.

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

    :param inst: NAIF ID of instrument, spacecraft, or structure.
    :type inst: int
    :param sclkdp: Encoded spacecraft clock time.
    :type sclkdp: float
    :param tol: Time tolerance.
    :type tol: float
    :param ref: Reference frame.
    :type ref: str
    :return:
            C-matrix pointing data,
            Output encoded spacecraft clock time
    :rtype: tuple
    """
    inst = ctypes.c_int(inst)
    sclkdp = ctypes.c_double(sclkdp)
    tol = ctypes.c_double(tol)
    ref = stypes.stringToCharP(ref)
    cmat = stypes.emptyDoubleMatrix()
    clkout = ctypes.c_double()
    found = ctypes.c_int()
    libspice.ckgp_c(inst, sclkdp, tol, ref, cmat, ctypes.byref(clkout),
                    ctypes.byref(found))
    return stypes.cMatrixToNumpy(cmat), clkout.value, bool(found.value)
Get pointing (attitude) for a specified spacecraft clock time.

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

    :param inst: NAIF ID of instrument, spacecraft, or structure.
    :type inst: int
    :param sclkdp: Encoded spacecraft clock time.
    :type sclkdp: float
    :param tol: Time tolerance.
    :type tol: float
    :param ref: Reference frame.
    :type ref: str
    :return:
            C-matrix pointing data,
            Output encoded spacecraft clock time
    :rtype: tuple