code: def ekgd(selidx, row, element):
      
      selidx = ctypes.c_int(selidx)
      row = ctypes.c_int(row)
      element = ctypes.c_int(element)
      ddata = ctypes.c_double()
      null = ctypes.c_int()
      found = ctypes.c_int()
      libspice.ekgd_c(selidx, row, element, ctypes.byref(ddata),
                      ctypes.byref(null), ctypes.byref(found))
      return ddata.value, null.value, bool(found.value)
docs: Return an element of an entry in a column of double precision type in a
      specified row.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgd_c.html
  
      :param selidx: Index of parent column in SELECT clause.
      :type selidx: int
      :param row: Row to fetch from.
      :type row: int
      :param element: Index of element, within column entry, to fetch.
      :type element: int
      :return:
              Double precision element of column entry,
              Flag indicating whether column entry was null.
      :rtype: tuple