Code
stringlengths
103
85.9k
Summary
listlengths
0
94
Please provide a description of the function:def ckw02(handle, begtim, endtim, inst, ref, segid, nrec, start, stop, quats, avvs, rates): handle = ctypes.c_int(handle) begtim = ctypes.c_double(begtim) endtim = ctypes.c_double(endtim) inst = ctypes.c_int(inst) ref = stypes.stringToCharP...
[ "\n Write a type 2 segment to a C-kernel.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw02_c.html\n\n :param handle: Handle of an open CK file.\n :type handle: int\n :param begtim: The beginning encoded SCLK of the segment.\n :type begtim: float\n :param endtim: The ending enco...
Please provide a description of the function:def ckw03(handle, begtim, endtim, inst, ref, avflag, segid, nrec, sclkdp, quats, avvs, nints, starts): handle = ctypes.c_int(handle) begtim = ctypes.c_double(begtim) endtim = ctypes.c_double(endtim) inst = ctypes.c_int(inst) ref = stypes.st...
[ "\n Add a type 3 segment to a C-kernel.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw03_c.html\n\n :param handle: Handle of an open CK file.\n :type handle: int\n :param begtim: The beginning encoded SCLK of the segment.\n :type begtim: float\n :param endtim: The ending encode...
Please provide a description of the function:def ckw05(handle, subtype, degree, begtim, endtim, inst, ref, avflag, segid, sclkdp, packts, rate, nints, starts): handle = ctypes.c_int(handle) subtype = ctypes.c_int(subtype) degree = ctypes.c_int(degree) begtim = ctypes.c_double(begtim) ...
[ "\n Write a type 5 segment to a CK file.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw05_c.html\n\n :param handle: Handle of an open CK file.\n :type handle: int\n :param subtype: CK type 5 subtype code. Can be: 0, 1, 2, 3 see naif docs via link above.\n :type subtype: int\n ...
Please provide a description of the function:def cltext(fname): fnameP = stypes.stringToCharP(fname) fname_len = ctypes.c_int(len(fname)) libspice.cltext_(fnameP, fname_len)
[ "\n Internal undocumented command for closing a text file opened by RDTEXT.\n\n No URL available; relevant lines from SPICE source:\n\n FORTRAN SPICE, rdtext.f::\n\n C$Procedure CLTEXT ( Close a text file opened by RDTEXT)\n ENTRY CLTEXT ( FILE )\n CHARACTER*(*) FIL...
Please provide a description of the function:def cmprss(delim, n, instr, lenout=_default_len_out): delim = ctypes.c_char(delim.encode(encoding='UTF-8')) n = ctypes.c_int(n) instr = stypes.stringToCharP(instr) output = stypes.stringToCharP(lenout) libspice.cmprss_c(delim, n, instr, lenout, outpu...
[ "\n Compress a character string by removing occurrences of\n more than N consecutive occurrences of a specified\n character.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cmprss_c.html\n\n :param delim: Delimiter to be compressed.\n :type delim: str\n :param n: Maximum consecutive...
Please provide a description of the function:def cnmfrm(cname, lenout=_default_len_out): lenout = ctypes.c_int(lenout) frname = stypes.stringToCharP(lenout) cname = stypes.stringToCharP(cname) found = ctypes.c_int() frcode = ctypes.c_int() libspice.cnmfrm_c(cname, lenout, ctypes.byref(frcod...
[ "\n Retrieve frame ID code and name to associate with an object.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cnmfrm_c.html\n\n :param cname: Name of the object to find a frame for.\n :type cname: int\n :param lenout: Maximum length available for frame name.\n :type lenout: int\n ...
Please provide a description of the function:def conics(elts, et): elts = stypes.toDoubleVector(elts) et = ctypes.c_double(et) state = stypes.emptyDoubleVector(6) libspice.conics_c(elts, et, state) return stypes.cVectorToPython(state)
[ "\n Determine the state (position, velocity) of an orbiting body\n from a set of elliptic, hyperbolic, or parabolic orbital\n elements.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/conics_c.html\n\n :param elts: Conic elements.\n :type elts: 8-Element Array of floats\n :param et:...
Please provide a description of the function:def convrt(x, inunit, outunit): inunit = stypes.stringToCharP(inunit) outunit = stypes.stringToCharP(outunit) y = ctypes.c_double() if hasattr(x, "__iter__"): outArray=[] for n in x: libspice.convrt_c(n,inunit,outunit,ctypes...
[ "\n Take a measurement X, the units associated with\n X, and units to which X should be converted; return Y\n the value of the measurement in the output units.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/convrt_c.html\n\n :param x: Number representing a measurement in some units.\n ...
Please provide a description of the function:def copy(cell): assert isinstance(cell, stypes.SpiceCell) # Next line was redundant with [raise NotImpImplementedError] below # assert cell.dtype == 0 or cell.dtype == 1 or cell.dtype == 2 if cell.dtype is 0: newcopy = stypes.SPICECHAR_CELL(cell....
[ "\n Copy the contents of a SpiceCell of any data type to another\n cell of the same type.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/copy_c.html\n\n :param cell: Cell to be copied.\n :type cell: spiceypy.utils.support_types.SpiceCell\n :return: New cell\n :rtype: spiceypy.utils...
Please provide a description of the function:def cpos(string, chars, start): string = stypes.stringToCharP(string) chars = stypes.stringToCharP(chars) start = ctypes.c_int(start) return libspice.cpos_c(string, chars, start)
[ "\n Find the first occurrence in a string of a character belonging\n to a collection of characters, starting at a specified location,\n searching forward.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cpos_c.html\n\n :param string: Any character string.\n :type string: str\n :para...
Please provide a description of the function:def cposr(string, chars, start): string = stypes.stringToCharP(string) chars = stypes.stringToCharP(chars) start = ctypes.c_int(start) return libspice.cposr_c(string, chars, start)
[ "\n Find the first occurrence in a string of a character belonging\n to a collection of characters, starting at a specified location,\n searching in reverse.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cposr_c.html\n\n :param string: Any character string.\n :type string: str\n :...
Please provide a description of the function:def cvpool(agent): agent = stypes.stringToCharP(agent) update = ctypes.c_int() libspice.cvpool_c(agent, ctypes.byref(update)) return bool(update.value)
[ "\n Indicate whether or not any watched kernel variables that have a\n specified agent on their notification list have been updated.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cvpool_c.html\n\n :param agent: Name of the agent to check for notices.\n :type agent: str\n :return: Tru...
Please provide a description of the function:def cyllat(r, lonc, z): r = ctypes.c_double(r) lonc = ctypes.c_double(lonc) z = ctypes.c_double(z) radius = ctypes.c_double() lon = ctypes.c_double() lat = ctypes.c_double() libspice.cyllat_c(r, lonc, z, ctypes.byref(radius), ctypes.byref(lon...
[ "\n Convert from cylindrical to latitudinal coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cyllat_c.html\n\n :param r: Distance of point from z axis.\n :type r: float\n :param lonc: Cylindrical angle of point from XZ plane(radians).\n :type lonc: float\n :param z: Heig...
Please provide a description of the function:def cylrec(r, lon, z): r = ctypes.c_double(r) lon = ctypes.c_double(lon) z = ctypes.c_double(z) rectan = stypes.emptyDoubleVector(3) libspice.cylrec_c(r, lon, z, rectan) return stypes.cVectorToPython(rectan)
[ "\n Convert from cylindrical to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cylrec_c.html\n\n :param r: Distance of a point from z axis.\n :type r: float\n :param lon: Angle (radians) of a point from xZ plane.\n :type lon: float\n :param z: Height of a p...
Please provide a description of the function:def cylsph(r, lonc, z): r = ctypes.c_double(r) lonc = ctypes.c_double(lonc) z = ctypes.c_double(z) radius = ctypes.c_double() colat = ctypes.c_double() lon = ctypes.c_double() libspice.cyllat_c(r, lonc, z, ctypes.byref(radius), ctypes.byref(c...
[ "\n Convert from cylindrical to spherical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cylsph_c.html\n\n :param r: Rectangular coordinates of the point.\n :type r: float\n :param lonc: Angle (radians) of point from XZ plane.\n :type lonc: float\n :param z: Height of ...
Please provide a description of the function:def dafac(handle, buffer): handle = ctypes.c_int(handle) lenvals = ctypes.c_int(len(max(buffer, key=len)) + 1) n = ctypes.c_int(len(buffer)) buffer = stypes.listToCharArrayPtr(buffer) libspice.dafac_c(handle, n, lenvals, buffer)
[ "\n Add comments from a buffer of character strings to the comment\n area of a binary DAF file, appending them to any comments which\n are already present in the file's comment area.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafac_c.html\n\n :param handle: handle of a DAF opened wit...
Please provide a description of the function:def dafec(handle, bufsiz, lenout=_default_len_out): handle = ctypes.c_int(handle) buffer = stypes.emptyCharArray(yLen=bufsiz, xLen=lenout) bufsiz = ctypes.c_int(bufsiz) lenout = ctypes.c_int(lenout) n = ctypes.c_int() done = ctypes.c_int() li...
[ "\n Extract comments from the comment area of a binary DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafec_c.html\n\n :param handle: Handle of binary DAF opened with read access.\n :type handle: int\n :param bufsiz: Maximum size, in lines, of buffer.\n :type bufsiz: int\n :pa...
Please provide a description of the function:def daffna(): found = ctypes.c_int() libspice.daffna_c(ctypes.byref(found)) return bool(found.value)
[ "\n Find the next (forward) array in the current DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daffna_c.html\n\n :return: True if an array was found.\n :rtype: bool\n " ]
Please provide a description of the function:def daffpa(): found = ctypes.c_int() libspice.daffpa_c(ctypes.byref(found)) return bool(found.value)
[ "\n Find the previous (backward) array in the current DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daffpa_c.html\n\n :return: True if an array was found.\n :rtype: bool\n " ]
Please provide a description of the function:def dafgda(handle, begin, end): handle = ctypes.c_int(handle) data = stypes.emptyDoubleVector(abs(end - begin)) begin = ctypes.c_int(begin) end = ctypes.c_int(end) libspice.dafgda_c(handle, begin, end, data) return stypes.cVectorToPython(data)
[ "\n Read the double precision data bounded by two addresses within a DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgda_c.html\n\n :param handle: Handle of a DAF.\n :type handle: int\n :param begin: Initial address within file.\n :type begin: int\n :param end: Final address...
Please provide a description of the function:def dafgh(): outvalue = ctypes.c_int() libspice.dafgh_c(ctypes.byref(outvalue)) return outvalue.value
[ "\n Return (get) the handle of the DAF currently being searched.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgh_c.html\n\n :return: Handle for current DAF.\n :rtype: int\n " ]
Please provide a description of the function:def dafgn(lenout=_default_len_out): lenout = ctypes.c_int(lenout) name = stypes.stringToCharP(lenout) libspice.dafgn_c(lenout, name) return stypes.toPythonString(name)
[ "\n Return (get) the name for the current array in the current DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgn_c.html\n\n :param lenout: Length of array name string.\n :type lenout: int\n :return: Name of current array.\n :rtype: str\n " ]
Please provide a description of the function:def dafgs(n=125): # The 125 may be a hard set, # I got strange errors that occasionally happened without it retarray = stypes.emptyDoubleVector(125) # libspice.dafgs_c(ctypes.cast(retarray, ctypes.POINTER(ctypes.c_double))) libspice.dafgs_c(retarray)...
[ "\n Return (get) the summary for the current array in the current DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgs_c.html\n\n :param n: Optional length N for result Array.\n :return: Summary for current array.\n :rtype: Array of floats\n " ]
Please provide a description of the function:def dafgsr(handle, recno, begin, end): handle = ctypes.c_int(handle) recno = ctypes.c_int(recno) begin = ctypes.c_int(begin) end = ctypes.c_int(end) # dafgsr_c will retrieve no more than 128 words data = stypes.emptyDoubleVector(1 + min([128,end....
[ "\n Read a portion of the contents of (words in) a summary record in a DAF file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgsr_c.html\n\n :param handle: Handle of DAF.\n :type handle: int\n :param recno: Record number; word indices are 1-based, 1 to 128 inclusive.\n :type recn...
Please provide a description of the function:def dafopr(fname): fname = stypes.stringToCharP(fname) handle = ctypes.c_int() libspice.dafopr_c(fname, ctypes.byref(handle)) return handle.value
[ "\n Open a DAF for subsequent read requests.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafopr_c.html\n\n :param fname: Name of DAF to be opened.\n :type fname: str\n :return: Handle assigned to DAF.\n :rtype: int\n " ]
Please provide a description of the function:def dafopw(fname): fname = stypes.stringToCharP(fname) handle = ctypes.c_int() libspice.dafopw_c(fname, ctypes.byref(handle)) return handle.value
[ "\n Open a DAF for subsequent write requests.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafopw_c.html\n\n :param fname: Name of DAF to be opened.\n :type fname: str\n :return: Handle assigned to DAF.\n :rtype: int\n " ]
Please provide a description of the function:def dafps(nd, ni, dc, ic): dc = stypes.toDoubleVector(dc) ic = stypes.toIntVector(ic) outsum = stypes.emptyDoubleVector(nd + ni) nd = ctypes.c_int(nd) ni = ctypes.c_int(ni) libspice.dafps_c(nd, ni, dc, ic, outsum) return stypes.cVectorToPytho...
[ "\n Pack (assemble) an array summary from its double precision and\n integer components.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafps_c.html\n\n :param nd: Number of double precision components.\n :type nd: int\n :param ni: Number of integer components.\n :type ni: int\n ...
Please provide a description of the function:def dafrda(handle, begin, end): handle = ctypes.c_int(handle) begin = ctypes.c_int(begin) end = ctypes.c_int(end) data = stypes.emptyDoubleVector(1 + end.value - begin.value) libspice.dafrda_c(handle, begin, end, data) return stypes.cVectorToPyth...
[ "\n Read the double precision data bounded by two addresses within a DAF.\n\n Deprecated: This routine has been superseded by :func:`dafgda` and\n :func:`dafgsr`. This routine is supported for purposes of backward\n compatibility only.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafr...
Please provide a description of the function:def dafrfr(handle, lenout=_default_len_out): handle = ctypes.c_int(handle) lenout = ctypes.c_int(lenout) nd = ctypes.c_int() ni = ctypes.c_int() ifname = stypes.stringToCharP(lenout) fward = ctypes.c_int() bward = ctypes.c_int() free = ct...
[ "\n Read the contents of the file record of a DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafrfr_c.html\n\n\n :param handle: Handle of an open DAF file.\n :type handle: int\n :param lenout: Available room in the output string\n :type lenout: int\n :return:\n Numb...
Please provide a description of the function:def dafrs(insum): insum = stypes.toDoubleVector(insum) libspice.dafrs_c(ctypes.byref(insum))
[ "\n Change the summary for the current array in the current DAF.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafrs_c.html\n\n :param insum: New summary for current array.\n :type insum: Array of floats\n " ]
Please provide a description of the function:def dafus(insum, nd, ni): insum = stypes.toDoubleVector(insum) dc = stypes.emptyDoubleVector(nd) ic = stypes.emptyIntVector(ni) nd = ctypes.c_int(nd) ni = ctypes.c_int(ni) libspice.dafus_c(insum, nd, ni, dc, ic) return stypes.cVectorToPython(...
[ "\n Unpack an array summary into its double precision and integer components.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafus_c.html\n\n :param insum: Array summary.\n :type insum: Array of floats\n :param nd: Number of double precision components.\n :type nd: int\n :param ni:...
Please provide a description of the function:def dasac(handle, buffer): handle = ctypes.c_int(handle) n = ctypes.c_int(len(buffer)) buflen = ctypes.c_int(max(len(s) for s in buffer) + 1) buffer = stypes.listToCharArrayPtr(buffer) libspice.dasac_c(handle, n, buflen, buffer)
[ "\n Add comments from a buffer of character strings to the comment\n area of a binary DAS file, appending them to any comments which\n are already present in the file's comment area.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasac_c.html\n\n :param handle: DAS handle of a file opene...
Please provide a description of the function:def dasec(handle, bufsiz=_default_len_out, buflen=_default_len_out): handle = ctypes.c_int(handle) buffer = stypes.emptyCharArray(buflen, bufsiz) bufsiz = ctypes.c_int(bufsiz) buflen = ctypes.c_int(buflen) n = ctypes.c_int(0) done = ctypes.c_int(...
[ "\n Extract comments from the comment area of a binary DAS file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasec_c.html\n\n :param handle: Handle of binary DAS file open with read access.\n :type handle: int\n :param bufsiz: Maximum size, in lines, of buffer.\n :type bufsiz: int\...
Please provide a description of the function:def dashfn(handle, lenout=_default_len_out): handle = ctypes.c_int(handle) namlen = ctypes.c_int(lenout) fname = stypes.stringToCharP(lenout) libspice.dashfn_c(handle, namlen, fname) return stypes.toPythonString(fname)
[ "\n Return the name of the DAS file associated with a handle.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dashfn_c.html\n\n :param handle: Handle of a DAS file.\n :type handle: int\n :param lenout: Length of output file name string.\n :type lenout: int\n :return: Correspond...
Please provide a description of the function:def dasonw(fname, ftype, ifname, ncomch): fnamelen = ctypes.c_int(len(fname)) ftypelen = ctypes.c_int(len(ftype)) ifnamelen = ctypes.c_int(len(ifname)) ncomch = ctypes.c_int(ncomch) handle = ctypes.c_int() fname = stypes.stringToCharP(fname) ...
[ "\n Internal undocumented command for creating a new DAS file\n \n :param fname: filename\n :type fname: str\n :param ftype: type\n :type ftype: str\n :param ifname: internal file name\n :type ifname: str\n :param ncomch: amount of comment area\n :type ncomch: int\n :return: Handle ...
Please provide a description of the function:def dasopr(fname): fname = stypes.stringToCharP(fname) handle = ctypes.c_int() libspice.dasopr_c(fname, ctypes.byref(handle)) return handle.value
[ "\n Open a DAS file for reading.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasopr_c.html\n\n :param fname: Name of a DAS file to be opened.\n :type fname: str\n :return: Handle assigned to the opened DAS file.\n :rtype: int\n " ]
Please provide a description of the function:def dasopw(fname): fname = stypes.stringToCharP(fname) handle = ctypes.c_int(0) libspice.dasopw_c(fname, ctypes.byref(handle)) return handle.value
[ "\n Open a DAS file for writing.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasopw_c.html\n :param fname: Name of a DAS file to be opened. \n :type fname: str\n :return: Handle assigned to the opened DAS file.\n " ]
Please provide a description of the function:def dasrfr(handle, lenout=_default_len_out): handle = ctypes.c_int(handle) idwlen = ctypes.c_int(lenout) # intentional ifnlen = ctypes.c_int(lenout) # intentional idword = stypes.stringToCharP(lenout) ifname = stypes.stringToCharP(lenout) nresvr ...
[ "\n Return the contents of the file record of a specified DAS file. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasrfr_c.html\n\n :param handle: DAS file handle.\n :type handle: int\n :param lenout: length of output strs\n :type lenout: str\n :return: ID word, DAS internal...
Please provide a description of the function:def dcyldr(x, y, z): x = ctypes.c_double(x) y = ctypes.c_double(y) z = ctypes.c_double(z) jacobi = stypes.emptyDoubleMatrix() libspice.dcyldr_c(x, y, z, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n This routine computes the Jacobian of the transformation from\n rectangular to cylindrical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dcyldr_c.html\n\n :param x: X-coordinate of point.\n :type x: float\n :param y: Y-coordinate of point.\n :type y: float\n :p...
Please provide a description of the function:def deltet(epoch, eptype): epoch = ctypes.c_double(epoch) eptype = stypes.stringToCharP(eptype) delta = ctypes.c_double() libspice.deltet_c(epoch, eptype, ctypes.byref(delta)) return delta.value
[ "\n Return the value of Delta ET (ET-UTC) for an input epoch.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/deltet_c.html\n\n :param epoch: Input epoch (seconds past J2000).\n :type epoch: float\n :param eptype: Type of input epoch (\"UTC\" or \"ET\").\n :type eptype: str\n :retur...
Please provide a description of the function:def dgeodr(x, y, z, re, f): x = ctypes.c_double(x) y = ctypes.c_double(y) z = ctypes.c_double(z) re = ctypes.c_double(re) f = ctypes.c_double(f) jacobi = stypes.emptyDoubleMatrix() libspice.dgeodr_c(x, y, z, re, f, jacobi) return stypes.c...
[ "\n This routine computes the Jacobian of the transformation from\n rectangular to geodetic coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dgeodr_c.html\n\n :param x: X-coordinate of point.\n :type x: float\n :param y: Y-coordinate of point.\n :type y: float\n :para...
Please provide a description of the function:def diags2(symmat): symmat = stypes.toDoubleMatrix(symmat) diag = stypes.emptyDoubleMatrix(x=2, y=2) rotateout = stypes.emptyDoubleMatrix(x=2, y=2) libspice.diags2_c(symmat, diag, rotateout) return stypes.cMatrixToNumpy(diag), stypes.cMatrixToNumpy(r...
[ "\n Diagonalize a symmetric 2x2 matrix.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/diags2_c.html\n\n :param symmat: A symmetric 2x2 matrix.\n :type symmat: 2x2-Element Array of floats\n :return:\n A diagonal matrix similar to symmat,\n A rotation used as the sim...
Please provide a description of the function:def dlabbs(handle): handle = ctypes.c_int(handle) descr = stypes.SpiceDLADescr() found = ctypes.c_int() libspice.dlabbs_c(handle, ctypes.byref(descr), ctypes.byref(found)) return descr, bool(found.value)
[ "\n Begin a backward segment search in a DLA file.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlabbs_c.html\n \n :param handle: Handle of open DLA file.\n :type handle: int\n :return: Descriptor of last segment in DLA file\n :rtype: spiceypy.utils.support_types.SpiceDLADes...
Please provide a description of the function:def dlabfs(handle): handle = ctypes.c_int(handle) descr = stypes.SpiceDLADescr() found = ctypes.c_int() libspice.dlabfs_c(handle, ctypes.byref(descr), ctypes.byref(found)) return descr, bool(found.value)
[ "\n Begin a forward segment search in a DLA file.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlabfs_c.html\n \n :param handle: Handle of open DLA file.\n :type handle: int\n :return: Descriptor of next segment in DLA file\n :rtype: spiceypy.utils.support_types.SpiceDLADesc...
Please provide a description of the function:def dlafns(handle, descr): assert isinstance(descr, stypes.SpiceDLADescr) handle = ctypes.c_int(handle) nxtdsc = stypes.SpiceDLADescr() found = ctypes.c_int() libspice.dlafns_c(handle, ctypes.byref(descr), ctypes.byref(nxtdsc), ctypes.byref(found)) ...
[ "\n Find the segment following a specified segment in a DLA file. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlafns_c.html\n \n :param handle: Handle of open DLA file.\n :type handle: c_int\n :param descr: Descriptor of a DLA segment.\n :type descr: spiceypy.utils.support...
Please provide a description of the function:def dlafps(handle, descr): assert isinstance(descr, stypes.SpiceDLADescr) handle = ctypes.c_int(handle) prvdsc = stypes.SpiceDLADescr() found = ctypes.c_int() libspice.dlafps_c(handle, ctypes.byref(descr), ctypes.byref(prvdsc), ...
[ "\n Find the segment preceding a specified segment in a DLA file.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlafps_c.html\n \n :param handle: Handle of open DLA file.\n :type handle: c_int\n :param descr: Descriptor of a segment in DLA file. \n :type descr: spiceypy.utils...
Please provide a description of the function:def dlatdr(x, y, z): x = ctypes.c_double(x) y = ctypes.c_double(y) z = ctypes.c_double(z) jacobi = stypes.emptyDoubleMatrix() libspice.dlatdr_c(x, y, z, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n This routine computes the Jacobian of the transformation from\n rectangular to latitudinal coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlatdr_c.html\n\n :param x: X-coordinate of point.\n :type x: float\n :param y: Y-coordinate of point.\n :type y: float\n :p...
Please provide a description of the function:def dp2hx(number, lenout=_default_len_out): number = ctypes.c_double(number) lenout = ctypes.c_int(lenout) string = stypes.stringToCharP(lenout) length = ctypes.c_int() libspice.dp2hx_c(number, lenout, string, ctypes.byref(length)) return stypes....
[ "\n Convert a double precision number to an equivalent character\n string using base 16 \"scientific notation.\"\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dp2hx_c.html\n\n :param number: D.p. number to be converted.\n :type number: float\n :param lenout: Available space for outpu...
Please provide a description of the function:def dpgrdr(body, x, y, z, re, f): body = stypes.stringToCharP(body) x = ctypes.c_double(x) y = ctypes.c_double(y) z = ctypes.c_double(z) re = ctypes.c_double(re) f = ctypes.c_double(f) jacobi = stypes.emptyDoubleMatrix() libspice.dpgrdr_c...
[ "\n This routine computes the Jacobian matrix of the transformation\n from rectangular to planetographic coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dpgrdr_c.html\n\n :param body: Body with which coordinate system is associated.\n :type body: str\n :param x: X-coordina...
Please provide a description of the function:def drdcyl(r, lon, z): r = ctypes.c_double(r) lon = ctypes.c_double(lon) z = ctypes.c_double(z) jacobi = stypes.emptyDoubleMatrix() libspice.drdcyl_c(r, lon, z, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n This routine computes the Jacobian of the transformation from\n cylindrical to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdcyl_c.html\n\n :param r: Distance of a point from the origin.\n :type r: float\n :param lon: Angle of the point from the xz pla...
Please provide a description of the function:def drdgeo(lon, lat, alt, re, f): 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) jacobi = stypes.emptyDoubleMatrix() libspice.drdgeo_c(lon, lat, alt, re, f, jac...
[ "\n This routine computes the Jacobian of the transformation from\n geodetic to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdgeo_c.html\n\n :param lon: Geodetic longitude of point (radians).\n :type lon: float\n :param lat: Geodetic latitude of point (rad...
Please provide a description of the function:def drdlat(r, lon, lat): r = ctypes.c_double(r) lon = ctypes.c_double(lon) lat = ctypes.c_double(lat) jacobi = stypes.emptyDoubleMatrix() libspice.drdlat_c(r, lon, lat, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n Compute the Jacobian of the transformation from latitudinal to\n rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdlat_c.html\n\n :param r: Distance of a point from the origin.\n :type r: float\n :param lon: Angle of the point from the XZ plane in radians....
Please provide a description of the function:def drdpgr(body, lon, lat, alt, re, f): body = stypes.stringToCharP(body) 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) jacobi = stypes.emptyDoubleMatrix() ...
[ "\n This routine computes the Jacobian matrix of the transformation\n from planetographic to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdpgr_c.html\n\n :param body: Body with which coordinate system is associated.\n :type body: str\n :param lon: Planetog...
Please provide a description of the function:def drdsph(r, colat, lon): r = ctypes.c_double(r) colat = ctypes.c_double(colat) lon = ctypes.c_double(lon) jacobi = stypes.emptyDoubleMatrix() libspice.drdsph_c(r, colat, lon, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n This routine computes the Jacobian of the transformation from\n spherical to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdsph_c.html\n\n :param r: Distance of a point from the origin.\n :type r: float\n :param colat: Angle of the point from the positi...
Please provide a description of the function:def dskb02(handle, dladsc): handle = ctypes.c_int(handle) nv = ctypes.c_int(0) np = ctypes.c_int(0) nvxtot = ctypes.c_int(0) vtxbds = stypes.emptyDoubleMatrix(3, 2) voxsiz = ctypes.c_double(0.0) voxori = stypes.emptyDoubleVector(3) vgrex...
[ "\n Return bookkeeping data from a DSK type 2 segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskb02_c.html\n\n :param handle: DSK file handle\n :type handle: int\n :param dladsc: DLA descriptor\n :type dladsc: spiceypy.utils.support_types.SpiceDLADescr\n :return: bookkeepi...
Please provide a description of the function:def dskcls(handle, optmiz=False): handle = ctypes.c_int(handle) optmiz = ctypes.c_int(optmiz) libspice.dskcls_c(handle, optmiz)
[ "\n Close a DSK file. \n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskcls_c.html\n \n :param handle: Handle assigned to the opened DSK file.\n :type handle: int\n :param optmiz: Flag indicating whether to segregate the DSK.\n :type optmiz: bool\n :return: \n " ]
Please provide a description of the function:def dskd02(handle,dladsc,item,start,room): handle = ctypes.c_int(handle) item = ctypes.c_int(item) start = ctypes.c_int(start) room = ctypes.c_int(room) n = ctypes.c_int(0) values = stypes.emptyDoubleVector(room) libspice.dskd02_c(...
[ "\n Fetch double precision data from a type 2 DSK segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskd02_c.html\n\n :param handle: DSK file handle\n :type handle: int\n :param dladsc: DLA descriptor\n :type dladsc: spiceypy.utils.support_types.SpiceDLADescr\n :param item: K...
Please provide a description of the function:def dskgd(handle, dladsc): handle = ctypes.c_int(handle) dskdsc = stypes.SpiceDSKDescr() libspice.dskgd_c(handle, ctypes.byref(dladsc), ctypes.byref(dskdsc)) return dskdsc
[ "\n Return the DSK descriptor from a DSK segment identified\n by a DAS handle and DLA descriptor.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskgd_c.html\n\n :param handle: Handle assigned to the opened DSK file.\n :type handle: int\n :param dladsc: DLA segment descriptor.\n :...
Please provide a description of the function:def dskgtl(keywrd): keywrd = ctypes.c_int(keywrd) dpval = ctypes.c_double(0) libspice.dskgtl_c(keywrd, ctypes.byref(dpval)) return dpval.value
[ "\n Retrieve the value of a specified DSK tolerance or margin parameter.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskgtl_c.html\n \n :param keywrd: Code specifying parameter to retrieve. \n :type keywrd: int\n :return: Value of parameter.\n :rtype: float\n " ]
Please provide a description of the function:def dski02(handle, dladsc, item, start, room): handle = ctypes.c_int(handle) item = ctypes.c_int(item) start = ctypes.c_int(start) room = ctypes.c_int(room) n = ctypes.c_int() values = stypes.emptyIntVector(room) libspice.dski02_c(handle, dla...
[ "\n Fetch integer data from a type 2 DSK segment.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dski02_c.html\n\n :param handle: DSK file handle.\n :type handle: int\n :param dladsc: DLA descriptor.\n :type dladsc: spiceypy.utils.support_types.SpiceDLADescr\n :param item: Keyword...
Please provide a description of the function:def dskmi2(vrtces, plates, finscl, corscl, worksz, voxpsz, voxlsz, makvtl, spxisz): nv = ctypes.c_int(len(vrtces)) vrtces = stypes.toDoubleMatrix(vrtces) np = ctypes.c_int(len(plates)) plates = stypes.toIntMatrix(plates) finscl = ctypes.c_dou...
[ "\n Make spatial index for a DSK type 2 segment. The index is returned\n as a pair of arrays, one of type int and one of type\n float. These arrays are suitable for use with the DSK type 2\n writer dskw02.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskmi2_c.html\n\n :param vrtces:...
Please provide a description of the function:def dskn02(handle, dladsc, plid): handle = ctypes.c_int(handle) plid = ctypes.c_int(plid) normal = stypes.emptyDoubleVector(3) libspice.dskn02_c(handle, dladsc, plid, normal) return stypes.cVectorToPython(normal)
[ "\n Compute the unit normal vector for a specified plate from a type\n 2 DSK segment.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskn02_c.html\n\n :param handle: DSK file handle.\n :type handle: int\n :param dladsc: DLA descriptor.\n :type dladsc: spiceypy.utils.support_types....
Please provide a description of the function:def dskobj(dsk): dsk = stypes.stringToCharP(dsk) bodids = stypes.SPICEINT_CELL(10000) libspice.dskobj_c(dsk, ctypes.byref(bodids)) return bodids
[ "\n Find the set of body ID codes of all objects for which \n topographic data are provided in a specified DSK file. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskobj_c.html\n \n :param dsk: Name of DSK file. \n :type dsk: str\n :return: Set of ID codes of objects in DSK ...
Please provide a description of the function:def dskopn(fname, ifname, ncomch): fname = stypes.stringToCharP(fname) ifname = stypes.stringToCharP(ifname) ncomch = ctypes.c_int(ncomch) handle = ctypes.c_int() libspice.dskopn_c(fname, ifname, ncomch, ctypes.byref(handle)) return handle.value
[ "\n Open a new DSK file for subsequent write operations. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskopn_c.html\n \n :param fname: Name of a DSK file to be opened. \n :type fname: str\n :param ifname: Internal file name.\n :type ifname: str\n :param ncomch: Number of...
Please provide a description of the function:def dskp02(handle, dladsc, start, room): handle = ctypes.c_int(handle) start = ctypes.c_int(start) room = ctypes.c_int(room) n = ctypes.c_int(0) plates = stypes.emptyIntMatrix(3, room) libspice.dskp02_c(handle, dladsc, start, room, ctypes...
[ "\n Fetch triangular plates from a type 2 DSK segment.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskp02_c.html\n\n :param handle: DSK file handle.\n :type handle: int\n :param dladsc: DLA descriptor.\n :type dladsc: spiceypy.utils.support_types.SpiceDLADescr\n :param start: S...
Please provide a description of the function:def dskrb2(vrtces, plates, corsys, corpar): nv = ctypes.c_int(len(vrtces)) vrtces = stypes.toDoubleMatrix(vrtces) np = ctypes.c_int(len(plates)) plates = stypes.toIntMatrix(plates) corsys = ctypes.c_int(corsys) corpar = stypes.toDoubleVec...
[ "\n Determine range bounds for a set of triangular plates to\n be stored in a type 2 DSK segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskrb2_c.html\n\n :param vrtces: Vertices\n :type vrtces: NxM-Element Array of floats\n :param plates: Plates\n :type plates: NxM-Element...
Please provide a description of the function:def dsksrf(dsk, bodyid): dsk = stypes.stringToCharP(dsk) bodyid = ctypes.c_int(bodyid) srfids = stypes.SPICEINT_CELL(10000) libspice.dsksrf_c(dsk, bodyid, ctypes.byref(srfids)) return srfids
[ "\n Find the set of surface ID codes for all surfaces associated with \n a given body in a specified DSK file. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dsksrf_c.html\n \n :param dsk: Name of DSK file.\n :type dsk: str\n :param bodyid: Integer body ID code.\n :type bo...
Please provide a description of the function:def dskstl(keywrd, dpval): keywrd = ctypes.c_int(keywrd) dpval = ctypes.c_double(dpval) libspice.dskstl_c(keywrd, dpval)
[ "\n Set the value of a specified DSK tolerance or margin parameter.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskstl_c.html\n \n :param keywrd: Code specifying parameter to set.\n :type keywrd: int\n :param dpval: Value of parameter. \n :type dpval: float\n :return: \n...
Please provide a description of the function:def dskv02(handle, dladsc, start, room): handle = ctypes.c_int(handle) start = ctypes.c_int(start) room = ctypes.c_int(room) n = ctypes.c_int() vrtces = stypes.emptyDoubleMatrix(3, room) libspice.dskv02_c(handle, dladsc, start, room, ctyp...
[ "\n Fetch vertices from a type 2 DSK segment.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskv02_c.html\n\n :param handle: DSK file handle.\n :type handle: int\n :param dladsc: DLA descriptor.\n :type dladsc: spiceypy.utils.support_types.SpiceDLADescr\n :param start: Start inde...
Please provide a description of the function:def dskw02(handle, center, surfid, dclass, fname, corsys, corpar, mncor1, mxcor1, mncor2, mxcor2, mncor3, mxcor3, first, last, vrtces, plates, spaixd, spaixi): handle = ctypes.c_int(handle) center = ctypes.c_int(center) surfid = ctypes....
[ "\n Write a type 2 segment to a DSK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskw02_c.html\n\n :param handle: Handle assigned to the opened DSK file\n :type handle: int\n :param center: Central body ID code\n :type center: int\n :param surfid: Surface ID code\n :type...
Please provide a description of the function:def dskx02(handle, dladsc, vertex, raydir): handle = ctypes.c_int(handle) vertex = stypes.toDoubleVector(vertex) raydir = stypes.toDoubleVector(raydir) plid = ctypes.c_int() xpt = stypes.emptyDoubleVector(3) found = ctypes.c_int() libsp...
[ "\n Determine the plate ID and body-fixed coordinates of the\n intersection of a specified ray with the surface defined by a\n type 2 DSK plate model.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskx02_c.html\n\n :param handle: Handle of DSK kernel containing plate model.\n :type ...
Please provide a description of the function:def dskxsi(pri, target, srflst, et, fixref, vertex, raydir): pri = ctypes.c_int(pri) target = stypes.stringToCharP(target) nsurf = ctypes.c_int(len(srflst)) srflst = stypes.toIntVector(srflst) et = ctypes.c_double(et) fixref = stypes.stringToChar...
[ "\n Compute a ray-surface intercept using data provided by\n multiple loaded DSK segments. Return information about\n the source of the data defining the surface on which the\n intercept was found: DSK handle, DLA and DSK descriptors,\n and DSK data type-dependent parameters.\n\n https://naif.jpl....
Please provide a description of the function:def dskxv(pri, target, srflst, et, fixref, vtxarr, dirarr): pri = ctypes.c_int(pri) target = stypes.stringToCharP(target) nsurf = ctypes.c_int(len(srflst)) srflst = stypes.toIntVector(srflst) et = ctypes.c_double(et) fixref = stypes.strin...
[ "\n Compute ray-surface intercepts for a set of rays, using data\n provided by multiple loaded DSK segments.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskxv_c.html\n\n :param pri: Data prioritization flag.\n :type pri: bool\n :param target: Target body name.\n :type target: s...
Please provide a description of the function:def dskz02(handle, dladsc): handle = ctypes.c_int(handle) nv = ctypes.c_int() np = ctypes.c_int() libspice.dskz02_c(handle, dladsc, ctypes.byref(nv), ctypes.byref(np)) return nv.value, np.value
[ "\n Return plate model size parameters---plate count and\n vertex count---for a type 2 DSK segment.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskz02_c.html\n\n :param handle: DSK file handle.\n :type handle: int\n :param dladsc: DLA descriptor.\n :type dladsc: spiceypy.utils....
Please provide a description of the function:def dsphdr(x, y, z): x = ctypes.c_double(x) y = ctypes.c_double(y) z = ctypes.c_double(z) jacobi = stypes.emptyDoubleMatrix() libspice.dsphdr_c(x, y, z, jacobi) return stypes.cMatrixToNumpy(jacobi)
[ "\n This routine computes the Jacobian of the transformation from\n rectangular to spherical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dsphdr_c.html\n\n\n :param x: X-coordinate of point.\n :type x: float\n :param y: Y-coordinate of point.\n :type y: float\n :p...
Please provide a description of the function:def dtpool(name): name = stypes.stringToCharP(name) found = ctypes.c_int() n = ctypes.c_int() typeout = ctypes.c_char() libspice.dtpool_c(name, ctypes.byref(found), ctypes.byref(n), ctypes.byref(typeout)) return n.value, sty...
[ "\n Return the data about a kernel pool variable.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dtpool_c.html\n\n :param name: Name of the variable whose value is to be returned.\n :type name: str\n :return:\n Number of values returned for name,\n Type of the varia...
Please provide a description of the function:def ducrss(s1, s2): assert len(s1) is 6 and len(s2) is 6 s1 = stypes.toDoubleVector(s1) s2 = stypes.toDoubleVector(s2) sout = stypes.emptyDoubleVector(6) libspice.ducrss_c(s1, s2, sout) return stypes.cVectorToPython(sout)
[ "\n Compute the unit vector parallel to the cross product of\n two 3-dimensional vectors and the derivative of this unit vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ducrss_c.html\n\n :param s1: Left hand state for cross product and derivative.\n :type s1: 6-Element Array of fl...
Please provide a description of the function:def dvcrss(s1, s2): assert len(s1) is 6 and len(s2) is 6 s1 = stypes.toDoubleVector(s1) s2 = stypes.toDoubleVector(s2) sout = stypes.emptyDoubleVector(6) libspice.dvcrss_c(s1, s2, sout) return stypes.cVectorToPython(sout)
[ "\n Compute the cross product of two 3-dimensional vectors\n and the derivative of this cross product.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvcrss_c.html\n\n :param s1: Left hand state for cross product and derivative.\n :type s1: 6-Element Array of floats\n :param s2: Right...
Please provide a description of the function:def dvdot(s1, s2): assert len(s1) is 6 and len(s2) is 6 s1 = stypes.toDoubleVector(s1) s2 = stypes.toDoubleVector(s2) return libspice.dvdot_c(s1, s2)
[ "\n Compute the derivative of the dot product of two double\n precision position vectors.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvdot_c.html\n\n :param s1: First state vector in the dot product.\n :type s1: 6-Element Array of floats\n :param s2: Second state vector in the dot...
Please provide a description of the function:def dvhat(s1): assert len(s1) is 6 s1 = stypes.toDoubleVector(s1) sout = stypes.emptyDoubleVector(6) libspice.dvhat_c(s1, sout) return stypes.cVectorToPython(sout)
[ "\n Find the unit vector corresponding to a state vector and the\n derivative of the unit vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvhat_c.html\n\n :param s1: State to be normalized.\n :type s1: 6-Element Array of floats\n :return: Unit vector s1 / abs(s1), and its time ...
Please provide a description of the function:def dvnorm(state): assert len(state) is 6 state = stypes.toDoubleVector(state) return libspice.dvnorm_c(state)
[ "\n Function to calculate the derivative of the norm of a 3-vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvnorm_c.html\n\n :param state:\n A 6-vector composed of three coordinates and their derivatives.\n :type state: 6-Element Array of floats\n :return: The deri...
Please provide a description of the function:def dvsep(s1, s2): assert len(s1) is 6 and len(s2) is 6 s1 = stypes.toDoubleVector(s1) s2 = stypes.toDoubleVector(s2) return libspice.dvsep_c(s1, s2)
[ "\n Calculate the time derivative of the separation angle between\n two input states, S1 and S2.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvsep_c.html\n\n :param s1: State vector of the first body.\n :type s1: 6-Element Array of floats\n :param s2: State vector of the second bod...
Please provide a description of the function:def edlimb(a, b, c, viewpt): limb = stypes.Ellipse() a = ctypes.c_double(a) b = ctypes.c_double(b) c = ctypes.c_double(c) viewpt = stypes.toDoubleVector(viewpt) libspice.edlimb_c(a, b, c, viewpt, ctypes.byref(limb)) return limb
[ "\n Find the limb of a triaxial ellipsoid, viewed from a specified point.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/edlimb_c.html\n\n :param a: Length of ellipsoid semi-axis lying on the x-axis.\n :type a: float\n :param b: Length of ellipsoid semi-axis lying on the y-axis.\n :ty...
Please provide a description of the function:def edterm(trmtyp, source, target, et, fixref, abcorr, obsrvr, npts): trmtyp = stypes.stringToCharP(trmtyp) source = stypes.stringToCharP(source) target = stypes.stringToCharP(target) et = ctypes.c_double(et) fixref = stypes.stringToCharP(fixref) ...
[ "\n Compute a set of points on the umbral or penumbral terminator of\n a specified target body, where the target shape is modeled as an\n ellipsoid.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/edterm_c.html\n\n :param trmtyp: Terminator type.\n :type trmtyp: str\n :param source:...
Please provide a description of the function:def ekacec(handle, segno, recno, column, nvals, cvals, isnull): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) recno = ctypes.c_int(recno) column = stypes.stringToCharP(column) nvals = ctypes.c_int(nvals) vallen = ctypes.c_int(len(max(...
[ "\n Add data to a character column in a specified EK record.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacec_c.html\n\n :param handle: EK file handle.\n :type handle: int\n :param segno: Index of segment containing record.\n :type segno: int\n :param recno: Record to which da...
Please provide a description of the function:def ekacei(handle, segno, recno, column, nvals, ivals, isnull): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) recno = ctypes.c_int(recno) column = stypes.stringToCharP(column) nvals = ctypes.c_int(nvals) ivals = stypes.toIntVector(iva...
[ "\n Add data to an integer column in a specified EK record.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacei_c.html\n\n :param handle: EK file handle.\n :type handle: int\n :param segno: Index of segment containing record.\n :type segno: int\n :param recno: Record to which dat...
Please provide a description of the function:def ekaclc(handle, segno, column, vallen, cvals, entszs, nlflgs, rcptrs, wkindx): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) column = stypes.stringToCharP(column) vallen = ctypes.c_int(vallen) cvals = stypes.listToCharArrayP...
[ "\n Add an entire character column to an EK segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekaclc_c.html\n\n :param handle: EK file handle.\n :type handle: int\n :param segno: Number of segment to add column to.\n :type segno: int\n :param column: Column name.\n :type c...
Please provide a description of the function:def ekacld(handle, segno, column, dvals, entszs, nlflgs, rcptrs, wkindx): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) column = stypes.stringToCharP(column) dvals = stypes.toDoubleVector(dvals) entszs = stypes.toIntVector(entszs) nlf...
[ "\n Add an entire double precision column to an EK segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacld_c.html\n\n :param handle: EK file handle.\n :type handle: int\n :param segno: Number of segment to add column to.\n :type segno: int\n :param column: Column name.\n ...
Please provide a description of the function:def ekacli(handle, segno, column, ivals, entszs, nlflgs, rcptrs, wkindx): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) column = stypes.stringToCharP(column) ivals = stypes.toIntVector(ivals) entszs = stypes.toIntVector(entszs) nlflgs...
[ "\n Add an entire integer column to an EK segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacli_c.html\n\n :param handle: EK file handle.\n :type handle: int\n :param segno: Number of segment to add column to.\n :type segno: int\n :param column: Column name.\n :type col...
Please provide a description of the function:def ekappr(handle, segno): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) recno = ctypes.c_int() libspice.ekappr_c(handle, segno, ctypes.byref(recno)) return recno.value
[ "\n Append a new, empty record at the end of a specified E-kernel segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekappr_c.html\n\n :param handle: File handle.\n :type handle: int\n :param segno: Segment number.\n :type segno: int\n :return: Number of appended record.\n ...
Please provide a description of the function:def ekbseg(handle, tabnam, cnames, decls): handle = ctypes.c_int(handle) tabnam = stypes.stringToCharP(tabnam) ncols = ctypes.c_int(len(cnames)) cnmlen = ctypes.c_int(len(max(cnames, key=len)) + 1) # needs to be len(name)+1 ie 'c1' to 3 for ekbseg do no...
[ "\n Start a new segment in an E-kernel.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekbseg_c.html\n\n :param handle: File handle.\n :type handle: int\n :param tabnam: Table name.\n :type tabnam: str\n :param cnames: Names of columns.\n :type cnames: list of str.\n :param d...
Please provide a description of the function:def ekccnt(table): table = stypes.stringToCharP(table) ccount = ctypes.c_int() libspice.ekccnt_c(table, ctypes.byref(ccount)) return ccount.value
[ "\n Return the number of distinct columns in a specified,\n currently loaded table.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekccnt_c.html\n\n :param table: Name of table.\n :type table: str\n :return: Count of distinct, currently loaded columns.\n :rtype: int\n " ]
Please provide a description of the function:def ekcii(table, cindex, lenout=_default_len_out): table = stypes.stringToCharP(table) cindex = ctypes.c_int(cindex) lenout = ctypes.c_int(lenout) column = stypes.stringToCharP(lenout) attdsc = stypes.SpiceEKAttDsc() libspice.ekcii_c(table, cinde...
[ "\n Return attribute information about a column belonging to a loaded\n EK table, specifying the column by table and index.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekcii_c.html\n\n :param table: Name of table containing column.\n :type table: str\n :param cindex: Index of colum...
Please provide a description of the function:def ekdelr(handle, segno, recno): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) recno = ctypes.c_int(recno) libspice.ekdelr_c(handle, segno, recno)
[ "\n Delete a specified record from a specified E-kernel segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekdelr_c.html\n\n :param handle: File handle.\n :type handle: int\n :param segno: Segment number.\n :type segno: int\n :param recno: Record number.\n :type recno: int\...
Please provide a description of the function:def ekffld(handle, segno, rcptrs): handle = ctypes.c_int(handle) segno = ctypes.c_int(segno) rcptrs = stypes.toIntVector(rcptrs) libspice.ekffld_c(handle, segno, ctypes.cast(rcptrs, ctypes.POINTER(ctypes.c_int)))
[ "\n Complete a fast write operation on a new E-kernel segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekffld_c.html\n\n :param handle: File handle.\n :type handle: int\n :param segno: Segment number.\n :type segno: int\n :param rcptrs: Record pointers.\n :type rcptrs: Ar...
Please provide a description of the function:def ekfind(query, lenout=_default_len_out): query = stypes.stringToCharP(query) lenout = ctypes.c_int(lenout) nmrows = ctypes.c_int() error = ctypes.c_int() errmsg = stypes.stringToCharP(lenout) libspice.ekfind_c(query, lenout, ctypes.byref(nmrow...
[ "\n Find E-kernel data that satisfy a set of constraints.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekfind_c.html\n\n :param query: Query specifying data to be found.\n :type query: str\n :param lenout: Declared length of output error message string.\n :type lenout: int\n :ret...
Please provide a description of the function:def ekgc(selidx, row, element, lenout=_default_len_out): selidx = ctypes.c_int(selidx) row = ctypes.c_int(row) element = ctypes.c_int(element) lenout = ctypes.c_int(lenout) null = ctypes.c_int() found = ctypes.c_int() cdata = stypes.stringToC...
[ "\n Return an element of an entry in a column of character type in a specified\n row.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgc_c.html\n\n :param selidx: Index of parent column in SELECT clause.\n :type selidx: int\n :param row: Row to fetch from.\n :type row: int\n :p...
Please provide a description of the function: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(dd...
[ "\n Return an element of an entry in a column of double precision type in a\n specified row.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgd_c.html\n\n :param selidx: Index of parent column in SELECT clause.\n :type selidx: int\n :param row: Row to fetch from.\n :type row: int\...
Please provide a description of the function:def ekgi(selidx, row, element): selidx = ctypes.c_int(selidx) row = ctypes.c_int(row) element = ctypes.c_int(element) idata = ctypes.c_int() null = ctypes.c_int() found = ctypes.c_int() libspice.ekgi_c(selidx, row, element, ctypes.byref(idata...
[ "\n Return an element of an entry in a column of integer type in a specified\n row.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgi_c.html\n\n :param selidx: Index of parent column in SELECT clause.\n :type selidx: int\n :param row: Row to fetch from.\n :type row: int\n :par...
Please provide a description of the function:def ekifld(handle, tabnam, ncols, nrows, cnmlen, cnames, declen, decls): handle = ctypes.c_int(handle) tabnam = stypes.stringToCharP(tabnam) ncols = ctypes.c_int(ncols) nrows = ctypes.c_int(nrows) cnmlen = ctypes.c_int(cnmlen) cnames = stypes.lis...
[ "\n Initialize a new E-kernel segment to allow fast writing.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekifld_c.html\n\n :param handle: File handle.\n :type handle: int\n :param tabnam: Table name.\n :type tabnam: str\n :param ncols: Number of columns in the segment.\n :typ...