code: def recrad(rectan):
      
      rectan = stypes.toDoubleVector(rectan)
      outrange = ctypes.c_double()
      ra = ctypes.c_double()
      dec = ctypes.c_double()
      libspice.recrad_c(rectan, ctypes.byref(outrange), ctypes.byref(ra),
                        ctypes.byref(dec))
      return outrange.value, ra.value, dec.value
docs: Convert rectangular coordinates to range, right ascension, and declination.
  
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html
  
      :param rectan: Rectangular coordinates of a point.
      :type rectan: 3-Element Array of floats
      :return:
              Distance of the point from the origin,
              Right ascension in radians,
              Declination in radians
      :rtype: tuple