Code stringlengths 103 85.9k | Summary listlengths 0 94 |
|---|---|
Please provide a description of the function:def latrec(radius, longitude, latitude):
radius = ctypes.c_double(radius)
longitude = ctypes.c_double(longitude)
latitude = ctypes.c_double(latitude)
rectan = stypes.emptyDoubleVector(3)
libspice.latrec_c(radius, longitude, latitude, rectan)
retu... | [
"\n Convert from latitudinal coordinates to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latrec_c.html\n\n :param radius: Distance of a point from the origin.\n :type radius: float\n :param longitude: Longitude of point in radians.\n :type longitude: float\n... |
Please provide a description of the function:def latsph(radius, lon, lat):
radius = ctypes.c_double(radius)
lon = ctypes.c_double(lon)
lat = ctypes.c_double(lat)
rho = ctypes.c_double()
colat = ctypes.c_double()
lons = ctypes.c_double()
libspice.latsph_c(radius, lon, lat, ctypes.byref(r... | [
"\n Convert from latitudinal coordinates to spherical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latsph_c.html\n\n :param radius: Distance of a point from the origin.\n :param lon: Angle of the point from the XZ plane in radians.\n :param lat: Angle of the point from the... |
Please provide a description of the function:def latsrf(method, target, et, fixref, lonlat):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
fixref = stypes.stringToCharP(fixref)
npts = ctypes.c_int(len(lonlat))
lonlat = stypes.toDo... | [
"\n Map array of planetocentric longitude/latitude coordinate pairs \n to surface points on a specified target body. \n \n The surface of the target body may be represented by a triaxial \n ellipsoid or by topographic data provided by DSK files.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs... |
Please provide a description of the function:def lcase(instr, lenout=_default_len_out):
instr = stypes.stringToCharP(instr)
lenout = ctypes.c_int(lenout)
outstr = stypes.stringToCharP(lenout)
libspice.lcase_c(instr, lenout, outstr)
return stypes.toPythonString(outstr) | [
"\n Convert the characters in a string to lowercase.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lcase_c.html\n\n :param instr: Input string.\n :type instr: str\n :param lenout: Maximum length of output string.\n :type lenout: int\n :return: Output string, all lowercase.\n :r... |
Please provide a description of the function:def lgrind(xvals, yvals, x):
n = ctypes.c_int(len(xvals))
xvals = stypes.toDoubleVector(xvals)
yvals = stypes.toDoubleVector(yvals)
work = stypes.emptyDoubleVector(n.value*2)
x = ctypes.c_double(x)
p = ctypes.c_double(0)
dp = ctypes.c_doub... | [
"\n Evaluate a Lagrange interpolating polynomial for a specified\n set of coordinate pairs, at a specified abscissa value.\n Return the value of both polynomial and derivative.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lgrind_c.html\n\n :param xvals: Abscissa values.\n :type... |
Please provide a description of the function:def lmpool(cvals):
lenvals = ctypes.c_int(len(max(cvals, key=len)) + 1)
n = ctypes.c_int(len(cvals))
cvals = stypes.listToCharArrayPtr(cvals, xLen=lenvals, yLen=n)
libspice.lmpool_c(cvals, lenvals, n) | [
"\n Load the variables contained in an internal buffer into the\n kernel pool.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lmpool_c.html\n\n :param cvals: list of strings.\n :type cvals: list of str\n "
] |
Please provide a description of the function:def lparse(inlist, delim, nmax):
delim = stypes.stringToCharP(delim)
lenout = ctypes.c_int(len(inlist))
inlist = stypes.stringToCharP(inlist)
nmax = ctypes.c_int(nmax)
items = stypes.emptyCharArray(lenout, nmax)
n = ctypes.c_int()
libspice.lp... | [
"\n Parse a list of items delimited by a single character.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparse_c.html\n\n :param inlist: list of items delimited by delim.\n :type inlist: list\n :param delim: Single character used to delimit items.\n :type delim: str\n :param nmax... |
Please provide a description of the function:def lparsm(inlist, delims, nmax, lenout=None):
if lenout is None:
lenout = ctypes.c_int(len(inlist) + 1)
else:
lenout = ctypes.c_int(lenout)
inlist = stypes.stringToCharP(inlist)
delims = stypes.stringToCharP(delims)
items = stypes.em... | [
"\n Parse a list of items separated by multiple delimiters.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparsm_c.html\n\n :param inlist: list of items delimited by delims.\n :type inlist: list of strings\n :param delims: Single characters which delimit items.\n :type delims: str\n ... |
Please provide a description of the function:def lparss(inlist, delims, NMAX=20, LENGTH=50):
inlist = stypes.stringToCharP(inlist)
delims = stypes.stringToCharP(delims)
returnSet = stypes.SPICECHAR_CELL(NMAX, LENGTH)
libspice.lparss_c(inlist, delims, ctypes.byref(returnSet))
return returnSet | [
"\n Parse a list of items separated by multiple delimiters, placing the\n resulting items into a set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparss_c.html\n\n :param inlist: list of items delimited by delims.\n :type inlist:\n :param delims: Single characters which delimit ite... |
Please provide a description of the function:def lspcn(body, et, abcorr):
body = stypes.stringToCharP(body)
et = ctypes.c_double(et)
abcorr = stypes.stringToCharP(abcorr)
return libspice.lspcn_c(body, et, abcorr) | [
"\n Compute L_s, the planetocentric longitude of the sun, as seen\n from a specified body.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lspcn_c.html\n\n :param body: Name of central body.\n :type body: str\n :param et: Epoch in seconds past J2000 TDB.\n :type et: float\n :para... |
Please provide a description of the function:def lstlec(string, n, lenvals, array):
string = stypes.stringToCharP(string)
array = stypes.listToCharArrayPtr(array, xLen=lenvals, yLen=n)
n = ctypes.c_int(n)
lenvals = ctypes.c_int(lenvals)
return libspice.lstlec_c(string, n, lenvals, array) | [
"\n Given a character string and an ordered array of character\n strings, find the index of the largest array element less than\n or equal to the given string.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlec_c.html\n\n :param string: Upper bound value to search against.\n :type ... |
Please provide a description of the function:def lstled(x, n, array):
array = stypes.toDoubleVector(array)
x = ctypes.c_double(x)
n = ctypes.c_int(n)
return libspice.lstled_c(x, n, array) | [
"\n Given a number x and an array of non-decreasing floats\n find the index of the largest array element less than or equal to x.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstled_c.html\n\n :param x: Value to search against.\n :type x: float\n :param n: Number elements in array.\... |
Please provide a description of the function:def lstlei(x, n, array):
array = stypes.toIntVector(array)
x = ctypes.c_int(x)
n = ctypes.c_int(n)
return libspice.lstlei_c(x, n, array) | [
"\n Given a number x and an array of non-decreasing ints,\n find the index of the largest array element less than or equal to x.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlei_c.html\n\n :param x: Value to search against.\n :type x: int\n :param n: Number elements in array.\n ... |
Please provide a description of the function:def lstltc(string, n, lenvals, array):
string = stypes.stringToCharP(string)
array = stypes.listToCharArrayPtr(array, xLen=lenvals, yLen=n)
n = ctypes.c_int(n)
lenvals = ctypes.c_int(lenvals)
return libspice.lstltc_c(string, n, lenvals, array) | [
"\n Given a character string and an ordered array of character\n strings, find the index of the largest array element less than\n the given string.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstltc_c.html\n\n :param string: Upper bound value to search against.\n :type string: int\... |
Please provide a description of the function:def lstltd(x, n, array):
array = stypes.toDoubleVector(array)
x = ctypes.c_double(x)
n = ctypes.c_int(n)
return libspice.lstltd_c(x, n, array) | [
"\n Given a number x and an array of non-decreasing floats\n find the index of the largest array element less than x.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstltd_c.html\n\n :param x: Value to search against\n :type x: float\n :param n: Number elements in array\n :type n: ... |
Please provide a description of the function:def lstlti(x, n, array):
array = stypes.toIntVector(array)
x = ctypes.c_int(x)
n = ctypes.c_int(n)
return libspice.lstlti_c(x, n, array) | [
"\n Given a number x and an array of non-decreasing int,\n find the index of the largest array element less than x.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlti_c.html\n\n :param x: Value to search against\n :type x: int\n :param n: Number elements in array\n :type n: int\... |
Please provide a description of the function:def ltime(etobs, obs, direct, targ):
etobs = ctypes.c_double(etobs)
obs = ctypes.c_int(obs)
direct = stypes.stringToCharP(direct)
targ = ctypes.c_int(targ)
ettarg = ctypes.c_double()
elapsd = ctypes.c_double()
libspice.ltime_c(etobs, obs, dir... | [
"\n This routine computes the transmit (or receive) time\n of a signal at a specified target, given the receive\n (or transmit) time at a specified observer. The elapsed\n time between transmit and receive is also returned.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ltime_c.html\n\n ... |
Please provide a description of the function:def lx4dec(string, first):
string = stypes.stringToCharP(string)
first = ctypes.c_int(first)
last = ctypes.c_int()
nchar = ctypes.c_int()
libspice.lx4dec_c(string, first, ctypes.byref(last), ctypes.byref(nchar))
return last.value, nchar.value | [
"\n Scan a string from a specified starting position for the\n end of a decimal number.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4dec_c.html\n\n :param string: Any character string.\n :type string: str\n :param first: First character to scan from in string.\n :type first: i... |
Please provide a description of the function:def lx4num(string, first):
string = stypes.stringToCharP(string)
first = ctypes.c_int(first)
last = ctypes.c_int()
nchar = ctypes.c_int()
libspice.lx4num_c(string, first, ctypes.byref(last), ctypes.byref(nchar))
return last.value, nchar.value | [
"\n Scan a string from a specified starting position for the\n end of a number.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4num_c.html\n\n :param string: Any character string.\n :type string: str\n :param first: First character to scan from in string.\n :type first: int\n ... |
Please provide a description of the function:def lx4sgn(string, first):
string = stypes.stringToCharP(string)
first = ctypes.c_int(first)
last = ctypes.c_int()
nchar = ctypes.c_int()
libspice.lx4sgn_c(string, first, ctypes.byref(last), ctypes.byref(nchar))
return last.value, nchar.value | [
"\n Scan a string from a specified starting position for the\n end of a signed integer.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4sgn_c.html\n\n :param string: Any character string.\n :type string: str\n :param first: First character to scan from in string.\n :type first: i... |
Please provide a description of the function:def lx4uns(string, first):
string = stypes.stringToCharP(string)
first = ctypes.c_int(first)
last = ctypes.c_int()
nchar = ctypes.c_int()
libspice.lx4uns_c(string, first, ctypes.byref(last), ctypes.byref(nchar))
return last.value, nchar.value | [
"\n Scan a string from a specified starting position for the\n end of an unsigned integer.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4uns_c.html\n\n :param string: Any character string.\n :type string: str\n :param first: First character to scan from in string.\n :type first... |
Please provide a description of the function:def lxqstr(string, qchar, first):
string = stypes.stringToCharP(string)
qchar = ctypes.c_char(qchar.encode(encoding='UTF-8'))
first = ctypes.c_int(first)
last = ctypes.c_int()
nchar = ctypes.c_int()
libspice.lxqstr_c(string, qchar, first, ctypes.... | [
"\n Lex (scan) a quoted string.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lxqstr_c.html\n\n :param string: String to be scanned.\n :type string: str\n :param qchar: Quote delimiter character.\n :type qchar: char (string of one char)\n :param first: Character position at which ... |
Please provide a description of the function:def m2eul(r, axis3, axis2, axis1):
r = stypes.toDoubleMatrix(r)
axis3 = ctypes.c_int(axis3)
axis2 = ctypes.c_int(axis2)
axis1 = ctypes.c_int(axis1)
angle3 = ctypes.c_double()
angle2 = ctypes.c_double()
angle1 = ctypes.c_double()
libspice.... | [
"\n Factor a rotation matrix as a product of three rotations\n about specified coordinate axes.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/m2eul_c.html\n\n :param r: A rotation matrix to be factored\n :type r: 3x3-Element Array of floats\n :param axis3: third rotation axes.\n :... |
Please provide a description of the function:def m2q(r):
r = stypes.toDoubleMatrix(r)
q = stypes.emptyDoubleVector(4)
libspice.m2q_c(r, q)
return stypes.cVectorToPython(q) | [
"\n Find a unit quaternion corresponding to a specified rotation matrix.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/m2q_c.html\n\n :param r: A rotation matrix to be factored\n :type r: 3x3-Element Array of floats\n :return: A unit quaternion representing the rotation matrix\n :rty... |
Please provide a description of the function:def matchi(string, templ, wstr, wchr):
string = stypes.stringToCharP(string)
templ = stypes.stringToCharP(templ)
wstr = ctypes.c_char(wstr.encode(encoding='UTF-8'))
wchr = ctypes.c_char(wchr.encode(encoding='UTF-8'))
return bool(libspice.matchi_c(str... | [
"\n Determine whether a string is matched by a template containing wild cards.\n The pattern comparison is case-insensitive.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/matchi_c.html\n\n :param string: String to be tested.\n :type string: str\n :param templ: Template (with wild car... |
Please provide a description of the function:def matchw(string, templ, wstr, wchr):
# ctypes.c_char(wstr.encode(encoding='UTF-8')
string = stypes.stringToCharP(string)
templ = stypes.stringToCharP(templ)
wstr = ctypes.c_char(wstr.encode(encoding='UTF-8'))
wchr = ctypes.c_char(wchr.encode(encodi... | [
"\n Determine whether a string is matched by a template containing wild cards.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/matchw_c.html\n\n :param string: String to be tested.\n :type string: str\n :param templ: Template (with wild cards) to test against string.\n :type templ: str... |
Please provide a description of the function:def mequ(m1):
m1 = stypes.toDoubleMatrix(m1)
mout = stypes.emptyDoubleMatrix()
libspice.mequ_c(m1, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Set one double precision 3x3 matrix equal to another.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mequ_c.html\n\n :param m1: input matrix.\n :type m1: 3x3-Element Array of floats\n :return: Output matrix equal to m1.\n :rtype: 3x3-Element Array of floats\n "
] |
Please provide a description of the function:def mequg(m1, nr, nc):
m1 = stypes.toDoubleMatrix(m1)
mout = stypes.emptyDoubleMatrix(x=nc, y=nr)
nc = ctypes.c_int(nc)
nr = ctypes.c_int(nr)
libspice.mequg_c(m1, nc, nr, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Set one double precision matrix of arbitrary size equal to another.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mequg_c.html\n\n :param m1: Input matrix.\n :type m1: NxM-Element Array of floats\n :param nr: Row dimension of m1.\n :type nr: int\n :param nc: Column dimension o... |
Please provide a description of the function:def mtxm(m1, m2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix()
libspice.mtxm_c(m1, m2, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Multiply the transpose of a 3x3 matrix and a 3x3 matrix.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxm_c.html\n\n :param m1: 3x3 double precision matrix.\n :type m1: 3x3-Element Array of floats\n :param m2: 3x3 double precision matrix.\n :type m2: 3x3-Element Array of floats... |
Please provide a description of the function:def mtxmg(m1, m2, ncol1, nr1r2, ncol2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix(x=ncol2, y=ncol1)
ncol1 = ctypes.c_int(ncol1)
nr1r2 = ctypes.c_int(nr1r2)
ncol2 = ctypes.c_int(ncol2)
libspi... | [
"\n Multiply the transpose of a matrix with\n another matrix, both of arbitrary size.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxmg_c.html\n\n :param m1: nr1r2 X ncol1 double precision matrix.\n :type m1: NxM-Element Array of floats\n :param m2: nr1r2 X ncol2 double precision m... |
Please provide a description of the function:def mtxv(m1, vin):
m1 = stypes.toDoubleMatrix(m1)
vin = stypes.toDoubleVector(vin)
vout = stypes.emptyDoubleVector(3)
libspice.mtxv_c(m1, vin, vout)
return stypes.cVectorToPython(vout) | [
"\n Multiplies the transpose of a 3x3 matrix\n on the left with a vector on the right.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxv_c.html\n\n :param m1: 3x3 double precision matrix.\n :type m1: 3x3-Element Array of floats\n :param vin: 3-dimensional double precision vector.\n ... |
Please provide a description of the function:def mtxvg(m1, v2, ncol1, nr1r2):
m1 = stypes.toDoubleMatrix(m1)
v2 = stypes.toDoubleVector(v2)
ncol1 = ctypes.c_int(ncol1)
nr1r2 = ctypes.c_int(nr1r2)
vout = stypes.emptyDoubleVector(ncol1.value)
libspice.mtxvg_c(m1, v2, ncol1, nr1r2, vout)
r... | [
"\n Multiply the transpose of a matrix and\n a vector of arbitrary size.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxvg_c.html\n\n :param m1: Left-hand matrix to be multiplied.\n :type m1: NxM-Element Array of floats\n :param v2: Right-hand vector to be multiplied.\n :type v2... |
Please provide a description of the function:def mxm(m1, m2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix()
libspice.mxm_c(m1, m2, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Multiply two 3x3 matrices.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxm_c.html\n\n :param m1: 3x3 double precision matrix.\n :type m1: 3x3-Element Array of floats\n :param m2: 3x3 double precision matrix.\n :type m2: 3x3-Element Array of floats\n :return: 3x3 double preci... |
Please provide a description of the function:def mxmg(m1, m2, nrow1, ncol1, ncol2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix(x=ncol2, y=nrow1)
nrow1 = ctypes.c_int(nrow1)
ncol1 = ctypes.c_int(ncol1)
ncol2 = ctypes.c_int(ncol2)
libspic... | [
"\n Multiply two double precision matrices of arbitrary size.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmg_c.html\n\n :param m1: nrow1 X ncol1 double precision matrix.\n :type m1: NxM-Element Array of floats\n :param m2: ncol1 X ncol2 double precision matrix.\n :type m2: NxM-El... |
Please provide a description of the function:def mxmt(m1, m2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix()
libspice.mxmt_c(m1, m2, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Multiply a 3x3 matrix and the transpose of another 3x3 matrix.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmt_c.html\n\n :param m1: 3x3 double precision matrix.\n :type m1: 3x3-Element Array of floats\n :param m2: 3x3 double precision matrix.\n :type m2: 3x3-Element Array of ... |
Please provide a description of the function:def mxmtg(m1, m2, nrow1, nc1c2, nrow2):
m1 = stypes.toDoubleMatrix(m1)
m2 = stypes.toDoubleMatrix(m2)
mout = stypes.emptyDoubleMatrix(x=nrow2, y=nrow1)
nrow1 = ctypes.c_int(nrow1)
nc1c2 = ctypes.c_int(nc1c2)
nrow2 = ctypes.c_int(nrow2)
libspi... | [
"\n Multiply a matrix and the transpose of a matrix, both of arbitrary size.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmtg_c.html\n\n :param m1: Left-hand matrix to be multiplied.\n :type m1: NxM-Element Array of floats\n :param m2: Right-hand matrix whose transpose is to be multi... |
Please provide a description of the function:def mxv(m1, vin):
m1 = stypes.toDoubleMatrix(m1)
vin = stypes.toDoubleVector(vin)
vout = stypes.emptyDoubleVector(3)
libspice.mxv_c(m1, vin, vout)
return stypes.cVectorToPython(vout) | [
"\n Multiply a 3x3 double precision matrix with a\n 3-dimensional double precision vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxv_c.html\n\n :param m1: 3x3 double precision matrix.\n :type m1: 3x3-Element Array of floats\n :param vin: 3-dimensional double precision vector.... |
Please provide a description of the function:def mxvg(m1, v2, nrow1, nc1r2):
m1 = stypes.toDoubleMatrix(m1)
v2 = stypes.toDoubleVector(v2)
nrow1 = ctypes.c_int(nrow1)
nc1r2 = ctypes.c_int(nc1r2)
vout = stypes.emptyDoubleVector(nrow1.value)
libspice.mxvg_c(m1, v2, nrow1, nc1r2, vout)
ret... | [
"\n Multiply a matrix and a vector of arbitrary size.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxvg_c.html\n\n :param m1: Left-hand matrix to be multiplied.\n :type m1: NxM-Element Array of floats\n :param v2: Right-hand vector to be multiplied.\n :type v2: Array of floats\n ... |
Please provide a description of the function:def namfrm(frname):
frname = stypes.stringToCharP(frname)
frcode = ctypes.c_int()
libspice.namfrm_c(frname, ctypes.byref(frcode))
return frcode.value | [
"\n Look up the frame ID code associated with a string.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/namfrm_c.html\n\n :param frname: The name of some reference frame.\n :type frname: str\n :return: The SPICE ID code of the frame.\n :rtype: int\n "
] |
Please provide a description of the function:def ncpos(string, chars, start):
string = stypes.stringToCharP(string)
chars = stypes.stringToCharP(chars)
start = ctypes.c_int(start)
return libspice.ncpos_c(string, chars, start) | [
"\n Find the first occurrence in a string of a character NOT belonging\n to a collection of characters, starting at a specified\n location searching forward.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ncpos_c.html\n\n :param string: Any character string.\n :type string: str\n :... |
Please provide a description of the function:def ncposr(string, chars, start):
string = stypes.stringToCharP(string)
chars = stypes.stringToCharP(chars)
start = ctypes.c_int(start)
return libspice.ncposr_c(string, chars, start) | [
"\n Find the first occurrence in a string of a character NOT belonging to a\n 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/ncposr_c.html\n\n :param string: Any character string.\n :type string: str\n... |
Please provide a description of the function:def nearpt(positn, a, b, c):
positn = stypes.toDoubleVector(positn)
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
npoint = stypes.emptyDoubleVector(3)
alt = ctypes.c_double()
libspice.nearpt_c(positn, a, b, c, npoint, c... | [
"\n locates the point on the surface of an ellipsoid that is nearest to a\n specified position. It also returns the altitude of the\n position above the ellipsoid.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nearpt_c.html\n\n :param positn: Position of a point in bodyfixed frame.\n ... |
Please provide a description of the function:def npedln(a, b, c, linept, linedr):
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
linept = stypes.toDoubleVector(linept)
linedr = stypes.toDoubleVector(linedr)
pnear = stypes.emptyDoubleVector(3)
dist = ctypes.c_double... | [
"\n Find nearest point on a triaxial ellipsoid to a specified\n line and the distance from the ellipsoid to the line.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/npedln_c.html\n\n :param a: Length of ellipsoid's semi-axis in the x direction\n :type a: float\n :param b: Length of el... |
Please provide a description of the function:def npelpt(point, ellips):
assert (isinstance(ellips, stypes.Ellipse))
point = stypes.toDoubleVector(point)
pnear = stypes.emptyDoubleVector(3)
dist = ctypes.c_double()
libspice.npelpt_c(point, ctypes.byref(ellips), pnear, ctypes.byref(dist))
ret... | [
"\n Find the nearest point on an ellipse to a specified point, both\n in three-dimensional space, and find the distance between the\n ellipse and the point.\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/npelpt_c.html\n\n :param point: Point whose distance to an ellipse is to be found.\n ... |
Please provide a description of the function:def nplnpt(linpt, lindir, point):
linpt = stypes.toDoubleVector(linpt)
lindir = stypes.toDoubleVector(lindir)
point = stypes.toDoubleVector(point)
pnear = stypes.emptyDoubleVector(3)
dist = ctypes.c_double()
libspice.nplnpt_c(linpt, lindir, point... | [
"\n Find the nearest point on a line to a specified point,\n and find the distance between the two points.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nplnpt_c.html\n\n :param linpt: Point on a line\n :type linpt: 3-Element Array of floats\n :param lindir: line's direction vector\n... |
Please provide a description of the function:def nvc2pl(normal, constant):
plane = stypes.Plane()
normal = stypes.toDoubleVector(normal)
constant = ctypes.c_double(constant)
libspice.nvc2pl_c(normal, constant, ctypes.byref(plane))
return plane | [
"\n Make a plane from a normal vector and a constant.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nvc2pl_c.html\n\n :param normal: A normal vector defining a plane.\n :type normal: 3-Element Array of floats\n :param constant: A constant defining a plane.\n :type constant: float\n ... |
Please provide a description of the function:def nvp2pl(normal, point):
normal = stypes.toDoubleVector(normal)
point = stypes.toDoubleVector(point)
plane = stypes.Plane()
libspice.nvp2pl_c(normal, point, ctypes.byref(plane))
return plane | [
"\n Make a plane from a normal vector and a point.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nvp2pl_c.html\n\n :param normal: A normal vector defining a plane.\n :type normal: 3-Element Array of floats\n :param point: A point defining a plane.\n :type point: 3-Element Array of fl... |
Please provide a description of the function:def occult(target1, shape1, frame1, target2, shape2, frame2, abcorr, observer,
et):
target1 = stypes.stringToCharP(target1)
shape1 = stypes.stringToCharP(shape1)
frame1 = stypes.stringToCharP(frame1)
target2 = stypes.stringToCharP(target2)
... | [
"\n Determines the occultation condition (not occulted, partially,\n etc.) of one target relative to another target as seen by\n an observer at a given time.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/occult_c.html\n\n :param target1: Name or ID of first target.\n :type target1: s... |
Please provide a description of the function:def ordc(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.is_char()
assert isinstance(item, str)
item = stypes.stringToCharP(item)
return libspice.ordc_c(item, ctypes.byref(inset)) | [
"\n The function returns the ordinal position of any given item in a\n character set. If the item does not appear in the set, the function\n returns -1.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordc_c.html\n\n :param item: An item to locate within a set.\n :type item: str\n ... |
Please provide a description of the function:def ordd(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.is_double()
item = ctypes.c_double(item)
return libspice.ordd_c(item, ctypes.byref(inset)) | [
"\n The function returns the ordinal position of any given item in a\n double precision set. If the item does not appear in the set, the\n function returns -1.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordd_c.html\n\n :param item: An item to locate within a set.\n :type item: fl... |
Please provide a description of the function:def ordi(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.is_int()
assert isinstance(item, int)
item = ctypes.c_int(item)
return libspice.ordi_c(item, ctypes.byref(inset)) | [
"\n The function returns the ordinal position of any given item in an\n integer set. If the item does not appear in the set, the function\n returns -1.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordi_c.html\n\n :param item: An item to locate within a set.\n :type item: int\n :... |
Please provide a description of the function:def orderc(array, ndim=None):
if ndim is None:
ndim = ctypes.c_int(len(array))
else:
ndim = ctypes.c_int(ndim)
lenvals = ctypes.c_int(len(max(array, key=len)) + 1)
iorder = stypes.emptyIntVector(ndim)
array = stypes.listToCharArray(ar... | [
"\n Determine the order of elements in an array of character strings.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderc_c.html\n\n :param array: Input array.\n :type array: Array of strings.\n :param ndim: Optional Length of input array\n :type ndim: int\n :return: Order vector... |
Please provide a description of the function:def orderd(array, ndim=None):
if ndim is None:
ndim = ctypes.c_int(len(array))
else:
ndim = ctypes.c_int(ndim)
array = stypes.toDoubleVector(array)
iorder = stypes.emptyIntVector(ndim)
libspice.orderd_c(array, ndim, iorder)
return... | [
"\n Determine the order of elements in a double precision array.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderd_c.html\n\n :param array: Input array.\n :type array: Array of floats\n :param ndim: Optional Length of input array\n :type ndim: int\n :return: Order vector for ar... |
Please provide a description of the function:def orderi(array, ndim=None):
if ndim is None:
ndim = ctypes.c_int(len(array))
else:
ndim = ctypes.c_int(ndim)
array = stypes.toIntVector(array)
iorder = stypes.emptyIntVector(ndim)
libspice.orderi_c(array, ndim, iorder)
return st... | [
"\n Determine the order of elements in an integer array.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderi_c.html\n\n :param array: Input array.\n :type array: Array of ints\n :param ndim: Optional Length of input array\n :type ndim: int\n :return: Order vector for array.\n ... |
Please provide a description of the function:def oscelt(state, et, mu):
state = stypes.toDoubleVector(state)
et = ctypes.c_double(et)
mu = ctypes.c_double(mu)
elts = stypes.emptyDoubleVector(8)
libspice.oscelt_c(state, et, mu, elts)
return stypes.cVectorToPython(elts) | [
"\n Determine the set of osculating conic orbital elements that\n corresponds to the state (position, velocity) of a body at\n some epoch.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/oscelt_c.html\n\n :param state: State of body at epoch of elements.\n :type state: Float Array of 6... |
Please provide a description of the function:def oscltx(state, et, mu):
state = stypes.toDoubleVector(state)
et = ctypes.c_double(et)
mu = ctypes.c_double(mu)
elts = stypes.emptyDoubleVector(20)
libspice.oscltx_c(state, et, mu, elts)
return stypes.cVectorToPython(elts)[0:11] | [
"\n Determine the set of osculating conic orbital elements that \n corresponds to the state (position, velocity) of a body at some \n epoch. In additional to the classical elements, return the true \n anomaly, semi-major axis, and period, if applicable. \n \n https://naif.jpl.nasa.gov/pub/naif/too... |
Please provide a description of the function:def pckcov(pck, idcode, cover):
pck = stypes.stringToCharP(pck)
idcode = ctypes.c_int(idcode)
assert isinstance(cover, stypes.SpiceCell)
assert cover.dtype == 1
libspice.pckcov_c(pck, idcode, ctypes.byref(cover)) | [
"\n Find the coverage window for a specified reference frame in a\n specified binary PCK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckcov_c.html\n\n :param pck: Name of PCK file.\n :type pck: str\n :param idcode: Class ID code of PCK reference frame.\n :type idcode: int\... |
Please provide a description of the function:def pckfrm(pck, ids):
pck = stypes.stringToCharP(pck)
assert isinstance(ids, stypes.SpiceCell)
assert ids.dtype == 2
libspice.pckfrm_c(pck, ctypes.byref(ids)) | [
"\n Find the set of reference frame class ID codes of all frames\n in a specified binary PCK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckfrm_c.html\n\n :param pck: Name of PCK file.\n :type pck: str\n :param ids: Set of frame class ID codes of frames in PCK file.\n :typ... |
Please provide a description of the function:def pcklof(filename):
filename = stypes.stringToCharP(filename)
handle = ctypes.c_int()
libspice.pcklof_c(filename, ctypes.byref(handle))
return handle.value | [
"\n Load a binary PCK file for use by the readers. Return the\n handle of the loaded file which is used by other PCK routines to\n refer to the file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pcklof_c.html\n\n :param filename: Name of the file to be loaded.\n :type filename: str... |
Please provide a description of the function:def pckopn(name, ifname, ncomch):
name = stypes.stringToCharP(name)
ifname = stypes.stringToCharP(ifname)
ncomch = ctypes.c_int(ncomch)
handle = ctypes.c_int()
libspice.pckopn_c(name, ifname, ncomch, ctypes.byref(handle))
return handle.value | [
"\n Create a new PCK file, returning the handle of the opened file. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckopn_c.html\n \n :param name: The name of the PCK file to be opened. \n :type name: str\n :param ifname: The internal filename for the PCK.\n :type ifname: str... |
Please provide a description of the function:def pckw02(handle, classid, frname, first, last, segid, intlen, n, polydg, cdata, btime):
handle = ctypes.c_int(handle)
classid = ctypes.c_int(classid)
frame = stypes.stringToCharP(frname)
first = ctypes.c_double(first)
last = ctypes.c_double(last)
... | [
"\n Write a type 2 segment to a PCK binary file given the file handle,\n frame class ID, base frame, time range covered by the segment, and\n the Chebyshev polynomial coefficients.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckw02_c.html\n \n :param handle: Handle of binary P... |
Please provide a description of the function:def pcpool(name, cvals):
name = stypes.stringToCharP(name)
lenvals = ctypes.c_int(len(max(cvals, key=len)) + 1)
n = ctypes.c_int(len(cvals))
cvals = stypes.listToCharArray(cvals, lenvals, n)
libspice.pcpool_c(name, n, lenvals, cvals) | [
"\n This entry point provides toolkit programmers a method for\n programmatically inserting character data into the\n kernel pool.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pcpool_c.html\n\n :param name: The kernel pool name to associate with cvals.\n :type name: str\n :param ... |
Please provide a description of the function:def pdpool(name, dvals):
name = stypes.stringToCharP(name)
n = ctypes.c_int(len(dvals))
dvals = stypes.toDoubleVector(dvals)
libspice.pdpool_c(name, n, dvals) | [
"\n This entry point provides toolkit programmers a method for\n programmatically inserting double precision data into the\n kernel pool.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pdpool_c.html\n\n :param name: The kernel pool name to associate with dvals.\n :type name: str\n ... |
Please provide a description of the function:def pgrrec(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)
rectan = stypes.emptyDoubleVector(3)
... | [
"\n Convert planetographic coordinates to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pgrrec_c.html\n\n :param body: Body with which coordinate system is associated.\n :type body: str\n :param lon: Planetographic longitude of a point (radians).\n :type lon:... |
Please provide a description of the function:def phaseq(et, target, illmn, obsrvr, abcorr):
et = ctypes.c_double(et)
target = stypes.stringToCharP(target)
illmn = stypes.stringToCharP(illmn)
obsrvr = stypes.stringToCharP(obsrvr)
abcorr = stypes.stringToCharP(abcorr)
return libspice.phaseq_c... | [
"\n Compute the apparent phase angle for a target, observer,\n illuminator set of ephemeris objects.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/phaseq_c.html\n\n :param et: Ephemeris seconds past J2000 TDB.\n :type et: float\n :param target: Target body name.\n :type target: st... |
Please provide a description of the function:def pipool(name, ivals):
name = stypes.stringToCharP(name)
n = ctypes.c_int(len(ivals))
ivals = stypes.toIntVector(ivals)
libspice.pipool_c(name, n, ivals) | [
"\n This entry point provides toolkit programmers a method for\n programmatically inserting integer data into the kernel pool.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pipool_c.html\n\n :param name: The kernel pool name to associate with values.\n :type name: str\n :param ivals:... |
Please provide a description of the function:def pjelpl(elin, plane):
assert (isinstance(elin, stypes.Ellipse))
assert (isinstance(plane, stypes.Plane))
elout = stypes.Ellipse()
libspice.pjelpl_c(ctypes.byref(elin), ctypes.byref(plane),
ctypes.byref(elout))
return elout | [
"\n Project an ellipse onto a plane, orthogonally.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pjelpl_c.html\n\n :param elin: A SPICE ellipse to be projected.\n :type elin: spiceypy.utils.support_types.Ellipse\n :param plane: A plane onto which elin is to be projected.\n :type plan... |
Please provide a description of the function:def pl2nvc(plane):
assert (isinstance(plane, stypes.Plane))
normal = stypes.emptyDoubleVector(3)
constant = ctypes.c_double()
libspice.pl2nvc_c(ctypes.byref(plane), normal, ctypes.byref(constant))
return stypes.cVectorToPython(normal), constant.value | [
"\n Return a unit normal vector and constant that define a specified plane.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2nvc_c.html\n\n :param plane: A SPICE plane.\n :type plane: supporttypes.Plane\n :return:\n A normal vector and constant defining\n the geome... |
Please provide a description of the function:def pl2nvp(plane):
assert (isinstance(plane, stypes.Plane))
normal = stypes.emptyDoubleVector(3)
point = stypes.emptyDoubleVector(3)
libspice.pl2nvp_c(ctypes.byref(plane), normal, point)
return stypes.cVectorToPython(normal), stypes.cVectorToPython(p... | [
"\n Return a unit normal vector and point that define a specified plane.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2nvp_c.html\n\n\n :param plane: A SPICE plane.\n :type plane: supporttypes.Plane\n :return: A unit normal vector and point that define plane.\n :rtype: tuple\n ... |
Please provide a description of the function:def pl2psv(plane):
assert (isinstance(plane, stypes.Plane))
point = stypes.emptyDoubleVector(3)
span1 = stypes.emptyDoubleVector(3)
span2 = stypes.emptyDoubleVector(3)
libspice.pl2psv_c(ctypes.byref(plane), point, span1, span2)
return stypes.cVec... | [
"\n Return a point and two orthogonal spanning vectors that generate\n a specified plane.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2psv_c.html\n\n :param plane: A SPICE plane.\n :type plane: supporttypes.Plane\n :return:\n A point in the input plane and two vectors\... |
Please provide a description of the function:def pltar(vrtces, plates):
nv = ctypes.c_int(len(vrtces))
vrtces = stypes.toDoubleMatrix(vrtces)
np = ctypes.c_int(len(plates))
plates = stypes.toIntMatrix(plates)
return libspice.pltar_c(nv, vrtces, np, plates) | [
"\n Compute the total area of a collection of triangular plates.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltar_c.html\n \n :param vrtces: Array of vertices.\n :type vrtces: Nx3-Element Array of floats\n :param plates: Array of plates. \n :type plates: Nx3-Element Array ... |
Please provide a description of the function:def pltexp(iverts, delta):
iverts = stypes.toDoubleMatrix(iverts)
delta = ctypes.c_double(delta)
overts = stypes.emptyDoubleMatrix()
libspice.pltexp_c(iverts, delta, overts)
return stypes.cMatrixToNumpy(overts) | [
"\n Expand a triangular plate by a specified amount. The expanded \n plate is co-planar with, and has the same orientation as, the \n original. The centroids of the two plates coincide. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltexp_c.html\n \n :param iverts: Vertices of ... |
Please provide a description of the function:def pltnp(point, v1, v2, v3):
point = stypes.toDoubleVector(point)
v1 = stypes.toDoubleVector(v1)
v2 = stypes.toDoubleVector(v2)
v3 = stypes.toDoubleVector(v3)
pnear = stypes.emptyDoubleVector(3)
dist = ctypes.c_double()
libspice.pltnp_c(poin... | [
"\n Find the nearest point on a triangular plate to a given point. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltnp_c.html\n \n :param point: A point in 3-dimensional space. \n :type point: 3-Element Array of floats\n :param v1: Vertices of a triangular plate.\n :type v1:... |
Please provide a description of the function:def pltnrm(v1, v2, v3):
v1 = stypes.toDoubleVector(v1)
v2 = stypes.toDoubleVector(v2)
v3 = stypes.toDoubleVector(v3)
normal = stypes.emptyDoubleVector(3)
libspice.pltnrm_c(v1, v2, v3, normal)
return stypes.cVectorToPython(normal) | [
"\n Compute an outward normal vector of a triangular plate. \n The vector does not necessarily have unit length. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltnrm_c.html\n \n :param v1: Vertices of a plate.\n :type v1: 3-Element Array of floats\n :param v2: Vertices of a ... |
Please provide a description of the function:def pltvol(vrtces, plates):
nv = ctypes.c_int(len(vrtces))
vrtces = stypes.toDoubleMatrix(vrtces)
np = ctypes.c_int(len(plates))
plates = stypes.toIntMatrix(plates)
return libspice.pltvol_c(nv, vrtces, np, plates) | [
"\n Compute the volume of a three-dimensional region bounded by a \n collection of triangular plates. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltvol_c.html\n \n :param vrtces: Array of vertices.\n :type vrtces: Nx3-Element Array of floats\n :param plates: Array of plates.... |
Please provide a description of the function:def polyds(coeffs, deg, nderiv, t):
coeffs = stypes.toDoubleVector(coeffs)
deg = ctypes.c_int(deg)
p = stypes.emptyDoubleVector(nderiv + 1)
nderiv = ctypes.c_int(nderiv)
t = ctypes.c_double(t)
libspice.polyds_c(ctypes.byref(coeffs), deg, nderiv, ... | [
"\n Compute the value of a polynomial and it's first\n n derivatives at the value t.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/polyds_c.html\n \n :param coeffs: Coefficients of the polynomial to be evaluated.\n :type coeffs: N-Element Array of floats\n :param deg: Degree ... |
Please provide a description of the function:def pos(string, substr, start):
string = stypes.stringToCharP(string)
substr = stypes.stringToCharP(substr)
start = ctypes.c_int(start)
return libspice.pos_c(string, substr, start) | [
"\n Find the first occurrence in a string of a substring, starting at\n a specified location, searching forward.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pos_c.html\n\n :param string: Any character string.\n :type string: str\n :param substr: Substring to locate in the character... |
Please provide a description of the function:def posr(string, substr, start):
string = stypes.stringToCharP(string)
substr = stypes.stringToCharP(substr)
start = ctypes.c_int(start)
return libspice.posr_c(string, substr, start) | [
"\n Find the first occurrence in a string of a substring, starting at\n a specified location, searching backward.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/posr_c.html\n\n :param string: Any character string.\n :type string: str\n :param substr: Substring to locate in the charact... |
Please provide a description of the function:def prop2b(gm, pvinit, dt):
gm = ctypes.c_double(gm)
pvinit = stypes.toDoubleVector(pvinit)
dt = ctypes.c_double(dt)
pvprop = stypes.emptyDoubleVector(6)
libspice.prop2b_c(gm, pvinit, dt, pvprop)
return stypes.cVectorToPython(pvprop) | [
"\n Given a central mass and the state of massless body at time t_0,\n this routine determines the state as predicted by a two-body\n force model at time t_0 + dt.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prop2b_c.html\n\n :param gm: Gravity of the central mass.\n :type gm: floa... |
Please provide a description of the function:def prsdp(string):
string = stypes.stringToCharP(string)
dpval = ctypes.c_double()
libspice.prsdp_c(string, ctypes.byref(dpval))
return dpval.value | [
"\n Parse a string as a double precision number, encapsulating error handling.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prsdp_c.html\n\n :param string: String representing a d.p. number.\n :type string: str\n :return: D.p. value obtained by parsing string.\n :rtype: float\n "... |
Please provide a description of the function:def prsint(string):
string = stypes.stringToCharP(string)
intval = ctypes.c_int()
libspice.prsint_c(string, ctypes.byref(intval))
return intval.value | [
"\n Parse a string as an integer, encapsulating error handling.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prsint_c.html\n\n :param string: String representing an integer.\n :type string: str\n :return: Integer value obtained by parsing string.\n :rtype: int\n "
] |
Please provide a description of the function:def psv2pl(point, span1, span2):
point = stypes.toDoubleVector(point)
span1 = stypes.toDoubleVector(span1)
span2 = stypes.toDoubleVector(span2)
plane = stypes.Plane()
libspice.psv2pl_c(point, span1, span2, ctypes.byref(plane))
return plane | [
"\n Make a CSPICE plane from a point and two spanning vectors.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/psv2pl_c.html\n\n :param point: A Point.\n :type point: 3-Element Array of floats\n :param span1: First Spanning vector.\n :type span1: 3-Element Array of floats\n :param s... |
Please provide a description of the function:def pxform(fromstr, tostr, et):
et = ctypes.c_double(et)
tostr = stypes.stringToCharP(tostr)
fromstr = stypes.stringToCharP(fromstr)
rotatematrix = stypes.emptyDoubleMatrix()
libspice.pxform_c(fromstr, tostr, et, rotatematrix)
return stypes.cMatr... | [
"\n Return the matrix that transforms position vectors from one\n specified frame to another at a specified epoch.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pxform_c.html\n\n :param fromstr: Name of the frame to transform from.\n :type fromstr: str\n :param tostr: Name of the fra... |
Please provide a description of the function:def pxfrm2(frame_from, frame_to, etfrom, etto):
frame_from = stypes.stringToCharP(frame_from)
frame_to = stypes.stringToCharP(frame_to)
etfrom = ctypes.c_double(etfrom)
etto = ctypes.c_double(etto)
outmatrix = stypes.emptyDoubleMatrix()
libspice.... | [
"\n Return the 3x3 matrix that transforms position vectors from one\n specified frame at a specified epoch to another specified\n frame at another specified epoch.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pxfrm2_c.html\n\n :param frame_from: Name of the frame to transform from.\n ... |
Please provide a description of the function:def q2m(q):
q = stypes.toDoubleVector(q)
mout = stypes.emptyDoubleMatrix()
libspice.q2m_c(q, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Find the rotation matrix corresponding to a specified unit quaternion.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/q2m_c.html\n\n :param q: A unit quaternion.\n :type q: 4-Element Array of floats\n :return: A rotation matrix corresponding to q\n :rtype: 3x3-Element Array of flo... |
Please provide a description of the function:def qcktrc(tracelen=_default_len_out):
tracestr = stypes.stringToCharP(tracelen)
tracelen = ctypes.c_int(tracelen)
libspice.qcktrc_c(tracelen, tracestr)
return stypes.toPythonString(tracestr) | [
"\n Return a string containing a traceback.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qcktrc_c.html\n\n :param tracelen: Maximum length of output traceback string.\n :type tracelen: int\n :return: A traceback string.\n :rtype: str\n "
] |
Please provide a description of the function:def qdq2av(q, dq):
q = stypes.toDoubleVector(q)
dq = stypes.toDoubleVector(dq)
vout = stypes.emptyDoubleVector(3)
libspice.qdq2av_c(q, dq, vout)
return stypes.cVectorToPython(vout) | [
"\n Derive angular velocity from a unit quaternion and its derivative\n with respect to time.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qdq2av_c.html\n\n :param q: Unit SPICE quaternion.\n :type q: 4-Element Array of floats\n :param dq: Derivative of q with respect to time\n :... |
Please provide a description of the function:def qxq(q1, q2):
q1 = stypes.toDoubleVector(q1)
q2 = stypes.toDoubleVector(q2)
vout = stypes.emptyDoubleVector(4)
libspice.qxq_c(q1, q2, vout)
return stypes.cVectorToPython(vout) | [
"\n Multiply two quaternions.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qxq_c.html\n\n :param q1: First SPICE quaternion.\n :type q1: 4-Element Array of floats\n :param q2: Second SPICE quaternion.\n :type q2: 4-Element Array of floats\n :return: Product of q1 and q2.\n :rt... |
Please provide a description of the function:def radrec(inrange, re, dec):
inrange = ctypes.c_double(inrange)
re = ctypes.c_double(re)
dec = ctypes.c_double(dec)
rectan = stypes.emptyDoubleVector(3)
libspice.radrec_c(inrange, re, dec, rectan)
return stypes.cVectorToPython(rectan) | [
"\n Convert from range, right ascension, and declination to rectangular\n coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/radrec_c.html\n\n :param inrange: Distance of a point from the origin.\n :type inrange: float\n :param re: Right ascension of point in radians.\n :t... |
Please provide a description of the function:def rav2xf(rot, av):
rot = stypes.toDoubleMatrix(rot)
av = stypes.toDoubleVector(av)
xform = stypes.emptyDoubleMatrix(x=6, y=6)
libspice.rav2xf_c(rot, av, xform)
return stypes.cMatrixToNumpy(xform) | [
"\n This routine determines a state transformation matrix\n from a rotation matrix and the angular velocity of the\n rotation.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rav2xf_c.html\n\n :param rot: Rotation matrix.\n :type rot: 3x3-Element Array of floats\n :param av: Angular... |
Please provide a description of the function:def raxisa(matrix):
matrix = stypes.toDoubleMatrix(matrix)
axis = stypes.emptyDoubleVector(3)
angle = ctypes.c_double()
libspice.raxisa_c(matrix, axis, ctypes.byref(angle))
return stypes.cVectorToPython(axis), angle.value | [
"\n Compute the axis of the rotation given by an input matrix\n and the angle of the rotation about that axis.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/raxisa_c.html\n\n :param matrix: Rotation matrix.\n :type matrix: 3x3-Element Array of floats\n :return: Axis of the rotation, ... |
Please provide a description of the function:def rdtext(file, lenout=_default_len_out): # pragma: no cover
file = stypes.stringToCharP(file)
line = stypes.stringToCharP(lenout)
lenout = ctypes.c_int(lenout)
eof = ctypes.c_int()
libspice.rdtext_c(file, lenout, line, ctypes.byref(eof))
retur... | [
"\n Read the next line of text from a text file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rdtext_c.html\n\n :param file: Name of text file.\n :type file: str\n :param lenout: Available room in output line.\n :type lenout: int\n :return: Next line from the text file, End-of-fi... |
Please provide a description of the function:def reccyl(rectan):
rectan = stypes.toDoubleVector(rectan)
radius = ctypes.c_double(0)
lon = ctypes.c_double(0)
z = ctypes.c_double(0)
libspice.reccyl_c(rectan, ctypes.byref(radius), ctypes.byref(lon),
ctypes.byref(z))
retur... | [
"\n Convert from rectangular to cylindrical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reccyl_c.html\n\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-Element Array of floats\n :return:\n Distance from z axis,\n Angle (radians... |
Please provide a description of the function:def recgeo(rectan, re, f):
rectan = stypes.toDoubleVector(rectan)
re = ctypes.c_double(re)
f = ctypes.c_double(f)
longitude = ctypes.c_double(0)
latitude = ctypes.c_double(0)
alt = ctypes.c_double(0)
libspice.recgeo_c(rectan, re, f, ctypes.by... | [
"\n Convert from rectangular coordinates to geodetic coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recgeo_c.html\n\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-Element Array of floats\n :param re: Equatorial radius of the reference spheroid.\n :... |
Please provide a description of the function:def reclat(rectan):
rectan = stypes.toDoubleVector(rectan)
radius = ctypes.c_double(0)
longitude = ctypes.c_double(0)
latitude = ctypes.c_double(0)
libspice.reclat_c(rectan, ctypes.byref(radius), ctypes.byref(longitude),
ctypes.... | [
"\n Convert from rectangular coordinates to latitudinal coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reclat_c.html\n\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-Element Array of floats\n :return: Distance from the origin, Longitude in radians, La... |
Please provide a description of the function:def recpgr(body, rectan, re, f):
body = stypes.stringToCharP(body)
rectan = stypes.toDoubleVector(rectan)
re = ctypes.c_double(re)
f = ctypes.c_double(f)
lon = ctypes.c_double()
lat = ctypes.c_double()
alt = ctypes.c_double()
libspice.rec... | [
"\n Convert rectangular coordinates to planetographic coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recpgr_c.html\n\n :param body: Body with which coordinate system is associated.\n :type body: str\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-El... |
Please provide a description of the function: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))
re... | [
"\n Convert rectangular coordinates to range, right ascension, and declination.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html\n\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-Element Array of floats\n :return:\n Distance of the point from... |
Please provide a description of the function:def recsph(rectan):
rectan = stypes.toDoubleVector(rectan)
r = ctypes.c_double()
colat = ctypes.c_double()
lon = ctypes.c_double()
libspice.recsph_c(rectan, ctypes.byref(r), ctypes.byref(colat),
ctypes.byref(lon))
return r.v... | [
"\n Convert from rectangular coordinates to spherical coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html\n\n :param rectan: Rectangular coordinates of a point.\n :type rectan: 3-Element Array of floats\n :return:\n Distance from the origin,\n ... |
Please provide a description of the function:def removc(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.dtype == 0
item = stypes.stringToCharP(item)
libspice.removc_c(item, ctypes.byref(inset)) | [
"\n Remove an item from a character set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removc_c.html\n\n :param item: Item to be removed.\n :type item: str\n :param inset: Set to be updated.\n :type inset: spiceypy.utils.support_types.SpiceCell\n "
] |
Please provide a description of the function:def removd(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.dtype == 1
item = ctypes.c_double(item)
libspice.removd_c(item, ctypes.byref(inset)) | [
"\n Remove an item from a double precision set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removd_c.html\n\n :param item: Item to be removed.\n :type item: float\n :param inset: Set to be updated.\n :type inset: spiceypy.utils.support_types.SpiceCell\n "
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.