Code stringlengths 103 85.9k | Summary listlengths 0 94 |
|---|---|
Please provide a description of the function:def removi(item, inset):
assert isinstance(inset, stypes.SpiceCell)
assert inset.dtype == 2
item = ctypes.c_int(item)
libspice.removi_c(item, ctypes.byref(inset)) | [
"\n Remove an item from an integer set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removi_c.html\n\n :param item: Item to be removed.\n :type item: int\n :param inset: Set to be updated.\n :type inset: spiceypy.utils.support_types.SpiceCell\n "
] |
Please provide a description of the function:def reordc(iorder, ndim, lenvals, array):
iorder = stypes.toIntVector(iorder)
ndim = ctypes.c_int(ndim)
lenvals = ctypes.c_int(lenvals + 1)
array = stypes.listToCharArray(array, xLen=lenvals, yLen=ndim)
libspice.reordc_c(iorder, ndim, lenvals, array)... | [
"\n Re-order the elements of an array of character strings\n according to a given order vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordc_c.html\n\n :param iorder: Order vector to be used to re-order array.\n :type iorder: Array of ints\n :param ndim: Dimension of array.\n... |
Please provide a description of the function:def reordd(iorder, ndim, array):
iorder = stypes.toIntVector(iorder)
ndim = ctypes.c_int(ndim)
array = stypes.toDoubleVector(array)
libspice.reordd_c(iorder, ndim, array)
return stypes.cVectorToPython(array) | [
"\n Re-order the elements of a double precision array according to\n a given order vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordd_c.html\n\n :param iorder: Order vector to be used to re-order array.\n :type iorder: Array of ints\n :param ndim: Dimension of array.\n :... |
Please provide a description of the function:def reordi(iorder, ndim, array):
iorder = stypes.toIntVector(iorder)
ndim = ctypes.c_int(ndim)
array = stypes.toIntVector(array)
libspice.reordi_c(iorder, ndim, array)
return stypes.cVectorToPython(array) | [
"\n Re-order the elements of an integer array according to\n a given order vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordi_c.html\n\n :param iorder: Order vector to be used to re-order array.\n :type iorder: Array of ints\n :param ndim: Dimension of array.\n :type ndi... |
Please provide a description of the function:def reordl(iorder, ndim, array):
iorder = stypes.toIntVector(iorder)
ndim = ctypes.c_int(ndim)
array = stypes.toIntVector(array)
libspice.reordl_c(iorder, ndim, array)
return stypes.cIntVectorToBoolPython(array) | [
"\n Re-order the elements of a logical (Boolean) array according to\n a given order vector.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordl_c.html\n\n :param iorder: Order vector to be used to re-order array.\n :type iorder: Array of ints\n :param ndim: Dimension of array.\n ... |
Please provide a description of the function:def repmc(instr, marker, value, lenout=None):
if lenout is None:
lenout = ctypes.c_int(len(instr) + len(value) + len(marker) + 15)
instr = stypes.stringToCharP(instr)
marker = stypes.stringToCharP(marker)
value = stypes.stringToCharP(value)
o... | [
"\n Replace a marker with a character string.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmc_c.html\n\n :param instr: Input string.\n :type instr: str\n :param marker: Marker to be replaced.\n :type marker: str\n :param value: Replacement value.\n :type value: str\n :pa... |
Please provide a description of the function:def repmct(instr, marker, value, repcase, lenout=None):
if lenout is None:
lenout = ctypes.c_int(len(instr) + len(marker) + 15)
instr = stypes.stringToCharP(instr)
marker = stypes.stringToCharP(marker)
value = ctypes.c_int(value)
repcase = ct... | [
"\n Replace a marker with the text representation of a\n cardinal number.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmc_c.html\n\n :param instr: Input string.\n :type instr: str\n :param marker: Marker to be replaced.\n :type marker: str\n :param value: Replacement value.... |
Please provide a description of the function:def repmd(instr, marker, value, sigdig):
lenout = ctypes.c_int(len(instr) + len(marker) + 15)
instr = stypes.stringToCharP(instr)
marker = stypes.stringToCharP(marker)
value = ctypes.c_double(value)
sigdig = ctypes.c_int(sigdig)
out = stypes.stri... | [
"\n Replace a marker with a double precision number.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmd_c.html\n\n :param instr: Input string.\n :type instr: str\n :param marker: Marker to be replaced.\n :type marker: str\n :param value: Replacement value.\n :type value: float... |
Please provide a description of the function:def repmf(instr, marker, value, sigdig, informat, lenout=None):
if lenout is None:
lenout = ctypes.c_int(len(instr) + len(marker) + 15)
instr = stypes.stringToCharP(instr)
marker = stypes.stringToCharP(marker)
value = ctypes.c_double(value)
s... | [
"\n Replace a marker in a string with a formatted double precision value.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmf_c.html\n\n :param instr: Input string.\n :type instr: str\n :param marker: Marker to be replaced.\n :type marker: str\n :param value: Replacement value.\n ... |
Please provide a description of the function:def repmi(instr, marker, value, lenout=None):
if lenout is None:
lenout = ctypes.c_int(len(instr) + len(marker) + 15)
instr = stypes.stringToCharP(instr)
marker = stypes.stringToCharP(marker)
value = ctypes.c_int(value)
out = stypes.stringToC... | [
"\n Replace a marker with an integer.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmi_c.html\n\n :param instr: Input string.\n :type instr: str\n :param marker: Marker to be replaced.\n :type marker: str\n :param value: Replacement value.\n :type value: int\n :param leno... |
Please provide a description of the function:def rotate(angle, iaxis):
angle = ctypes.c_double(angle)
iaxis = ctypes.c_int(iaxis)
mout = stypes.emptyDoubleMatrix()
libspice.rotate_c(angle, iaxis, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Calculate the 3x3 rotation matrix generated by a rotation\n of a specified angle about a specified axis. This rotation\n is thought of as rotating the coordinate system.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotate_c.html\n\n :param angle: Angle of rotation (radians).\n :... |
Please provide a description of the function:def rotmat(m1, angle, iaxis):
m1 = stypes.toDoubleMatrix(m1)
angle = ctypes.c_double(angle)
iaxis = ctypes.c_int(iaxis)
mout = stypes.emptyDoubleMatrix()
libspice.rotmat_c(m1, angle, iaxis, mout)
return stypes.cMatrixToNumpy(mout) | [
"\n Rotmat applies a rotation of angle radians about axis iaxis to a\n matrix. This rotation is thought of as rotating the coordinate\n system.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotmat_c.html\n\n :param m1: Matrix to be rotated.\n :type m1: 3x3-Element Array of floats\n ... |
Please provide a description of the function:def rotvec(v1, angle, iaxis):
v1 = stypes.toDoubleVector(v1)
angle = ctypes.c_double(angle)
iaxis = ctypes.c_int(iaxis)
vout = stypes.emptyDoubleVector(3)
libspice.rotvec_c(v1, angle, iaxis, vout)
return stypes.cVectorToPython(vout) | [
"\n Transform a vector to a new coordinate system rotated by angle\n radians about axis iaxis. This transformation rotates v1 by\n angle radians about the specified axis.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotvec_c.html\n\n :param v1: Vector whose coordinate system is to be ... |
Please provide a description of the function:def rquad(a, b, c):
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
root1 = stypes.emptyDoubleVector(2)
root2 = stypes.emptyDoubleVector(2)
libspice.rquad_c(a, b, c, root1, root2)
return stypes.cVectorToPython(root1), sty... | [
"\n Find the roots of a quadratic equation.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rquad_c.html\n\n :param a: Coefficient of quadratic term.\n :type a: float\n :param b: Coefficient of linear term.\n :type b: float\n :param c: Constant.\n :type c: float\n :return: Roo... |
Please provide a description of the function:def saelgv(vec1, vec2):
vec1 = stypes.toDoubleVector(vec1)
vec2 = stypes.toDoubleVector(vec2)
smajor = stypes.emptyDoubleVector(3)
sminor = stypes.emptyDoubleVector(3)
libspice.saelgv_c(vec1, vec2, smajor, sminor)
return stypes.cVectorToPython(sm... | [
"\n Find semi-axis vectors of an ellipse generated by two arbitrary\n three-dimensional vectors.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/saelgv_c.html\n\n :param vec1: First vector used to generate an ellipse.\n :type vec1: 3-Element Array of floats\n :param vec2: Second vector... |
Please provide a description of the function:def scard(incard, cell):
assert isinstance(cell, stypes.SpiceCell)
incard = ctypes.c_int(incard)
libspice.scard_c(incard, ctypes.byref(cell))
return cell | [
"\n Set the cardinality of a SPICE cell of any data type.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scard_c.html\n\n :param incard: Cardinality of (number of elements in) the cell.\n :type incard: int\n :param cell: The cell.\n :type cell: spiceypy.utils.support_types.SpiceCell\n... |
Please provide a description of the function:def scdecd(sc, sclkdp, lenout=_default_len_out, MXPART=None):
# todo: figure out how to use mxpart
sc = ctypes.c_int(sc)
sclkdp = ctypes.c_double(sclkdp)
sclkch = stypes.stringToCharP(" " * lenout)
lenout = ctypes.c_int(lenout)
libspice.scdecd_c(... | [
"\n Convert double precision encoding of spacecraft clock time into\n a character representation.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scdecd_c.html\n\n :param sc: NAIF spacecraft identification code.\n :type sc: int\n :param sclkdp: Encoded representation of a spacecraft cl... |
Please provide a description of the function:def sce2c(sc, et):
sc = ctypes.c_int(sc)
et = ctypes.c_double(et)
sclkdp = ctypes.c_double()
libspice.sce2c_c(sc, et, ctypes.byref(sclkdp))
return sclkdp.value | [
"\n Convert ephemeris seconds past J2000 (ET) to continuous encoded\n spacecraft clock \"ticks\". Non-integral tick values may be\n returned.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2c_c.html\n\n :param sc: NAIF spacecraft ID code.\n :type sc: int\n :param et: Ephemeris ... |
Please provide a description of the function:def sce2s(sc, et, lenout=_default_len_out):
sc = ctypes.c_int(sc)
et = ctypes.c_double(et)
sclkch = stypes.stringToCharP(" " * lenout)
lenout = ctypes.c_int(lenout)
libspice.sce2s_c(sc, et, lenout, sclkch)
return stypes.toPythonString(sclkch) | [
"\n Convert an epoch specified as ephemeris seconds past J2000 (ET) to a\n character string representation of a spacecraft clock value (SCLK).\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2s_c.html\n\n :param sc: NAIF spacecraft clock ID code.\n :type sc: int\n :param et: Ephemer... |
Please provide a description of the function:def sce2t(sc, et):
sc = ctypes.c_int(sc)
et = ctypes.c_double(et)
sclkdp = ctypes.c_double()
libspice.sce2t_c(sc, et, ctypes.byref(sclkdp))
return sclkdp.value | [
"\n Convert ephemeris seconds past J2000 (ET) to integral\n encoded spacecraft clock (\"ticks\"). For conversion to\n fractional ticks, (required for C-kernel production), see\n the routine :func:`sce2c`.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2t_c.html\n\n :param sc: NAIF ... |
Please provide a description of the function:def scencd(sc, sclkch, MXPART=None):
sc = ctypes.c_int(sc)
sclkch = stypes.stringToCharP(sclkch)
sclkdp = ctypes.c_double()
libspice.scencd_c(sc, sclkch, ctypes.byref(sclkdp))
return sclkdp.value | [
"\n Encode character representation of spacecraft clock time into a\n double precision number.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scencd_c.html\n\n :param sc: NAIF spacecraft identification code.\n :type sc: int\n :param sclkch: Character representation of a spacecraft clo... |
Please provide a description of the function:def scfmt(sc, ticks, lenout=_default_len_out):
sc = ctypes.c_int(sc)
ticks = ctypes.c_double(ticks)
clkstr = stypes.stringToCharP(lenout)
lenout = ctypes.c_int(lenout)
libspice.scfmt_c(sc, ticks, lenout, clkstr)
return stypes.toPythonString(clkst... | [
"\n Convert encoded spacecraft clock ticks to character clock format.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scfmt_c.html\n\n :param sc: NAIF spacecraft identification code.\n :type sc: int\n :param ticks: Encoded representation of a spacecraft clock count.\n :type ticks: floa... |
Please provide a description of the function:def scpart(sc):
sc = ctypes.c_int(sc)
nparts = ctypes.c_int()
pstart = stypes.emptyDoubleVector(9999)
pstop = stypes.emptyDoubleVector(9999)
libspice.scpart_c(sc, nparts, pstart, pstop)
return stypes.cVectorToPython(pstart)[0:nparts.value], stype... | [
"\n Get spacecraft clock partition information from a spacecraft\n clock kernel file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scpart_c.html\n\n :param sc: NAIF spacecraft identification code.\n :type sc: int\n :return:\n The number of spacecraft clock partitions,\n ... |
Please provide a description of the function:def scs2e(sc, sclkch):
sc = ctypes.c_int(sc)
sclkch = stypes.stringToCharP(sclkch)
et = ctypes.c_double()
libspice.scs2e_c(sc, sclkch, ctypes.byref(et))
return et.value | [
"\n Convert a spacecraft clock string to ephemeris seconds past J2000 (ET).\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scs2e_c.html\n\n :param sc: NAIF integer code for a spacecraft.\n :type sc: int\n :param sclkch: An SCLK string.\n :type sclkch: str\n :return: Ephemeris time,... |
Please provide a description of the function:def sct2e(sc, sclkdp):
sc = ctypes.c_int(sc)
sclkdp = ctypes.c_double(sclkdp)
et = ctypes.c_double()
libspice.sct2e_c(sc, sclkdp, ctypes.byref(et))
return et.value | [
"\n Convert encoded spacecraft clock (\"ticks\") to ephemeris\n seconds past J2000 (ET).\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sct2e_c.html\n\n :param sc: NAIF spacecraft ID code.\n :type sc: int\n :param sclkdp: SCLK, encoded as ticks since spacecraft clock start.\n :type... |
Please provide a description of the function:def sctiks(sc, clkstr):
sc = ctypes.c_int(sc)
clkstr = stypes.stringToCharP(clkstr)
ticks = ctypes.c_double()
libspice.sctiks_c(sc, clkstr, ctypes.byref(ticks))
return ticks.value | [
"\n Convert a spacecraft clock format string to number of \"ticks\".\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sctiks_c.html\n\n :param sc: NAIF spacecraft identification code.\n :type sc: int\n :param clkstr: Character representation of a spacecraft clock.\n :type clkstr: str\n ... |
Please provide a description of the function:def sdiff(a, b):
assert isinstance(a, stypes.SpiceCell)
assert isinstance(b, stypes.SpiceCell)
assert a.dtype == b.dtype
# The next line was redundant with the [raise NotImplementedError] line below
# assert a.dtype == 0 or a.dtype == 1 or a.dtype ==... | [
"\n Take the symmetric difference of two sets of any data type to form a\n third set.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sdiff_c.html\n\n :param a: First input set.\n :type a: spiceypy.utils.support_types.SpiceCell\n :param b: Second input set.\n :type b: spiceypy.utils... |
Please provide a description of the function:def set_c(a, op, b):
assert isinstance(a, stypes.SpiceCell)
assert isinstance(b, stypes.SpiceCell)
assert a.dtype == b.dtype
assert isinstance(op, str)
op = stypes.stringToCharP(op)
return bool(libspice.set_c(ctypes.byref(a), op, ctypes.byref(b))... | [
"\n Given a relational operator, compare two sets of any data type.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/set_c.html\n\n :param a: First set.\n :type a: spiceypy.utils.support_types.SpiceCell\n :param op: Comparison operator.\n :type op: str\n :param b: Second set.\n :t... |
Please provide a description of the function:def shellc(ndim, lenvals, array):
# This works! looks like this is a mutable 2d char array
array = stypes.listToCharArray(array, xLen=lenvals, yLen=ndim)
ndim = ctypes.c_int(ndim)
lenvals = ctypes.c_int(lenvals)
libspice.shellc_c(ndim, lenvals, ctype... | [
"\n Sort an array of character strings according to the ASCII\n collating sequence using the Shell Sort algorithm.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shellc_c.html\n\n :param ndim: Dimension of the array.\n :type ndim: int\n :param lenvals: String length.\n :type lenval... |
Please provide a description of the function:def shelld(ndim, array):
# Works!, use this as example for "I/O" parameters
array = stypes.toDoubleVector(array)
ndim = ctypes.c_int(ndim)
libspice.shelld_c(ndim, ctypes.cast(array, ctypes.POINTER(ctypes.c_double)))
return stypes.cVectorToPython(arra... | [
"\n Sort a double precision array using the Shell Sort algorithm.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shelld_c.html\n\n :param ndim: Dimension of the array.\n :type ndim: int\n :param array: The array to be sorted.\n :type array: Array of floats\n :return: The sorted arr... |
Please provide a description of the function:def shelli(ndim, array):
# Works!, use this as example for "I/O" parameters
array = stypes.toIntVector(array)
ndim = ctypes.c_int(ndim)
libspice.shelli_c(ndim, ctypes.cast(array, ctypes.POINTER(ctypes.c_int)))
return stypes.cVectorToPython(array) | [
"\n Sort an integer array using the Shell Sort algorithm.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shelli_c.html\n\n :param ndim: Dimension of the array.\n :type ndim: int\n :param array: The array to be sorted.\n :type array: Array of ints\n :return: The sorted array.\n :... |
Please provide a description of the function:def sincpt(method, target, et, fixref, abcorr, obsrvr, dref, dvec):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
fixref = stypes.stringToCharP(fixref)
abcorr = stypes.stringToCharP(abcorr)
o... | [
"\n Given an observer and a direction vector defining a ray, compute\n the surface intercept of the ray on a target body at a specified\n epoch, optionally corrected for light time and stellar\n aberration.\n\n This routine supersedes :func:`srfxpt`.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_d... |
Please provide a description of the function:def size(cell):
assert isinstance(cell, stypes.SpiceCell)
return libspice.size_c(ctypes.byref(cell)) | [
"\n Return the size (maximum cardinality) of a SPICE cell of any\n data type.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/size_c.html\n\n :param cell: Input cell.\n :type cell: spiceypy.utils.support_types.SpiceCell\n :return: The size of the input cell.\n :rtype: int\n "
] |
Please provide a description of the function:def sphcyl(radius, colat, slon):
radius = ctypes.c_double(radius)
colat = ctypes.c_double(colat)
slon = ctypes.c_double(slon)
r = ctypes.c_double()
lon = ctypes.c_double()
z = ctypes.c_double()
libspice.sphcyl_c(radius, colat, slon, ctypes.by... | [
"\n This routine converts from spherical coordinates to cylindrical\n coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphcyl_c.html\n\n :param radius: Distance of point from origin.\n :type radius: float\n :param colat: Polar angle (co-latitude in radians) of point.\n :... |
Please provide a description of the function:def sphlat(r, colat, lons):
r = ctypes.c_double(r)
colat = ctypes.c_double(colat)
lons = ctypes.c_double(lons)
radius = ctypes.c_double()
lon = ctypes.c_double()
lat = ctypes.c_double()
libspice.sphcyl_c(r, colat, lons, ctypes.byref(radius), ... | [
"\n Convert from spherical coordinates to latitudinal coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphlat_c.html\n\n :param r: Distance of the point from the origin.\n :type r: float\n :param colat: Angle of the point from positive z axis (radians).\n :type colat: float... |
Please provide a description of the function:def sphrec(r, colat, lon):
r = ctypes.c_double(r)
colat = ctypes.c_double(colat)
lon = ctypes.c_double(lon)
rectan = stypes.emptyDoubleVector(3)
libspice.sphrec_c(r, colat, lon, rectan)
return stypes.cVectorToPython(rectan) | [
"\n Convert from spherical coordinates to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphrec_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 positive Z-axis.\n :type colat: float\n :p... |
Please provide a description of the function:def spkacs(targ, et, ref, abcorr, obs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
obs = ctypes.c_int(obs)
starg = stypes.emptyDoubleVector(6)
lt = ctypes.c_double(... | [
"\n Return the state (position and velocity) of a target body\n relative to an observer, optionally corrected for light time\n and stellar aberration, expressed relative to an inertial\n reference frame.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkacs_c.html\n\n :param targ: Tar... |
Please provide a description of the function:def spkapo(targ, et, ref, sobs, abcorr):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
sobs = stypes.toDoubleVector(sobs)
ptarg = stypes.emptyDoubleVector(3)
lt = ctyp... | [
"\n Return the position of a target body relative to an observer,\n optionally corrected for light time and stellar aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkapo_c.html\n\n :param targ: Target body.\n :type targ: int\n :param et: Observer epoch.\n :type et: floa... |
Please provide a description of the function:def spkapp(targ, et, ref, sobs, abcorr):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
sobs = stypes.toDoubleVector(sobs)
starg = stypes.emptyDoubleVector(6)
lt = ctyp... | [
"\n Deprecated: This routine has been superseded by :func:`spkaps`. This\n routine is supported for purposes of backward compatibility only.\n\n Return the state (position and velocity) of a target body\n relative to an observer, optionally corrected for light time and\n stellar aberration.\n\n ht... |
Please provide a description of the function:def spkaps(targ, et, ref, abcorr, stobs, accobs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
stobs = stypes.toDoubleVector(stobs)
accobs = stypes.toDoubleVector(accobs)... | [
"\n Given the state and acceleration of an observer relative to the\n solar system barycenter, return the state (position and velocity)\n of a target body relative to the observer, optionally corrected\n for light time and stellar aberration. All input and output\n vectors are expressed relative to a... |
Please provide a description of the function:def spk14a(handle, ncsets, coeffs, epochs):
handle = ctypes.c_int(handle)
ncsets = ctypes.c_int(ncsets)
coeffs = stypes.toDoubleVector(coeffs)
epochs = stypes.toDoubleVector(epochs)
libspice.spk14a_c(handle, ncsets, coeffs, epochs) | [
"\n Add data to a type 14 SPK segment associated with handle. See\n also :func:`spk14b` and :func:`spk14e`.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spk14a_c.html\n\n :param handle: The handle of an SPK file open for writing.\n :type handle: int\n :param ncsets: The number of co... |
Please provide a description of the function:def spk14b(handle, segid, body, center, framename, first, last, chbdeg):
handle = ctypes.c_int(handle)
segid = stypes.stringToCharP(segid)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
framename = stypes.stringToCharP(framename)
first =... | [
"\n Begin a type 14 SPK segment in the SPK file associated with\n handle. See also :func:`spk14a` and :func:`spk14e`.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spk14b_c.html\n\n :param handle: The handle of an SPK file open for writing.\n :type handle: int\n :param segid: The str... |
Please provide a description of the function:def spkcov(spk, idcode, cover=None):
spk = stypes.stringToCharP(spk)
idcode = ctypes.c_int(idcode)
if cover is None:
cover = stypes.SPICEDOUBLE_CELL(2000)
else:
assert isinstance(cover, stypes.SpiceCell)
assert cover.is_double()
... | [
"\n Find the coverage window for a specified ephemeris object in a\n specified SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcov_c.html\n\n :param spk: Name of SPK file.\n :type spk: str\n :param idcode: ID code of ephemeris object.\n :type idcode: int\n :param cov... |
Please provide a description of the function:def spkcpo(target, et, outref, refloc, abcorr, obspos, obsctr, obsref):
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
outref = stypes.stringToCharP(outref)
refloc = stypes.stringToCharP(refloc)
abcorr = stypes.stringToCharP(abcorr)
... | [
"\n Return the state of a specified target relative to an \"observer,\"\n where the observer has constant position in a specified reference\n frame. The observer's position is provided by the calling program\n rather than by loaded SPK files.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspic... |
Please provide a description of the function:def spkcpt(trgpos, trgctr, trgref, et, outref, refloc, abcorr, obsrvr):
trgpos = stypes.toDoubleVector(trgpos)
trgctr = stypes.stringToCharP(trgctr)
trgref = stypes.stringToCharP(trgref)
et = ctypes.c_double(et)
outref = stypes.stringToCharP(outref)
... | [
"\n Return the state, relative to a specified observer, of a target\n having constant position in a specified reference frame. The\n target's position is provided by the calling program rather than by\n loaded SPK files.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcpt_c.html\n\n ... |
Please provide a description of the function:def spkcvo(target, et, outref, refloc, abcorr, obssta, obsepc, obsctr, obsref):
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
outref = stypes.stringToCharP(outref)
refloc = stypes.stringToCharP(refloc)
abcorr = stypes.stringToCharP(a... | [
"\n Return the state of a specified target relative to an \"observer,\"\n where the observer has constant velocity in a specified reference\n frame. The observer's state is provided by the calling program\n rather than by loaded SPK files.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/... |
Please provide a description of the function:def spkcvt(trgsta, trgepc, trgctr, trgref, et, outref, refloc, abcorr, obsrvr):
trgpos = stypes.toDoubleVector(trgsta)
trgepc = ctypes.c_double(trgepc)
trgctr = stypes.stringToCharP(trgctr)
trgref = stypes.stringToCharP(trgref)
et = ctypes.c_double(e... | [
"\n Return the state, relative to a specified observer, of a target\n having constant velocity in a specified reference frame. The\n target's state is provided by the calling program rather than by\n loaded SPK files.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcvt_c.html\n\n :p... |
Please provide a description of the function:def spkez(targ, et, ref, abcorr, obs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
obs = ctypes.c_int(obs)
starg = stypes.emptyDoubleVector(6)
lt = ctypes.c_double()... | [
"\n Return the state (position and velocity) of a target body\n relative to an observing body, optionally corrected for light\n time (planetary aberration) and stellar aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkez_c.html\n\n :param targ: Target body.\n :type targ: i... |
Please provide a description of the function:def spkezp(targ, et, ref, abcorr, obs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
obs = ctypes.c_int(obs)
ptarg = stypes.emptyDoubleVector(3)
lt = ctypes.c_double(... | [
"\n Return the position of a target body relative to an observing\n body, optionally corrected for light time (planetary aberration)\n and stellar aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezp_c.html\n\n :param targ: Target body NAIF ID code.\n :type targ: int\n ... |
Please provide a description of the function:def spkezr(targ, et, ref, abcorr, obs):
targ = stypes.stringToCharP(targ)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
obs = stypes.stringToCharP(obs)
starg = stypes.emptyDoubleVector(6)
lt = ctypes.c_double()
if hasa... | [
"\n Return the state (position and velocity) of a target body\n relative to an observing body, optionally corrected for light\n time (planetary aberration) and stellar aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezr_c.html\n\n :param targ: Target body name.\n :type t... |
Please provide a description of the function:def spkgeo(targ, et, ref, obs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
obs = ctypes.c_int(obs)
state = stypes.emptyDoubleVector(6)
lt = ctypes.c_double()
libspice.spkgeo_c(targ, et, ref, obs, state,... | [
"\n Compute the geometric state (position and velocity) of a target\n body relative to an observing body.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkgeo_c.html\n\n :param targ: Target body.\n :type targ: int\n :param et: Target epoch.\n :type et: float\n :param ref: Targe... |
Please provide a description of the function:def spkgps(targ, et, ref, obs):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
obs = ctypes.c_int(obs)
position = stypes.emptyDoubleVector(3)
lt = ctypes.c_double()
libspice.spkgps_c(targ, et, ref, obs, pos... | [
"\n Compute the geometric position of a target body relative to an\n observing body.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkgps_c.html\n\n :param targ: Target body.\n :type targ: int\n :param et: Target epoch.\n :type et: float\n :param ref: Target reference frame.\n ... |
Please provide a description of the function:def spklef(filename):
filename = stypes.stringToCharP(filename)
handle = ctypes.c_int()
libspice.spklef_c(filename, ctypes.byref(handle))
return handle.value | [
"\n Load an ephemeris file for use by the readers. Return that file's\n handle, to be used by other SPK routines to refer to the file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spklef_c.html\n\n :param filename: Name of the file to be loaded.\n :type filename: str\n :return: Loa... |
Please provide a description of the function:def spkltc(targ, et, ref, abcorr, stobs):
assert len(stobs) == 6
targ = stypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
stobs = stypes.toDoubleVector(stobs)
starg = stypes.empt... | [
"\n Return the state (position and velocity) of a target body\n relative to an observer, optionally corrected for light time,\n expressed relative to an inertial reference frame.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkltc_c.html\n\n :param targ: Target body.\n :type targ: i... |
Please provide a description of the function:def spkobj(spk, outCell=None):
spk = stypes.stringToCharP(spk)
if not outCell:
outCell = stypes.SPICEINT_CELL(1000)
assert isinstance(outCell, stypes.SpiceCell)
assert outCell.dtype == 2
libspice.spkobj_c(spk, ctypes.byref(outCell))
retur... | [
"\n Find the set of ID codes of all objects in a specified SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkobj_c.html\n\n :param spk: Name of SPK file.\n :type spk: str\n :param outCell: Optional Spice Int Cell.\n :type outCell: spiceypy.utils.support_types.SpiceCell\n ... |
Please provide a description of the function:def spkopa(filename):
filename = stypes.stringToCharP(filename)
handle = ctypes.c_int()
libspice.spkopa_c(filename, ctypes.byref(handle))
return handle.value | [
"\n Open an existing SPK file for subsequent write.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkopa_c.html\n\n :param filename: The name of an existing SPK file.\n :type filename: str\n :return: A handle attached to the SPK file opened to append.\n :rtype: int\n "
] |
Please provide a description of the function:def spkopn(filename, ifname, ncomch):
filename = stypes.stringToCharP(filename)
ifname = stypes.stringToCharP(ifname)
ncomch = ctypes.c_int(ncomch)
handle = ctypes.c_int()
libspice.spkopn_c(filename, ifname, ncomch, ctypes.byref(handle))
return h... | [
"\n Create a new SPK file, returning the handle of the opened file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkopn_c.html\n\n :param filename: The name of the new SPK file to be created.\n :type filename: str\n :param ifname: The internal filename for the SPK file.\n :type ifna... |
Please provide a description of the function:def spkpds(body, center, framestr, typenum, first, last):
body = ctypes.c_int(body)
center = ctypes.c_int(center)
framestr = stypes.stringToCharP(framestr)
typenum = ctypes.c_int(typenum)
first = ctypes.c_double(first)
last = ctypes.c_double(last... | [
"\n Perform routine error checks and if all check pass, pack the\n descriptor for an SPK segment\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpds_c.html\n\n :param body: The NAIF ID code for the body of the segment.\n :type body: int\n :param center: The center of motion for body... |
Please provide a description of the function:def spkpos(targ, et, ref, abcorr, obs):
targ = stypes.stringToCharP(targ)
ref = stypes.stringToCharP(ref)
abcorr = stypes.stringToCharP(abcorr)
obs = stypes.stringToCharP(obs)
ptarg = stypes.emptyDoubleVector(3)
lt = ctypes.c_double()
if hasa... | [
"\n Return the position of a target body relative to an observing\n body, optionally corrected for light time (planetary aberration)\n and stellar aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpos_c.html\n\n :param targ: Target body name.\n :type targ: str\n :param ... |
Please provide a description of the function:def spkpvn(handle, descr, et):
handle = ctypes.c_int(handle)
descr = stypes.toDoubleVector(descr)
et = ctypes.c_double(et)
ref = ctypes.c_int()
state = stypes.emptyDoubleVector(6)
center = ctypes.c_int()
libspice.spkpvn_c(handle, descr, et, c... | [
"\n For a specified SPK segment and time, return the state (position and\n velocity) of the segment's target body relative to its center of\n motion.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpvn_c.html\n\n :param handle: File handle.\n :type handle: int\n :param descr: Seg... |
Please provide a description of the function:def spksfs(body, et, idlen):
# spksfs has a Parameter SIDLEN,
# sounds like an optional but is that possible?
body = ctypes.c_int(body)
et = ctypes.c_double(et)
idlen = ctypes.c_int(idlen)
handle = ctypes.c_int()
descr = stypes.emptyDoubleVec... | [
"\n Search through loaded SPK files to find the highest-priority segment\n applicable to the body and time specified.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spksfs_c.html\n\n :param body: Body ID.\n :type body: int\n :param et: Ephemeris time.\n :type et: float\n :param ... |
Please provide a description of the function:def spkssb(targ, et, ref):
targ = ctypes.c_int(targ)
et = ctypes.c_double(et)
ref = stypes.stringToCharP(ref)
starg = stypes.emptyDoubleVector(6)
libspice.spkssb_c(targ, et, ref, starg)
return stypes.cVectorToPython(starg) | [
"\n Return the state (position and velocity) of a target body\n relative to the solar system barycenter.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkssb_c.html\n\n :param targ: Target body.\n :type targ: int\n :param et: Target epoch.\n :type et: float\n :param ref: Target... |
Please provide a description of the function:def spksub(handle, descr, identin, begin, end, newh):
assert len(descr) is 5
handle = ctypes.c_int(handle)
descr = stypes.toDoubleVector(descr)
identin = stypes.stringToCharP(identin)
begin = ctypes.c_double(begin)
end = ctypes.c_double(end)
... | [
"\n Extract a subset of the data in an SPK segment into a\n separate segment.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spksub_c.html\n\n :param handle: Handle of source segment.\n :type handle: int\n :param descr: Descriptor of source segment.\n :type descr: 5-Element Array o... |
Please provide a description of the function:def spkuds(descr):
assert len(descr) is 5
descr = stypes.toDoubleVector(descr)
body = ctypes.c_int()
center = ctypes.c_int()
framenum = ctypes.c_int()
typenum = ctypes.c_int()
first = ctypes.c_double()
last = ctypes.c_double()
begin =... | [
"\n Unpack the contents of an SPK segment descriptor.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkuds_c.html\n\n :param descr: An SPK segment descriptor.\n :type descr: 5-Element Array of floats\n :return:\n The NAIF ID code for the body of the segment,\n The ... |
Please provide a description of the function:def spkw02(handle, body, center, inframe, first, last, segid, intlen, n, polydg,
cdata, btime):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
first = ctypes.c_... | [
"\n Write a type 2 segment to an SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw02_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: Body code for ephemeris object.\n :type body: int\n :param center: Body code for the... |
Please provide a description of the function:def spkw05(handle, body, center, inframe, first, last, segid, gm, n, states,
epochs):
# see libspice args for solution to array[][N] problem
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = st... | [
"\n Write an SPK segment of type 5 given a time-ordered set of\n discrete states and epochs, and the gravitational parameter\n of a central body.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw05_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int... |
Please provide a description of the function:def spkw08(handle, body, center, inframe, first, last, segid, degree, n, states,
epoch1, step):
# see libspice args for solution to array[][N] problem
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
in... | [
"\n Write a type 8 segment to an SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw08_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: NAIF code for an ephemeris object.\n :type body: int\n :param center: NAIF code for ... |
Please provide a description of the function:def spkw09(handle, body, center, inframe, first, last, segid, degree, n, states,
epochs):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
first = ctypes.c_double... | [
"\n Write a type 9 segment to an SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw09_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: NAIF code for an ephemeris object.\n :type body: int\n :param center: NAIF code for ... |
Please provide a description of the function:def spkw10(handle, body, center, inframe, first, last, segid, consts, n, elems,
epochs):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
first = ctypes.c_double(... | [
"\n Write an SPK type 10 segment to the DAF open and attached to\n the input handle.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw10_c.html\n\n :param handle: The handle of a DAF file open for writing.\n :type handle: int\n :param body: The NAIF ID code for the body of the segme... |
Please provide a description of the function:def spkw12(handle, body, center, inframe, first, last, segid, degree, n, states,
epoch0, step):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
first = ctypes.c_... | [
"\n Write a type 12 segment to an SPK file.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw12_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: NAIF code for an ephemeris object.\n :type body: int\n :param center: NAIF code for... |
Please provide a description of the function:def spkw15(handle, body, center, inframe, first, last, segid, epoch, tp, pa, p,
ecc, j2flg, pv, gm, j2, radius):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
... | [
"\n Write an SPK segment of type 15 given a type 15 data record.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw15_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: Body code for ephemeris object.\n :type body: int\n :param cen... |
Please provide a description of the function:def spkw17(handle, body, center, inframe, first, last, segid, epoch, eqel,
rapol, decpol):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
first = ctypes.c_doubl... | [
"\n Write an SPK segment of type 17 given a type 17 data record.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw17_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: Body code for ephemeris object.\n :type body: int\n :param cen... |
Please provide a description of the function:def spkw18(handle, subtyp, body, center, inframe, first, last, segid, degree, packts, epochs):
handle = ctypes.c_int(handle)
subtyp = ctypes.c_int(subtyp)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(infram... | [
"\n Write a type 18 segment to an SPK file.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw18_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param subtyp: SPK type 18 subtype code.\n :type subtyp: int\n :param body: Body code for ephem... |
Please provide a description of the function:def spkw20(handle, body, center, inframe, first, last, segid, intlen, n, polydg, cdata, dscale, tscale, initjd, initfr):
handle = ctypes.c_int(handle)
body = ctypes.c_int(body)
center = ctypes.c_int(center)
inframe = stypes.stringToCharP(inframe)
... | [
"\n Write a type 20 segment to an SPK file.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw20_c.html\n\n :param handle: Handle of an SPK file open for writing.\n :type handle: int\n :param body: Body code for ephemeris object.\n :type body: int\n :param center: Body code for t... |
Please provide a description of the function:def srfc2s(code, bodyid, srflen=_default_len_out):
code = ctypes.c_int(code)
bodyid = ctypes.c_int(bodyid)
srfstr = stypes.stringToCharP(srflen)
srflen = ctypes.c_int(srflen)
isname = ctypes.c_int()
libspice.srfc2s_c(code, bodyid, srflen, srfst... | [
"\n Translate a surface ID code, together with a body ID code, to the \n corresponding surface name. If no such name exists, return a \n string representation of the surface ID code. \n \n note: from NAIF if isname is false, this case is not treated as an error.\n \n https://naif.jpl.nasa.gov/p... |
Please provide a description of the function:def srfcss(code, bodstr, srflen=_default_len_out):
code = ctypes.c_int(code)
bodstr = stypes.stringToCharP(bodstr)
srfstr = stypes.stringToCharP(srflen)
srflen = ctypes.c_int(srflen)
isname = ctypes.c_int()
libspice.srfcss_c(code, bodstr, srflen,... | [
"\n Translate a surface ID code, together with a body string, to the \n corresponding surface name. If no such surface name exists, \n return a string representation of the surface ID code. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfcss_c.html\n \n :param code: Integer su... |
Please provide a description of the function:def srfnrm(method, target, et, fixref, srfpts):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
fixref = stypes.stringToCharP(fixref)
npts = ctypes.c_int(len(srfpts))
srfpts = stypes.toDo... | [
"\n Map array of surface points on a specified target body to \n the corresponding unit length outward surface normal vectors. \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/t... |
Please provide a description of the function:def srfrec(body, longitude, latitude):
body = ctypes.c_int(body)
longitude = ctypes.c_double(longitude)
latitude = ctypes.c_double(latitude)
rectan = stypes.emptyDoubleVector(3)
libspice.srfrec_c(body, longitude, latitude, rectan)
return stypes.c... | [
"\n Convert planetocentric latitude and longitude of a surface\n point on a specified body to rectangular coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfrec_c.html\n\n :param body: NAIF integer code of an extended body.\n :type body: int\n :param longitude: Longitude o... |
Please provide a description of the function:def srfs2c(srfstr, bodstr):
srfstr = stypes.stringToCharP(srfstr)
bodstr = stypes.stringToCharP(bodstr)
code = ctypes.c_int()
isname = ctypes.c_int()
libspice.srfs2c_c(srfstr, bodstr, ctypes.byref(code), ctypes.byref(isname))
return code.value,... | [
"\n Translate a surface string, together with a body string, to the \n corresponding surface ID code. The input strings may contain \n names or integer ID codes.\n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfs2c_c.html\n \n :param srfstr: Surface name or ID string.\n :type... |
Please provide a description of the function:def srfscc(srfstr, bodyid):
srfstr = stypes.stringToCharP(srfstr)
bodyid = ctypes.c_int(bodyid)
code = ctypes.c_int()
isname = ctypes.c_int()
libspice.srfscc_c(srfstr, bodyid, ctypes.byref(code), ctypes.byref(isname))
return code.value, bool(isna... | [
"\n Translate a surface string, together with a body ID code, to the \n corresponding surface ID code. The input surface string may \n contain a name or an integer ID code. \n \n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfscc_c.html\n \n :param srfstr: Surface name or ID string... |
Please provide a description of the function:def srfxpt(method, target, et, abcorr, obsrvr, dref, dvec):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
abcorr = stypes.stringToCharP(abcorr)
obsrvr = stypes.stringToCharP(obsrvr)
dref = stypes.stringToCharP(dref)
... | [
"\n Deprecated: This routine has been superseded by the CSPICE\n routine :func:`sincpt`. This routine is supported for purposes of\n backward compatibility only.\n\n Given an observer and a direction vector defining a ray, compute the\n surface intercept point of the ray on a target body at a specifi... |
Please provide a description of the function:def ssize(newsize, cell):
assert isinstance(cell, stypes.SpiceCell)
newsize = ctypes.c_int(newsize)
libspice.ssize_c(newsize, ctypes.byref(cell))
return cell | [
"\n Set the size (maximum cardinality) of a CSPICE cell of any data type.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ssize_c.html\n\n :param newsize: Size (maximum cardinality) of the cell.\n :type newsize: int\n :param cell: The cell.\n :type cell: spiceypy.utils.support_types.Sp... |
Please provide a description of the function:def stelab(pobj, vobs):
pobj = stypes.toDoubleVector(pobj)
vobs = stypes.toDoubleVector(vobs)
appobj = stypes.emptyDoubleVector(3)
libspice.stelab_c(pobj, vobs, appobj)
return stypes.cVectorToPython(appobj) | [
"\n Correct the apparent position of an object for stellar\n aberration.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/stelab_c.html\n\n :param pobj: Position of an object with respect to the observer.\n :type pobj: 3-Element Array of floats\n :param vobs:\n Velocity o... |
Please provide a description of the function:def stpool(item, nth, contin, lenout=_default_len_out):
item = stypes.stringToCharP(item)
contin = stypes.stringToCharP(contin)
nth = ctypes.c_int(nth)
strout = stypes.stringToCharP(lenout)
lenout = ctypes.c_int(lenout)
found = ctypes.c_int()
... | [
"\n Retrieve the nth string from the kernel pool variable, where the\n string may be continued across several components of the kernel pool\n variable.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/stpool_c.html\n\n :param item: Name of the kernel pool variable.\n :type item: str\n ... |
Please provide a description of the function:def datetime2et(dt):
lt = ctypes.c_double()
if hasattr(dt, "__iter__"):
ets = []
for t in dt:
libspice.utc2et_c(stypes.stringToCharP(t.isoformat()),ctypes.byref(lt))
checkForSpiceError(None)
ets.append(lt.va... | [
"\n Converts a standard Python datetime to a double precision value \n representing the number of TDB seconds past the J2000 epoch \n corresponding to the input epoch.\n\n https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/time.html#The%20J2000%20Epoch\n\n :param dt: A standard Python datetime\n ... |
Please provide a description of the function:def subpnt(method, target, et, fixref, abcorr, obsrvr):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
fixref = stypes.stringToCharP(fixref)
abcorr = stypes.stringToCharP(abcorr)
obsrvr = styp... | [
"\n Compute the rectangular coordinates of the sub-observer point on\n a target body at a specified epoch, optionally corrected for\n light time and stellar aberration.\n\n This routine supersedes :func:`subpt`.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subpnt_c.html\n\n :param m... |
Please provide a description of the function:def subpt(method, target, et, abcorr, obsrvr):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
abcorr = stypes.stringToCharP(abcorr)
obsrvr = stypes.stringToCharP(obsrvr)
spoint = stypes.emptyDoubleVector(3)
alt = ctyp... | [
"\n Deprecated: This routine has been superseded by the CSPICE\n routine :func:`subpnt`. This routine is supported for purposes of\n backward compatibility only.\n\n Compute the rectangular coordinates of the sub-observer point on\n a target body at a particular epoch, optionally corrected for\n p... |
Please provide a description of the function:def subsol(method, target, et, abcorr, obsrvr):
method = stypes.stringToCharP(method)
target = stypes.stringToCharP(target)
et = ctypes.c_double(et)
abcorr = stypes.stringToCharP(abcorr)
obsrvr = stypes.stringToCharP(obsrvr)
spoint = stypes.empty... | [
"\n Deprecated: This routine has been superseded by the CSPICE\n routine :func:`subslr`. This routine is supported for purposes of\n backward compatibility only.\n\n Determine the coordinates of the sub-solar point on a target\n body as seen by a specified observer at a specified epoch,\n optional... |
Please provide a description of the function:def sumad(array):
n = ctypes.c_int(len(array))
array = stypes.toDoubleVector(array)
return libspice.sumad_c(array, n) | [
"\n Return the sum of the elements of a double precision array.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumad_c.html\n\n :param array: Input Array.\n :type array: Array of floats\n :return: The sum of the array.\n :rtype: float\n "
] |
Please provide a description of the function:def sumai(array):
n = ctypes.c_int(len(array))
array = stypes.toIntVector(array)
return libspice.sumai_c(array, n) | [
"\n Return the sum of the elements of an integer array.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumai_c.html\n\n :param array: Input Array.\n :type array: Array of ints\n :return: The sum of the array.\n :rtype: int\n "
] |
Please provide a description of the function:def surfnm(a, b, c, point):
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
point = stypes.toDoubleVector(point)
normal = stypes.emptyDoubleVector(3)
libspice.surfnm_c(a, b, c, point, normal)
return stypes.cVectorToPython... | [
"\n This routine computes the outward-pointing, unit normal vector\n from a point on the surface of an ellipsoid.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfnm_c.html\n\n :param a: Length of the ellisoid semi-axis along the x-axis.\n :type a: float\n :param b: Length of the el... |
Please provide a description of the function:def surfpt(positn, u, a, b, c):
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
positn = stypes.toDoubleVector(positn)
u = stypes.toDoubleVector(u)
point = stypes.emptyDoubleVector(3)
found = ctypes.c_int()
libspice.s... | [
"\n Determine the intersection of a line-of-sight vector with the\n surface of an ellipsoid.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfpt_c.html\n\n :param positn: Position of the observer in body-fixed frame.\n :type positn: 3-Element Array of floats\n :param u: Vector from ... |
Please provide a description of the function:def surfpv(stvrtx, stdir, a, b, c):
a = ctypes.c_double(a)
b = ctypes.c_double(b)
c = ctypes.c_double(c)
stvrtx = stypes.toDoubleVector(stvrtx)
stdir = stypes.toDoubleVector(stdir)
stx = stypes.emptyDoubleVector(6)
found = ctypes.c_int()
... | [
"\n Find the state (position and velocity) of the surface intercept\n defined by a specified ray, ray velocity, and ellipsoid.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfpv_c.html\n\n :param stvrtx: State of ray's vertex.\n :type stvrtx: 6-Element Array of floats\n :param stdi... |
Please provide a description of the function:def swpool(agent, nnames, lenvals, names):
agent = stypes.stringToCharP(agent)
nnames = ctypes.c_int(nnames)
lenvals = ctypes.c_int(lenvals)
names = stypes.listToCharArray(names)
libspice.swpool_c(agent, nnames, lenvals, names) | [
"\n Add a name to the list of agents to notify whenever a member of\n a list of kernel variables is updated.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/swpool_c.html\n\n :param agent: The name of an agent to be notified after updates.\n :type agent: str\n :param nnames: The number... |
Please provide a description of the function:def sxform(instring, tostring, et):
instring = stypes.stringToCharP(instring)
tostring = stypes.stringToCharP(tostring)
xform = stypes.emptyDoubleMatrix(x=6, y=6)
if hasattr(et, "__iter__"):
xforms = []
for t in et:
libspice.s... | [
"\n Return the state transformation matrix from one frame to\n another at a specified epoch.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sxform_c.html\n\n\n :param instring: Name of the frame to transform from.\n :type instring: str\n :param tostring: Name of the frame to transform... |
Please provide a description of the function:def szpool(name):
name = stypes.stringToCharP(name)
n = ctypes.c_int()
found = ctypes.c_int(0)
libspice.szpool_c(name, ctypes.byref(n), ctypes.byref(found))
return n.value, bool(found.value) | [
"\n Return the kernel pool size limitations.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/szpool_c.html\n\n :param name: Name of the parameter to be returned.\n :type name: str\n :return: Value of parameter specified by name,\n :rtype: int\n "
] |
Please provide a description of the function:def termpt(method, ilusrc, target, et, fixref, abcorr, corloc, obsrvr, refvec, rolstp,
ncuts, schstp, soltol, maxn):
method = stypes.stringToCharP(method)
ilusrc = stypes.stringToCharP(ilusrc)
target = stypes.stringToCharP(target)
et = ctypes.... | [
"\n Find terminator points on a target body. The caller specifies\n half-planes, bounded by the illumination source center-target center\n vector, in which to search for terminator points.\n\n The terminator can be either umbral or penumbral. The umbral \n terminator is the boundary of the region on ... |
Please provide a description of the function:def timdef(action, item, lenout, value=None):
action = stypes.stringToCharP(action)
item = stypes.stringToCharP(item)
lenout = ctypes.c_int(lenout)
if value is None:
value = stypes.stringToCharP(lenout)
else:
value = stypes.stringToCh... | [
"\n Set and retrieve the defaults associated with calendar input strings.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/timdef_c.html\n\n :param action: the kind of action to take \"SET\" or \"GET\".\n :type action: str\n :param item: the default item of interest.\n :type item: str\n... |
Please provide a description of the function:def timout(et, pictur, lenout=_default_len_out):
pictur = stypes.stringToCharP(pictur)
output = stypes.stringToCharP(lenout)
lenout = ctypes.c_int(lenout)
if hasattr(et, "__iter__"):
times = []
for t in et:
libspice.timout_c(c... | [
"\n This vectorized routine converts an input epoch represented in TDB seconds\n past the TDB epoch of J2000 to a character string formatted to\n the specifications of a user's format picture.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/timout_c.html\n\n :param et: An epoch in seconds... |
Please provide a description of the function:def tipbod(ref, body, et):
ref = stypes.stringToCharP(ref)
body = ctypes.c_int(body)
et = ctypes.c_double(et)
retmatrix = stypes.emptyDoubleMatrix()
libspice.tipbod_c(ref, body, et, retmatrix)
return stypes.cMatrixToNumpy(retmatrix) | [
"\n Return a 3x3 matrix that transforms positions in inertial\n coordinates to positions in body-equator-and-prime-meridian\n coordinates.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tipbod_c.html\n\n :param ref: ID of inertial reference frame to transform from.\n :type ref: str\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.