SpiceyPy package

spiceypy module

The MIT License (MIT)

Copyright (c) [2015-2022] [Andrew Annex]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

spiceypy.spiceypy.appndc(item, cell)[source]

Append an item to a character cell.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/appndc_c.html

Parameters
  • item (Union[str, Iterable[str], ndarray, str_]) – The item to append.

  • cell (Union[Cell_Char, SpiceCell]) – The cell to append to.

Return type

None

spiceypy.spiceypy.appndd(item, cell)[source]

Append an item to a double precision cell.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/appndd_c.html

Parameters
  • item (Union[float, Iterable[float]]) – The item to append.

  • cell (Union[SpiceCell, Cell_Double]) – The cell to append to.

Return type

None

spiceypy.spiceypy.appndi(item, cell)[source]

Append an item to an integer cell.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/appndi_c.html

Parameters
  • item (Union[Iterable[int], int]) – The item to append.

  • cell (Union[SpiceCell, Cell_Int]) – The cell to append to.

Return type

None

spiceypy.spiceypy.axisar(axis, angle)[source]

Construct a rotation matrix that rotates vectors by a specified angle about a specified axis.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/axisar_c.html

Parameters
  • axis (Union[ndarray, Iterable[float]]) – Rotation axis.

  • angle (float) – Rotation angle, in radians.

Return type

ndarray

Returns

Rotation matrix corresponding to axis and angle.

spiceypy.spiceypy.azlcpo(method, target, et, abcorr, azccw, elplsz, obspos, obsctr, obsref)[source]

Return the azimuth/elevation coordinates of a specified target relative to an “observer,” where the observer has constant position in a specified reference frame. The observer’s position is provided by the calling program rather than by loaded SPK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/azlcpo_c.html

Parameters
  • method (str) – Method to obtain the surface normal vector.

  • target (str) – Name of target ephemeris object.

  • et (float) – Observation epoch.

  • abcorr (str) – Aberration correction.

  • azccw (bool) – Flag indicating how azimuth is measured.

  • elplsz (bool) – Flag indicating how elevation is measured.

  • obspos (ndarray) – Observer position relative to center of motion.

  • obsctr (str) – Center of motion of observer.

  • obsref (str) – Body fixed body centered frame of observer’s center.

Return type

Tuple[ndarray, float]

Returns

State of target with respect to observer, in azimuth/elevation coordinates. and One way light time between target and observer.

spiceypy.spiceypy.azlrec(range, az, el, azccw, elplsz)[source]

Convert from range, azimuth and elevation of a point to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/azlrec_c.html

Parameters
  • range (float) – Distance of the point from the origin.

  • az (float) – Azimuth in radians.

  • el (float) – Elevation in radians.

  • azccw (bool) – Flag indicating how azimuth is measured.

  • elplsz (bool) – Flag indicating how elevation is measured.

Return type

ndarray

Returns

Rectangular coordinates of a point.

spiceypy.spiceypy.b1900()[source]

Return the Julian Date corresponding to Besselian Date 1900.0.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/b1900_c.html

Return type

float

Returns

The Julian Date corresponding to Besselian Date 1900.0.

spiceypy.spiceypy.b1950()[source]

Return the Julian Date corresponding to Besselian Date 1950.0.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/b1950_c.html

Return type

float

Returns

The Julian Date corresponding to Besselian Date 1950.0.

spiceypy.spiceypy.badkpv(caller, name, comp, insize, divby, intype)[source]

Determine if a kernel pool variable is present and if so that it has the correct size and type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/badkpv_c.html

Parameters
  • caller (str) – Name of the routine calling this routine.

  • name (str) – Name of a kernel pool variable.

  • comp (str) – Comparison operator.

  • insize (int) – Expected size of the kernel pool variable.

  • divby (int) – A divisor of the size of the kernel pool variable.

  • intype (str) – Expected type of the kernel pool variable

Return type

bool

Returns

returns false if the kernel pool variable is OK.

spiceypy.spiceypy.bltfrm(frmcls, out_cell=None)[source]

Return a SPICE set containing the frame IDs of all built-in frames of a specified class.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bltfrm_c.html

Parameters
  • frmcls (int) – Frame class.

  • out_cell (Optional[SpiceCell]) – Optional SpiceInt Cell that is returned

Return type

SpiceCell

Returns

Set of ID codes of frames of the specified class.

spiceypy.spiceypy.bodc2n(code, lenout=256)[source]

Translate the SPICE integer code of a body into a common name for that body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodc2n_c.html

Parameters
  • code (int) – Integer ID code to be translated into a name.

  • lenout (int) – Maximum length of output name.

Return type

Tuple[str, bool]

Returns

A common name for the body identified by code.

spiceypy.spiceypy.bodc2s(code, lenout=256)[source]

Translate a body ID code to either the corresponding name or if no name to ID code mapping exists, the string representation of the body ID value.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodc2s_c.html

Parameters
  • code (int) – Integer ID code to translate to a string.

  • lenout (int) – Maximum length of output name.

Return type

str

Returns

String corresponding to ‘code’.

spiceypy.spiceypy.boddef(name, code)[source]

Define a body name/ID code pair for later translation via bodn2c() or bodc2n().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/boddef_c.html

Parameters
  • name (str) – Common name of some body.

  • code (int) – Integer code for that body.

Return type

None

spiceypy.spiceypy.bodeul(body, et)[source]

Return the Euler angles needed to compute the transformation from inertial to body-fixed coordinates for any body in the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/bodeul.html

Parameters
  • body (int) – NAIF ID code of body.

  • et (float) – Epoch of transformation in seconds past J2000 TDB.

Return type

Tuple[float, float, float, float]

Returns

Right ascension of the (IAU) north pole in radians. Declination of the (IAU) north pole of the body in radians. Prime meridian rotation angle in radians. Angle between the prime meridian and longitude of longest axis in radians.

spiceypy.spiceypy.bodfnd(body, item)[source]

Determine whether values exist for some item for any body in the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodfnd_c.html

Parameters
  • body (int) – ID code of body.

  • item (str) – Item to find (“RADII”, “NUT_AMP_RA”, etc.).

Return type

bool

Returns

True if the item is in the kernel pool, and is False if it is not.

spiceypy.spiceypy.bodn2c(name)[source]

Translate the name of a body or object to the corresponding SPICE integer ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodn2c_c.html

Parameters

name (str) – Body name to be translated into a SPICE ID code.

Return type

Tuple[int, bool]

Returns

SPICE integer ID code for the named body.

spiceypy.spiceypy.bods2c(name)[source]

Translate a string containing a body name or ID code to an integer code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bods2c_c.html

Parameters

name (str) – String to be translated to an ID code.

Return type

Tuple[int, bool]

Returns

Integer ID code corresponding to name.

spiceypy.spiceypy.bodvar(body, item, dim)[source]

Deprecated: This routine has been superseded by bodvcd() and bodvrd(). This routine is supported for purposes of backward compatibility only.

Return the values of some item for any body in the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodvar_c.html

Parameters
  • body (int) – ID code of body.

  • item (str) – Item for which values are desired, (“RADII”, “NUT_PREC_ANGLES”, etc.)

  • dim (int) – Number of values returned.

Return type

ndarray

Returns

values

spiceypy.spiceypy.bodvcd(bodyid, item, maxn)[source]

Fetch from the kernel pool the double precision values of an item associated with a body, where the body is specified by an integer ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodvcd_c.html

Parameters
  • bodyid (int) – Body ID code.

  • item (str) – Item for which values are desired, (“RADII”, “NUT_PREC_ANGLES”, etc.)

  • maxn (int) – Maximum number of values that may be returned.

Return type

Tuple[int, ndarray]

Returns

dim, values

spiceypy.spiceypy.bodvrd(bodynm, item, maxn)[source]

Fetch from the kernel pool the double precision values of an item associated with a body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodvrd_c.html

Parameters
  • bodynm (str) – Body name.

  • item (str) – Item for which values are desired, (“RADII”, “NUT_PREC_ANGLES”, etc.)

  • maxn (int) – Maximum number of values that may be returned.

Return type

Tuple[int, ndarray]

Returns

tuple of (dim, values)

spiceypy.spiceypy.brcktd(number, end1, end2)[source]

Bracket a number. That is, given a number and an acceptable interval, make sure that the number is contained in the interval. (If the number is already in the interval, leave it alone. If not, set it to the nearest endpoint of the interval.)

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/brcktd_c.html

Parameters
  • number (float) – Number to be bracketed.

  • end1 (float) – One of the bracketing endpoints for number.

  • end2 (float) – The other bracketing endpoint for number.

Return type

float

Returns

value within an interval

spiceypy.spiceypy.brckti(number, end1, end2)[source]

Bracket a number. That is, given a number and an acceptable interval, make sure that the number is contained in the interval. (If the number is already in the interval, leave it alone. If not, set it to the nearest endpoint of the interval.)

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/brckti_c.html

Parameters
  • number (int) – Number to be bracketed.

  • end1 (int) – One of the bracketing endpoints for number.

  • end2 (int) – The other bracketing endpoint for number.

Return type

int

Returns

value within an interval

spiceypy.spiceypy.bschoc(value, ndim, lenvals, array, order)[source]

Do a binary search for a given value within a character string array, accompanied by an order vector. Return the index of the matching array entry, or -1 if the key value is not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bschoc_c.html

Parameters
  • value (Union[str_, str]) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • lenvals (int) – String length.

  • array (Union[ndarray, Iterable[str]]) – Character string array to search.

  • order (Union[ndarray, Iterable[int]]) – Order vector.

Return type

int

Returns

index

spiceypy.spiceypy.bschoi(value, ndim, array, order)[source]

Do a binary search for a given value within an integer array, accompanied by an order vector. Return the index of the matching array entry, or -1 if the key value is not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bschoi_c.html

Parameters
  • value (int) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • array (Union[ndarray, Iterable[int]]) – Integer array to search.

  • order (Union[ndarray, Iterable[int]]) – Order vector.

Return type

int

Returns

index

spiceypy.spiceypy.bsrchc(value, ndim, lenvals, array)[source]

Do a binary earch for a given value within a character string array. Return the index of the first matching array entry, or -1 if the key value was not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bsrchc_c.html

Parameters
  • value (str) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – Character string array to search.

Return type

int

Returns

index

spiceypy.spiceypy.bsrchd(value, ndim, array)[source]

Do a binary search for a key value within a double precision array, assumed to be in increasing order. Return the index of the matching array entry, or -1 if the key value is not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bsrchd_c.html

Parameters
  • value (float) – Value to find in array.

  • ndim (int) – Dimension of array.

  • array (ndarray) – Array to be searched.

Return type

int

Returns

index

spiceypy.spiceypy.bsrchi(value, ndim, array)[source]

Do a binary search for a key value within an integer array, assumed to be in increasing order. Return the index of the matching array entry, or -1 if the key value is not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bsrchi_c.html

Parameters
  • value (int) – Value to find in array.

  • ndim (int) – Dimension of array.

  • array (ndarray) – Array to be searched.

Return type

int

Returns

index

spiceypy.spiceypy.card(cell)[source]

Return the cardinality (current number of elements) in a cell of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/card_c.html

Parameters

cell (SpiceCell) – Input cell.

Return type

int

Returns

the number of elements in a cell of any data type.

spiceypy.spiceypy.ccifrm(frclss, clssid, lenout=256)[source]

Return the frame name, frame ID, and center associated with a given frame class and class ID.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ccifrm_c.html

Parameters
  • frclss (int) – Class of frame.

  • clssid (int) – Class ID of frame.

  • lenout (int) – Maximum length of output string.

Return type

Tuple[int, str, int, bool]

Returns

the frame name, frame ID, center.

spiceypy.spiceypy.cell_bool(cell_size)[source]
Return type

SpiceCell

spiceypy.spiceypy.cell_char(cell_size, length)[source]
Return type

SpiceCell

spiceypy.spiceypy.cell_double(cell_size)[source]
Return type

SpiceCell

spiceypy.spiceypy.cell_int(cell_size)[source]
Return type

SpiceCell

spiceypy.spiceypy.cell_time(cell_size)[source]
Return type

SpiceCell

spiceypy.spiceypy.cgv2el(center, vec1, vec2)[source]

Form a SPICE ellipse from a center vector and two generating vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cgv2el_c.html

Parameters
  • center (Union[ndarray, Iterable[float]]) – Center Vector

  • vec1 (Union[ndarray, Iterable[float]]) – Vector 1

  • vec2 (Union[ndarray, Iterable[float]]) – Vector 2

Return type

Ellipse

Returns

Ellipse

spiceypy.spiceypy.chbder(cp, degp, x2s, x, nderiv)[source]

Given the coefficients for the Chebyshev expansion of a polynomial, this returns the value of the polynomial and its first nderiv derivatives evaluated at the input X.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chbder_c.html

Parameters
  • cp (Union[ndarray, Iterable[float]]) – degp+1 Chebyshev polynomial coefficients.

  • degp (int) – Degree of polynomial.

  • x2s (Union[ndarray, Iterable[float]]) – Transformation parameters of polynomial.

  • x (float) – Value for which the polynomial is to be evaluated

  • nderiv (int) – The number of derivatives to compute

Return type

ndarray

Returns

Array of the derivatives of the polynomial

spiceypy.spiceypy.chbigr(degp, cp, x2s, x)[source]

Evaluate an indefinite integral of a Chebyshev expansion at a specified point `x’ and return the value of the input expansion at `x’ as well. The constant of integration is selected to make the integral zero when `x’ equals the abscissa value x2s[0].

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chbigr_c.html

Parameters
  • degp (int) – Degree of input Chebyshev expansion.

  • cp (ndarray) – Chebyshev coefficients of input expansion.

  • x2s (ndarray) – Transformation parameters.

  • x (float) – Abscissa value of evaluation.

Return type

Tuple[float, float]

Returns

Input expansion evaluated at xIntegral evaluated at x.

spiceypy.spiceypy.chbint(cp, degp, x2s, x)[source]

Return the value of a polynomial and its derivative, evaluated at the input `x’, using the coefficients of the Chebyshev expansion of the polynomial.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chbint_c.html

Parameters
  • cp (ndarray) – degp 1 Chebyshev polynomial coefficients.

  • degp (int) – Degree of polynomial.

  • x2s (ndarray) – Transformation parameters of polynomial.

  • x (float) – Value for which the polynomial is to be evaluated.

Return type

Tuple[float, float]

Returns

Value of the polynomial at xValue of the derivative of the polynomial at X.

spiceypy.spiceypy.chbval(cp, degp, x2s, x)[source]

Return the value of a polynomial evaluated at the input `x’ using the coefficients for the Chebyshev expansion of the polynomial.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chbval_c.html

Parameters
  • cp (ndarray) – degp 1 Chebyshev polynomial coefficients.

  • degp (int) – Degree of polynomial.

  • x2s (ndarray) – Transformation parameters of polynomial.

  • x (float) – Value for which the polynomial is to be evaluated.

Return type

float

Returns

Value of the polynomial at x.

spiceypy.spiceypy.check_for_spice_error(f)[source]

Internal decorator function to check spice error system for failed calls

Parameters

f (Optional[Callable]) – function

Raises

stypes.SpiceyError

Return type

None

spiceypy.spiceypy.chkin(module)[source]

Inform the SPICE error handling mechanism of entry into a routine.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chkin_c.html

Parameters

module (str) – The name of the calling routine.

Return type

None

spiceypy.spiceypy.chkout(module)[source]

Inform the SPICE error handling mechanism of exit from a routine.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/chkout_c.html

Parameters

module (str) – The name of the calling routine.

Return type

None

spiceypy.spiceypy.cidfrm(cent, lenout=256)[source]

Retrieve frame ID code and name to associate with a frame center.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cidfrm_c.html

Parameters
  • cent (int) – An object to associate a frame with.

  • lenout (int) – Available space in output string frname.

Return type

Tuple[int, str, bool]

Returns

frame ID code, name to associate with a frame center.

spiceypy.spiceypy.ckcls(handle)[source]

Close an open CK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckcls_c.html

Parameters

handle (int) – Handle of the CK file to be closed.

Return type

None

spiceypy.spiceypy.ckcov(ck, idcode, needav, level, tol, timsys, cover=None)[source]

Find the coverage window for a specified object in a specified CK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckcov_c.html

Parameters
  • ck (str) – Name of CK file.

  • idcode (int) – ID code of object.

  • needav (bool) – Flag indicating whether angular velocity is needed.

  • level (str) – Coverage level: (SEGMENT OR INTERVAL)

  • tol (float) – Tolerance in ticks.

  • timsys (str) – Time system used to represent coverage.

  • cover (Optional[SpiceCell]) – Window giving coverage for idcode.

Return type

SpiceCell

Returns

coverage window for a specified object in a specified CK file

spiceypy.spiceypy.ckfrot(inst, et)[source]

Find the rotation from a C-kernel Id to the native frame at the time requested.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckfrot_c.html

Parameters
  • inst (int) – NAIF instrument ID

  • et (float) – Epoch measured in seconds past J2000

Return type

Tuple[ndarray, int, bool]

Returns

Rotation matrix from the input frame to the returned reference frame, id for the reference frame

spiceypy.spiceypy.ckfxfm(inst, et)[source]

Find the state transformation matrix from a C-kernel (CK) frame with the specified frame class ID (CK ID) to the base frame of the highest priority CK segment containing orientation and angular velocity data for this CK frame at the time requested.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckfxfm_c.html

Parameters
  • inst (int) – Frame class ID CK ID of a CK frame.

  • et (float) – Epoch measured in seconds past J2000 TDB.

Return type

Tuple[ndarray, int, bool]

Returns

Transformation from CK frame to frame ref, Frame ID of the base reference.

spiceypy.spiceypy.ckgp(inst, sclkdp, tol, ref)[source]

Get pointing (attitude) for a specified spacecraft clock time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckgp_c.html

Parameters
  • inst (int) – NAIF ID of instrument, spacecraft, or structure.

  • sclkdp (Union[float, int]) – Encoded spacecraft clock time.

  • tol (int) – Time tolerance.

  • ref (str) – Reference frame.

Return type

Tuple[ndarray, float, bool]

Returns

C-matrix pointing data, Output encoded spacecraft clock time

spiceypy.spiceypy.ckgpav(inst, sclkdp, tol, ref)[source]

Get pointing (attitude) and angular velocity for a specified spacecraft clock time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckgpav_c.html

Parameters
  • inst (int) – NAIF ID of instrument, spacecraft, or structure.

  • sclkdp (float) – Encoded spacecraft clock time.

  • tol (Union[float, int]) – Time tolerance.

  • ref (str) – Reference frame.

Return type

Tuple[ndarray, ndarray, float, bool]

Returns

C-matrix pointing data, Angular velocity vector, Output encoded spacecraft clock time.

spiceypy.spiceypy.ckgr02(handle, descr, recno)[source]

Return a specified pointing instance from a CK type 02 segment. The segment is identified by a CK file handle and segment descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckgr02_c.html

Parameters
  • handle (int) – The handle of the CK file containing the segment.

  • descr (ndarray) – The segment descriptor.

  • recno (int) – The number of the pointing record to be returned.

Return type

ndarray

Returns

The pointing record.

spiceypy.spiceypy.ckgr03(handle, descr, recno)[source]

Return a specified pointing instance from a CK type 03 segment. The segment is identified by a CK file handle and segment descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckgr03_c.html

Parameters
  • handle (int) – The handle of the CK file containing the segment.

  • descr (ndarray) – The segment descriptor.

  • recno (int) – The number of the pointing instance to be returned.

Return type

ndarray

Returns

The pointing record.

spiceypy.spiceypy.cklpf(filename)[source]

Load a CK pointing file for use by the CK readers. Return that file’s handle, to be used by other CK routines to refer to the file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cklpf_c.html

Parameters

filename (str) – Name of the CK file to be loaded.

Return type

int

Returns

Loaded file’s handle.

spiceypy.spiceypy.ckmeta(ckid, meta)[source]

Return (depending upon the user’s request) the ID code of either the spacecraft or spacecraft clock associated with a C-Kernel ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckmeta_c.html

Parameters
  • ckid (int) – The ID code for some C kernel object.

  • meta (str) – The kind of meta data requested SPK or SCLK.

Return type

int

Returns

The requested SCLK or spacecraft ID code.

spiceypy.spiceypy.cknr02(handle, descr)[source]

Return the number of pointing records in a CK type 02 segment. The segment is identified by a CK file handle and segment descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cknr02_c.html

Parameters
  • handle (int) – The handle of the CK file containing the segment.

  • descr (ndarray) – The descriptor of the type 2 segment.

Return type

int

Returns

The number of records in the segment.

spiceypy.spiceypy.cknr03(handle, descr)[source]

Return the number of pointing instances in a CK type 03 segment. The segment is identified by a CK file handle and segment descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cknr03_c.html

Parameters
  • handle (int) – The handle of the CK file containing the segment.

  • descr (ndarray) – The descriptor of the type 3 segment.

Return type

int

Returns

The number of pointing instances in the segment.

spiceypy.spiceypy.ckobj(ck, out_cell=None)[source]

Find the set of ID codes of all objects in a specified CK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckobj_c.html

Parameters
  • ck (str) – Name of CK file.

  • out_cell (Optional[SpiceCell]) – Optional user provided Spice Int cell.

Return type

SpiceCell

Returns

Set of ID codes of objects in CK file.

spiceypy.spiceypy.ckopn(filename, ifname, ncomch)[source]

Open a new CK file, returning the handle of the opened file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckopn_c.html

Parameters
  • filename (str) – The name of the CK file to be opened.

  • ifname (str) – The internal filename for the CK.

  • ncomch (int) – The number of characters to reserve for comments.

Return type

int

Returns

The handle of the opened CK file.

spiceypy.spiceypy.ckupf(handle)[source]

Unload a CK pointing file so that it will no longer be searched by the readers.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckupf_c.html

Parameters

handle (int) – Handle of CK file to be unloaded

Return type

None

spiceypy.spiceypy.ckw01(handle, begtim, endtim, inst, ref, avflag, segid, nrec, sclkdp, quats, avvs)[source]

Add a type 1 segment to a C-kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw01_c.html

Parameters
  • handle (int) – Handle of an open CK file.

  • begtim (float) – The beginning encoded SCLK of the segment.

  • endtim (float) – The ending encoded SCLK of the segment.

  • inst (int) – The NAIF instrument ID code.

  • ref (str) – The reference frame of the segment.

  • avflag (bool) – True if the segment will contain angular velocity.

  • segid (str) – Segment identifier.

  • nrec (int) – Number of pointing records.

  • sclkdp (Union[ndarray, Iterable[float]]) – Encoded SCLK times.

  • quats (Union[ndarray, Iterable[Iterable[float]]]) – Quaternions representing instrument pointing.

  • avvs (Union[ndarray, Iterable[Iterable[float]]]) – Angular velocity vectors.

Return type

None

spiceypy.spiceypy.ckw02(handle, begtim, endtim, inst, ref, segid, nrec, start, stop, quats, avvs, rates)[source]

Write a type 2 segment to a C-kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw02_c.html

Parameters
  • handle (int) – Handle of an open CK file.

  • begtim (float) – The beginning encoded SCLK of the segment.

  • endtim (float) – The ending encoded SCLK of the segment.

  • inst (int) – The NAIF instrument ID code.

  • ref (str) – The reference frame of the segment.

  • segid (str) – Segment identifier.

  • nrec (int) – Number of pointing records.

  • start (ndarray) – Encoded SCLK interval start times.

  • stop (ndarray) – Encoded SCLK interval stop times.

  • quats (ndarray) – Quaternions representing instrument pointing.

  • avvs (ndarray) – Angular velocity vectors.

  • rates (Union[ndarray, Iterable[float]]) – Number of seconds per tick for each interval.

Return type

None

spiceypy.spiceypy.ckw03(handle, begtim, endtim, inst, ref, avflag, segid, nrec, sclkdp, quats, avvs, nints, starts)[source]

Add a type 3 segment to a C-kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw03_c.html

Parameters
  • handle (int) – Handle of an open CK file.

  • begtim (float) – The beginning encoded SCLK of the segment.

  • endtim (float) – The ending encoded SCLK of the segment.

  • inst (int) – The NAIF instrument ID code.

  • ref (str) – The reference frame of the segment.

  • avflag (bool) – True if the segment will contain angular velocity.

  • segid (str) – Segment identifier.

  • nrec (int) – Number of pointing records.

  • sclkdp (ndarray) – Encoded SCLK times.

  • quats (ndarray) – Quaternions representing instrument pointing.

  • avvs (ndarray) – Angular velocity vectors.

  • nints (int) – Number of intervals.

  • starts (Union[ndarray, Iterable[float]]) – Encoded SCLK interval start times.

Return type

None

spiceypy.spiceypy.ckw05(handle, subtype, degree, begtim, endtim, inst, ref, avflag, segid, sclkdp, packts, rate, nints, starts)[source]

Write a type 5 segment to a CK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw05_c.html

Parameters
  • handle (int) – Handle of an open CK file.

  • subtype (int) – CK type 5 subtype code. Can be: 0, 1, 2, 3 see naif docs via link above.

  • degree (int) – Degree of interpolating polynomials.

  • begtim (float) – The beginning encoded SCLK of the segment.

  • endtim (float) – The ending encoded SCLK of the segment.

  • inst (int) – The NAIF instrument ID code.

  • ref (str) – The reference frame of the segment.

  • avflag (bool) – True if the segment will contain angular velocity.

  • segid (str) – Segment identifier.

  • sclkdp (ndarray) – Encoded SCLK times.

  • packts (Sequence[Iterable[float]]) – Array of packets.

  • rate (float) – Nominal SCLK rate in seconds per tick.

  • nints (int) – Number of intervals.

  • starts (ndarray) – Encoded SCLK interval start times.

Return type

None

spiceypy.spiceypy.clight()[source]

Return the speed of light in a vacuum (IAU official value, in km/sec).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/clight_c.html

Return type

float

Returns

The function returns the speed of light in vacuum (km/sec).

spiceypy.spiceypy.clpool()[source]

Remove all variables from the kernel pool. Watches on kernel variables are retained.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/clpool_c.html

Return type

None

spiceypy.spiceypy.cltext(fname)[source]

Internal undocumented command for closing a text file opened by RDTEXT.

No URL available; relevant lines from SPICE source:

FORTRAN SPICE, rdtext.f:

C$Procedure  CLTEXT ( Close a text file opened by RDTEXT)
      ENTRY  CLTEXT ( FILE )
      CHARACTER*(*)       FILE
C     VARIABLE  I/O  DESCRIPTION
C     --------  ---  --------------------------------------------------
C     FILE       I   Text file to be closed.

CSPICE, rdtext.c:

/* $Procedure  CLTEXT ( Close a text file opened by RDTEXT) */
/* Subroutine */ int cltext_(char *file, ftnlen file_len)
Parameters

fname (str) – Text file to be closed.

Return type

None

spiceypy.spiceypy.cmprss(delim, n, instr, lenout=256)[source]

Compress a character string by removing occurrences of more than N consecutive occurrences of a specified character.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cmprss_c.html

Parameters
  • delim (str) – Delimiter to be compressed.

  • n (int) – Maximum consecutive occurrences of delim.

  • instr (str) – Input string.

  • lenout (int) – Optional available space in output string.

Return type

str

Returns

Compressed string.

spiceypy.spiceypy.cnmfrm(cname, lenout=256)[source]

Retrieve frame ID code and name to associate with an object.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cnmfrm_c.html

Parameters
  • cname (str) – Name of the object to find a frame for.

  • lenout (int) – Maximum length available for frame name.

Return type

Tuple[int, str, bool]

Returns

The ID code of the frame associated with cname, The name of the frame with ID frcode.

spiceypy.spiceypy.conics(elts, et)[source]

Determine the state (position, velocity) of an orbiting body from a set of elliptic, hyperbolic, or parabolic orbital elements.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/conics_c.html

Parameters
  • elts (ndarray) – Conic elements.

  • et (float) – Input time.

Return type

ndarray

Returns

State of orbiting body at et.

spiceypy.spiceypy.convrt(x, inunit, outunit)[source]

Take a measurement X, the units associated with X, and units to which X should be converted; return Y the value of the measurement in the output units.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/convrt_c.html

Parameters
  • x (Union[float, Iterable[float]]) – Number representing a measurement in some units.

  • inunit (str) – The units in which x is measured.

  • outunit (str) – Desired units for the measurement.

Return type

Union[ndarray, float]

Returns

The measurment in the desired units.

spiceypy.spiceypy.copy(cell)[source]

Copy the contents of a SpiceCell of any data type to another cell of the same type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/copy_c.html

Parameters

cell (SpiceCell) – Cell to be copied.

Return type

SpiceCell

Returns

New cell

spiceypy.spiceypy.cpos(string, chars, start)[source]

Find the first occurrence in a string of a character belonging to a collection of characters, starting at a specified location, searching forward.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cpos_c.html

Parameters
  • string (str) – Any character string.

  • chars (str) – A collection of characters.

  • start (int) – Position to begin looking for one of chars.

Return type

int

Returns

The index of the first character of str at or following index start that is in the collection chars.

spiceypy.spiceypy.cposr(string, chars, start)[source]

Find the first occurrence in a string of a character belonging to a collection of characters, starting at a specified location, searching in reverse.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cposr_c.html

Parameters
  • string (str) – Any character string.

  • chars (str) – A collection of characters.

  • start (int) – Position to begin looking for one of chars.

Return type

int

Returns

The index of the last character of str at or before index start that is in the collection chars.

spiceypy.spiceypy.cvpool(agent)[source]

Indicate whether or not any watched kernel variables that have a specified agent on their notification list have been updated.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cvpool_c.html

Parameters

agent (str) – Name of the agent to check for notices.

Return type

bool

Returns

True if variables for “agent” have been updated.

spiceypy.spiceypy.cyllat(r, lonc, z)[source]

Convert from cylindrical to latitudinal coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cyllat_c.html

Parameters
  • r (float) – Distance of point from z axis.

  • lonc (float) – Cylindrical angle of point from XZ plane(radians).

  • z (float) – Height of point above XY plane.

Return type

Tuple[float, float, float]

Returns

Distance, Longitude (radians), and Latitude of point (radians).

spiceypy.spiceypy.cylrec(r, lon, z)[source]

Convert from cylindrical to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cylrec_c.html

Parameters
  • r (float) – Distance of a point from z axis.

  • lon (float) – Angle (radians) of a point from xZ plane.

  • z (float) – Height of a point above xY plane.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.cylsph(r, lonc, z)[source]

Convert from cylindrical to spherical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/cylsph_c.html

Parameters
  • r (float) – Rectangular coordinates of the point.

  • lonc (float) – Angle (radians) of point from XZ plane.

  • z (float) – Height of point above XY plane.

Return type

Tuple[float, float, float]

Returns

Distance of point from origin, Polar angle (co-latitude in radians) of point, Azimuthal angle (longitude) of point (radians).

spiceypy.spiceypy.dafac(handle, buffer)[source]

Add comments from a buffer of character strings to the comment area of a binary DAF file, appending them to any comments which are already present in the file’s comment area.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafac_c.html

Parameters
  • handle (int) – handle of a DAF opened with write access.

  • buffer (Sequence[str]) – Buffer of comments to put into the comment area.

Return type

None

spiceypy.spiceypy.dafbbs(handle)[source]

Begin a backward search for arrays in a DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafbbs_c.html

Parameters

handle (int) – Handle of DAF to be searched.

Return type

None

spiceypy.spiceypy.dafbfs(handle)[source]

Begin a forward search for arrays in a DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafbfs_c.html

Parameters

handle (int) – Handle of file to be searched.

Return type

None

spiceypy.spiceypy.dafcls(handle)[source]

Close the DAF associated with a given handle.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafcls_c.html

Parameters

handle (int) – Handle of DAF to be closed.

Return type

None

spiceypy.spiceypy.dafcs(handle)[source]

Select a DAF that already has a search in progress as the one to continue searching.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafcs_c.html

Parameters

handle (int) – Handle of DAF to continue searching.

Return type

None

spiceypy.spiceypy.dafdc(handle)[source]

Delete the entire comment area of a specified DAF file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafdc_c.html

Parameters

handle (int) – The handle of a binary DAF opened for writing.

Return type

None

spiceypy.spiceypy.dafec(handle, bufsiz, lenout=256)[source]

Extract comments from the comment area of a binary DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafec_c.html

Parameters
  • handle (int) – Handle of binary DAF opened with read access.

  • bufsiz (int) – Maximum size, in lines, of buffer.

  • lenout (int) – Length of strings in output buffer.

Return type

Tuple[int, Iterable[str], bool]

Returns

Number of extracted comment lines, buffer where extracted comment lines are placed, Indicates whether all comments have been extracted.

spiceypy.spiceypy.daffna()[source]

Find the next (forward) array in the current DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daffna_c.html

Return type

bool

Returns

True if an array was found.

spiceypy.spiceypy.daffpa()[source]

Find the previous (backward) array in the current DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daffpa_c.html

Return type

bool

Returns

True if an array was found.

spiceypy.spiceypy.dafgda(handle, begin, end)[source]

Read the double precision data bounded by two addresses within a DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgda_c.html

Parameters
  • handle (int) – Handle of a DAF.

  • begin (int) – Initial address within file.

  • end (int) – Final address within file.

Return type

ndarray

Returns

Data contained between begin and end.

spiceypy.spiceypy.dafgh()[source]

Return (get) the handle of the DAF currently being searched.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgh_c.html

Return type

int

Returns

Handle for current DAF.

spiceypy.spiceypy.dafgn(lenout=256)[source]

Return (get) the name for the current array in the current DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgn_c.html

Parameters

lenout (int) – Length of array name string.

Return type

str

Returns

Name of current array.

spiceypy.spiceypy.dafgs(n=125)[source]

Return (get) the summary for the current array in the current DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgs_c.html

Parameters

n (int) – Optional length N for result Array, defaults to 125.

Return type

ndarray

Returns

Summary for current array.

spiceypy.spiceypy.dafgsr(handle, recno, begin, end)[source]

Read a portion of the contents of (words in) a summary record in a DAF file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafgsr_c.html

Parameters
  • handle (int) – Handle of DAF.

  • recno (int) – Record number; word indices are 1-based, 1 to 128 inclusive.

  • begin (int) – Index of first word to read from record, will be clamped > 0.

  • end (int) – Index of last word to read, wll be clamped < 129

Return type

Tuple[ndarray, bool]

Returns

Contents of request sub-record

spiceypy.spiceypy.dafhsf(handle)[source]

Return the summary format associated with a handle.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafhsf_c.html

Parameters

handle (int) – Handle of a DAF file.

Return type

Tuple[int, int]

Returns

Number of double precision components in summariesNumber of integer components in summaries.

spiceypy.spiceypy.dafopr(fname)[source]

Open a DAF for subsequent read requests.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafopr_c.html

Parameters

fname (str) – Name of DAF to be opened.

Return type

int

Returns

Handle assigned to DAF.

spiceypy.spiceypy.dafopw(fname)[source]

Open a DAF for subsequent write requests.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafopw_c.html

Parameters

fname (str) – Name of DAF to be opened.

Return type

int

Returns

Handle assigned to DAF.

spiceypy.spiceypy.dafps(nd, ni, dc, ic)[source]

Pack (assemble) an array summary from its double precision and integer components.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafps_c.html

Parameters
  • nd (int) – Number of double precision components.

  • ni (int) – Number of integer components.

  • dc (ndarray) – Double precision components.

  • ic (ndarray) – Integer components.

Return type

ndarray

Returns

Array summary.

spiceypy.spiceypy.dafrda(handle, begin, end)[source]

Read the double precision data bounded by two addresses within a DAF.

Deprecated: This routine has been superseded by dafgda() and dafgsr(). This routine is supported for purposes of backward compatibility only.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafrda_c.html

Parameters
  • handle (int) – Handle of a DAF.

  • begin (int) – Initial address within file.

  • end (int) – Final address within file.

Return type

ndarray

Returns

Data contained between begin and end.

spiceypy.spiceypy.dafrfr(handle, lenout=256)[source]

Read the contents of the file record of a DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafrfr_c.html

Parameters
  • handle (int) – Handle of an open DAF file.

  • lenout (int) – Available room in the output string

Return type

Tuple[int, int, str, int, int, int]

Returns

Number of double precision components in summaries, Number of integer components in summaries, Internal file name, Forward list pointer, Backward list pointer, Free address pointer.

spiceypy.spiceypy.dafrs(insum)[source]

Change the summary for the current array in the current DAF.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafrs_c.html

Parameters

insum (ndarray) – New summary for current array.

Return type

None

spiceypy.spiceypy.dafus(insum, nd, ni)[source]

Unpack an array summary into its double precision and integer components.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dafus_c.html

Parameters
  • insum (ndarray) – Array summary.

  • nd (int) – Number of double precision components.

  • ni (int) – Number of integer components.

Return type

Tuple[ndarray, ndarray]

Returns

Double precision components, Integer components.

spiceypy.spiceypy.dasac(handle, buffer)[source]

Add comments from a buffer of character strings to the comment area of a binary DAS file, appending them to any comments which are already present in the file’s comment area.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasac_c.html

Parameters
  • handle (int) – DAS handle of a file opened with write access.

  • buffer (Sequence[str]) – Buffer of lines to be put into the comment area.

Return type

None

spiceypy.spiceypy.dasadc(handle, n, bpos, epos, datlen, data)[source]

Add character data to a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasadc_c.html

Parameters
  • handle (int) – DAS file handle.

  • n (int) – Number of characters to add to file.

  • bpos (int) – Begin positions of substrings.

  • epos (int) – End positions of substrings.

  • datlen (int) – Common length of the character arrays in data.

  • data (Sequence[str]) – Array providing the set of substrings to be added.

Return type

None

spiceypy.spiceypy.dasadd(handle, n, data)[source]

Add an array of double precision numbers to a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasadd_c.html

Parameters
  • handle (int) – DAS file handle.

  • n (int) – Number of d p numbers to add to DAS file.

  • data (ndarray) – Array of d p numbers to add.

Return type

None

spiceypy.spiceypy.dasadi(handle, n, data)[source]

Add an array of integers to a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasadi_c.html

Parameters
  • handle (int) – DAS file handle.

  • n (int) – Number of integers to add to DAS file.

  • data (ndarray) – Array of integers to add.

Return type

None

spiceypy.spiceypy.dascls(handle)[source]

Close a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dascls_c.html

Parameters

handle (int) – Handle of an open DAS file.

Return type

None

spiceypy.spiceypy.dasdc(handle)[source]

Delete the entire comment area of a previously opened binary DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasdc_c.html

Parameters

handle (int) – The handle of a binary DAS file opened for writing.

Return type

None

spiceypy.spiceypy.dasec(handle, bufsiz=256, buflen=256)[source]

Extract comments from the comment area of a binary DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasec_c.html

Parameters
  • handle (int) – Handle of binary DAS file open with read access.

  • bufsiz (int) – Maximum size, in lines, of buffer.

  • buflen (int) – Line length associated with buffer.

Return type

Tuple[int, Iterable[str], int]

Returns

Number of comments extracted from the DAS file, Buffer in which extracted comments are placed, Indicates whether all comments have been extracted.

spiceypy.spiceypy.dashfn(handle, lenout=256)[source]

Return the name of the DAS file associated with a handle.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dashfn_c.html

Parameters
  • handle (int) – Handle of a DAS file.

  • lenout (int) – Length of output file name string.

Return type

str

Returns

Corresponding file name.

spiceypy.spiceypy.dashfs(handle)[source]

Return a file summary for a specified DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dashfs_c.html

Parameters

handle (int) – Handle of a DAS file.

Return type

Tuple[int, int, int, int, int, ndarray, ndarray, ndarray]

Returns

Number of reserved records in file, Number of characters in use in reserved rec area, Number of comment records in file, Number of characters in use in comment area, Number of first free record, Array of last logical addresses for each data type, Record number of last descriptor of each data type, Word number of last descriptor of each data type.

spiceypy.spiceypy.daslla(handle)[source]

Return last DAS logical addresses of character, double precision and integer type that are currently in use in a specified DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daslla_c.html

Parameters

handle (int) – DAS file handle.

Return type

Tuple[int, int, int]

Returns

Last character address in use, Last double precision address in use, Last integer address in use.

spiceypy.spiceypy.dasllc(handle)[source]

Close the DAS file associated with a given handle, without flushing buffered data or segregating the file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasllc_c.html

Parameters

handle (int) – Handle of a DAS file to be closed.

Return type

None

spiceypy.spiceypy.dasonw(fname, ftype, ifname, ncomr)[source]

Open a new DAS file and set the file type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasonw_c.html

Parameters
  • fname (str) – Name of a DAS file to be opened.

  • ftype (str) – type

  • ifname (str) – internal file name

  • ncomr (int) – amount of comment area

Return type

int

Returns

Handle to new DAS file

spiceypy.spiceypy.dasopr(fname)[source]

Open a DAS file for reading.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasopr_c.html

Parameters

fname (str) – Name of a DAS file to be opened.

Return type

int

Returns

Handle assigned to the opened DAS file.

spiceypy.spiceypy.dasops()[source]

Open a scratch DAS file for writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasops_c.html

Return type

int

Returns

Handle assigned to a scratch DAS file.

spiceypy.spiceypy.dasopw(fname)[source]

Open a DAS file for writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasopw_c.html :type fname: str :param fname: Name of a DAS file to be opened. :rtype: int :return: Handle assigned to the opened DAS file.

spiceypy.spiceypy.dasrdd(handle, first, last)[source]

Read double precision data from a range of DAS logical addresses.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasrdd_c.html

Parameters
  • handle (int) – DAS file handle.

  • first (int) – start of range of DAS double precision.

  • last (int) – end of range of DAS double precision.

Return type

ndarray

Returns

Data having addresses first through last.

spiceypy.spiceypy.dasrdi(handle, first, last)[source]

Read integer data from a range of DAS logical addresses.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasrdi_c.html

Parameters
  • handle (int) – DAS file handle.

  • first (int) – start of range of DAS double precision.

  • last (int) – end of range of DAS double precision.

Return type

ndarray

Returns

Data having addresses first through last.

spiceypy.spiceypy.dasrfr(handle, lenout=256)[source]

Return the contents of the file record of a specified DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasrfr_c.html

Parameters
  • handle (int) – DAS file handle.

  • lenout (int) – length of output strs

Return type

Tuple[str, str, int, int, int, int]

Returns

ID word, DAS internal file name, Number of reserved records in file, Number of characters in use in reserved rec. area, Number of comment records in file, Number of characters in use in comment area.

spiceypy.spiceypy.dasudd(handle, first, last, data)[source]

Update data in a specified range of double precision addresses in a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasudd_c.html

Parameters
  • handle (int) – DAS file handle.

  • first (int) – first address

  • last (int) – Range of d p addresses to write to.

  • data (ndarray) – An array of d p numbers.

Return type

None

spiceypy.spiceypy.dasudi(handle, first, last, data)[source]

Update data in a specified range of integer addresses in a DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dasudi_c.html

Parameters
  • handle (int) – DAS file handle.

  • first (int) – first integer addresses to write to.

  • last (int) – last integer addresses to write to.

  • data (ndarray) – An array of integers.

Return type

None

spiceypy.spiceypy.daswbr(handle)[source]

Write out all buffered records of a specified DAS file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/daswbr_c.html

Parameters

handle (int) – Handle of DAS file.

Return type

None

spiceypy.spiceypy.datetime2et(dt)[source]

Converts a standard Python datetime to a double precision value representing the number of TDB seconds past the J2000 epoch corresponding to the input epoch.

Timezone-naive datetimes will be assumed to be UTC, timezone-aware datetimes will be handled correctly by converting to UTC before passing them to CSPICE.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/time.html#The%20J2000%20Epoch

Parameters

dt (Union[Iterable[datetime], datetime]) – A standard Python datetime

Return type

Union[ndarray, float]

Returns

The equivalent value in seconds past J2000, TDB.

spiceypy.spiceypy.dazldr(x, y, z, azccw, elplsz)[source]

Compute the Jacobian matrix of the transformation from rectangular to azimuth/elevation coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dazldr_c.html

Parameters
  • x (float) – x coordinate of point.

  • y (float) – y coordinate of point.

  • z (float) – z coordinate of point.

  • azccw (bool) – Flag indicating how azimuth is measured.

  • elplsz (bool) – Flag indicating how elevation is measured.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.dcyldr(x, y, z)[source]

This routine computes the Jacobian of the transformation from rectangular to cylindrical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dcyldr_c.html

Parameters
  • x (float) – X-coordinate of point.

  • y (float) – Y-coordinate of point.

  • z (float) – Z-coordinate of point.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.deltet(epoch, eptype)[source]

Return the value of Delta ET (ET-UTC) for an input epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/deltet_c.html

Parameters
  • epoch (float) – Input epoch (seconds past J2000).

  • eptype (str) – Type of input epoch (“UTC” or “ET”).

Return type

float

Returns

Delta ET (ET-UTC) at input epoch.

spiceypy.spiceypy.det(m1)[source]

Compute the determinant of a double precision 3x3 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/det_c.html

Parameters

m1 (ndarray) – Matrix whose determinant is to be found.

Return type

float

Returns

The determinant of the matrix.

spiceypy.spiceypy.dgeodr(x, y, z, re, f)[source]

This routine computes the Jacobian of the transformation from rectangular to geodetic coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dgeodr_c.html

Parameters
  • x (float) – X-coordinate of point.

  • y (float) – Y-coordinate of point.

  • z (float) – Z-coord

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.diags2(symmat)[source]

Diagonalize a symmetric 2x2 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/diags2_c.html

Parameters

symmat (Union[ndarray, Iterable[Iterable[float]]]) – A symmetric 2x2 matrix.

Return type

Tuple[ndarray, ndarray]

Returns

A diagonal matrix similar to symmat, A rotation used as the similarity transformation.

spiceypy.spiceypy.diff(a, b)[source]

Take the difference of two sets of any data type to form a third set. https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/diff_c.html

Parameters
Return type

SpiceCell

Returns

Difference of a and b.

spiceypy.spiceypy.dlabbs(handle)[source]

Begin a backward segment search in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlabbs_c.html

Parameters

handle (int) – Handle of open DLA file.

Return type

Tuple[SpiceDLADescr, bool]

Returns

Descriptor of last segment in DLA file

spiceypy.spiceypy.dlabfs(handle)[source]

Begin a forward segment search in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlabfs_c.html

Parameters

handle (int) – Handle of open DLA file.

Return type

Tuple[SpiceDLADescr, bool]

Returns

Descriptor of next segment in DLA file

spiceypy.spiceypy.dlabns(handle)[source]

Begin a new segment in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlabns_c.html

Parameters

handle (int) – Handle of open DLA file.

Return type

None

spiceypy.spiceypy.dlaens(handle)[source]

End a new segment in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlaens_c.html

Parameters

handle (int) – Handle of open DLA file.

Return type

None

spiceypy.spiceypy.dlafns(handle, descr)[source]

Find the segment following a specified segment in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlafns_c.html

Parameters
  • handle (int) – Handle of open DLA file.

  • descr (SpiceDLADescr) – Descriptor of a DLA segment.

Return type

Tuple[SpiceDLADescr, bool]

Returns

Descriptor of next segment in DLA file

spiceypy.spiceypy.dlafps(handle, descr)[source]

Find the segment preceding a specified segment in a DLA file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlafps_c.html

Parameters
  • handle (int) – Handle of open DLA file.

  • descr (SpiceDLADescr) – Descriptor of a segment in DLA file.

Return type

Tuple[SpiceDLADescr, bool]

Returns

Descriptor of previous segment in DLA file

spiceypy.spiceypy.dlaopn(fname, ftype, ifname, ncomch)[source]

Open a new DLA file and set the file type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlaopn_c.html

Parameters
  • fname (str) – Name of a DLA file to be opened.

  • ftype (str) – Mnemonic code for type of data in the DLA file.

  • ifname (str) – Internal file name.

  • ncomch (int) – Number of comment characters to allocate.

Return type

int

Returns

Handle assigned to the opened DLA file.

spiceypy.spiceypy.dlatdr(x, y, z)[source]

This routine computes the Jacobian of the transformation from rectangular to latitudinal coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dlatdr_c.html

Parameters
  • x (float) – X-coordinate of point.

  • y (float) – Y-coordinate of point.

  • z (float) – Z-coord

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.dnearp(state, a, b, c)[source]

Compute the state (position and velocity) of an ellipsoid surface point nearest to the position component of a specified state.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dnearp_c.html

Parameters
  • state (ndarray) – State of an object in body fixed coordinates.

  • a (float) – Length of semi axis parallel to X axis.

  • b (float) – Length of semi axis parallel to Y axis.

  • c (float) – Length on semi axis parallel to Z axis.

Return type

Tuple[ndarray, ndarray, bool]

Returns

State of the nearest point on the ellipsoid, Altitude and derivative of altitude

spiceypy.spiceypy.dp2hx(number, lenout=256)[source]

Convert a double precision number to an equivalent character string using base 16 “scientific notation.”

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dp2hx_c.html

Parameters
  • number (float) – D.p. number to be converted.

  • lenout (int) – Available space for output string.

Return type

str

Returns

Equivalent character string, left justified.

spiceypy.spiceypy.dpgrdr(body, x, y, z, re, f)[source]

This routine computes the Jacobian matrix of the transformation from rectangular to planetographic coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dpgrdr_c.html

Parameters
  • body (str) – Body with which coordinate system is associated.

  • x (float) – X-coordinate of point.

  • y (float) – Y-coordinate of point.

  • z (int) – Z-coordinate of point.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.dpmax()[source]

Return the value of the largest (positive) number representable in a double precision variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dpmax_c.html

Return type

float

Returns

The largest (positive) number representable in a double precision variable.

spiceypy.spiceypy.dpmin()[source]

Return the value of the smallest (negative) number representable in a double precision variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dpmin_c.html

Return type

float

Returns

The smallest (negative) number that can be represented in a double precision variable.

spiceypy.spiceypy.dpr()[source]

Return the number of degrees per radian.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dpr_c.html

Return type

float

Returns

The number of degrees per radian.

spiceypy.spiceypy.drdazl(range, az, el, azccw, elplsz)[source]

Compute the Jacobian matrix of the transformation from azimuth/elevation to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdazl_c.html

Parameters
  • range (float) – Distance of a point from the origin.

  • az (float) – Azimuth of input point in radians.

  • el (float) – Elevation of input point in radians.

  • azccw (bool) – Flag indicating how azimuth is measured.

  • elplsz (bool) – Flag indicating how elevation is measured.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.drdcyl(r, lon, z)[source]

This routine computes the Jacobian of the transformation from cylindrical to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdcyl_c.html

Parameters
  • r (float) – Distance of a point from the origin.

  • lon (float) – Angle of the point from the xz plane in radians.

  • z (float) – Height of the point above the xy plane.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.drdgeo(lon, lat, alt, re, f)[source]

This routine computes the Jacobian of the transformation from geodetic to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdgeo_c.html

Parameters
  • lon (float) – Geodetic longitude of point (radians).

  • lat (float) – Geodetic latitude of point (radians).

  • alt (float) – Altitude of point above the reference spheroid.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.drdlat(r, lon, lat)[source]

Compute the Jacobian of the transformation from latitudinal to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdlat_c.html

Parameters
  • r (float) – Distance of a point from the origin.

  • lon (float) – Angle of the point from the XZ plane in radians.

  • lat (float) – Angle of the point from the XY plane in radians.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.drdpgr(body, lon, lat, alt, re, f)[source]

This routine computes the Jacobian matrix of the transformation from planetographic to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdpgr_c.html

Parameters
  • body (str) – Body with which coordinate system is associated.

  • lon (float) – Planetographic longitude of a point (radians).

  • lat (float) – Planetographic latitude of a point (radians).

  • alt (int) – Altitude of a point above reference spheroid.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.drdsph(r, colat, lon)[source]

This routine computes the Jacobian of the transformation from spherical to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/drdsph_c.html

Parameters
  • r (float) – Distance of a point from the origin.

  • colat (float) – Angle of the point from the positive z-axis.

  • lon (float) – Angle of the point from the xy plane.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.dskb02(handle, dladsc)[source]

Return bookkeeping data from a DSK type 2 segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskb02_c.html

Parameters
  • handle (int) – DSK file handle

  • dladsc (SpiceDLADescr) – DLA descriptor

Return type

Tuple[int, int, int, ndarray, float, ndarray, ndarray, int, int, int, int]

Returns

bookkeeping data from a DSK type 2 segment

spiceypy.spiceypy.dskcls(handle, optmiz=False)[source]

Close a DSK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskcls_c.html

Parameters
  • handle (int) – Handle assigned to the opened DSK file.

  • optmiz (bool) – Flag indicating whether to segregate the DSK.

Return type

None

Returns

spiceypy.spiceypy.dskd02(handle, dladsc, item, start, room)[source]

Fetch double precision data from a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskd02_c.html

Parameters
  • handle (int) – DSK file handle

  • dladsc (SpiceDLADescr) – DLA descriptor

  • item (int) – Keyword identifying item to fetch

  • start (int) – Start index

  • room (int) – Amount of room in output array

Return type

ndarray

Returns

Array containing requested item

spiceypy.spiceypy.dskgd(handle, dladsc)[source]

Return the DSK descriptor from a DSK segment identified by a DAS handle and DLA descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskgd_c.html

Parameters
  • handle (int) – Handle assigned to the opened DSK file.

  • dladsc (SpiceDLADescr) – DLA segment descriptor.

Return type

SpiceDSKDescr

Returns

DSK segment descriptor.

spiceypy.spiceypy.dskgtl(keywrd)[source]

Retrieve the value of a specified DSK tolerance or margin parameter.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskgtl_c.html

Parameters

keywrd (int) – Code specifying parameter to retrieve.

Return type

float

Returns

Value of parameter.

spiceypy.spiceypy.dski02(handle, dladsc, item, start, room)[source]

Fetch integer data from a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dski02_c.html

Parameters
  • handle (int) – DSK file handle.

  • dladsc (SpiceDLADescr) – DLA descriptor.

  • item (int) – Keyword identifying item to fetch.

  • start (int) – Start index.

  • room (int) – Amount of room in output array.

Return type

ndarray

Returns

Array containing requested item.

spiceypy.spiceypy.dskmi2(vrtces, plates, finscl, corscl, worksz, voxpsz, voxlsz, makvtl, spxisz)[source]

Make spatial index for a DSK type 2 segment. The index is returned as a pair of arrays, one of type int and one of type float. These arrays are suitable for use with the DSK type 2 writer dskw02.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskmi2_c.html

Parameters
  • vrtces (ndarray) – Vertices

  • plates (ndarray) – Plates

  • finscl (float) – Fine voxel scale

  • corscl (int) – Coarse voxel scale

  • worksz (int) – Workspace size

  • voxpsz (int) – Voxel plate pointer array size

  • voxlsz (int) – Voxel plate list array size

  • makvtl (bool) – Vertex plate list flag

  • spxisz (int) – Spatial index integer component size

Return type

Tuple[ndarray, ndarray]

Returns

double precision and integer components of the spatial index of the segment.

spiceypy.spiceypy.dskn02(handle, dladsc, plid)[source]

Compute the unit normal vector for a specified plate from a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskn02_c.html

Parameters
  • handle (int) – DSK file handle.

  • dladsc (SpiceDLADescr) – DLA descriptor.

  • plid (int) – Plate ID.

Return type

ndarray

Returns

late’s unit normal vector.

spiceypy.spiceypy.dskobj(dsk)[source]

Find the set of body ID codes of all objects for which topographic data are provided in a specified DSK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskobj_c.html

Parameters

dsk (str) – Name of DSK file.

Return type

SpiceCell

Returns

Set of ID codes of objects in DSK file.

spiceypy.spiceypy.dskopn(fname, ifname, ncomch)[source]

Open a new DSK file for subsequent write operations.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskopn_c.html

Parameters
  • fname (str) – Name of a DSK file to be opened.

  • ifname (str) – Internal file name.

  • ncomch (int) – Number of comment characters to allocate.

Return type

int

Returns

Handle assigned to the opened DSK file.

spiceypy.spiceypy.dskp02(handle, dladsc, start, room)[source]

Fetch triangular plates from a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskp02_c.html

Parameters
  • handle (int) – DSK file handle.

  • dladsc (SpiceDLADescr) – DLA descriptor.

  • start (int) – Start index.

  • room (int) – Amount of room in output array.

Return type

ndarray

Returns

Array containing plates.

spiceypy.spiceypy.dskrb2(vrtces, plates, corsys, corpar)[source]

Determine range bounds for a set of triangular plates to be stored in a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskrb2_c.html

Parameters
  • vrtces (ndarray) – Vertices

  • plates (ndarray) – Plates

  • corsys (int) – DSK coordinate system code

  • corpar (ndarray) – DSK coordinate system parameters

Return type

Tuple[float, float]

Returns

Lower and Upper bound on range of third coordinate

spiceypy.spiceypy.dsksrf(dsk, bodyid)[source]

Find the set of surface ID codes for all surfaces associated with a given body in a specified DSK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dsksrf_c.html

Parameters
  • dsk (str) – Name of DSK file.

  • bodyid (int) – Integer body ID code.

Return type

SpiceCell

Returns

Set of ID codes of surfaces in DSK file.

spiceypy.spiceypy.dskstl(keywrd, dpval)[source]

Set the value of a specified DSK tolerance or margin parameter.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskstl_c.html

Parameters
  • keywrd (int) – Code specifying parameter to set.

  • dpval (float) – Value of parameter.

Return type

None

Returns

spiceypy.spiceypy.dskv02(handle, dladsc, start, room)[source]

Fetch vertices from a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskv02_c.html

Parameters
  • handle (int) – DSK file handle.

  • dladsc (SpiceDLADescr) – DLA descriptor.

  • start (int) – Start index.

  • room (int) – Amount of room in output array.

Return type

ndarray

Returns

Array containing vertices.

spiceypy.spiceypy.dskw02(handle, center, surfid, dclass, fname, corsys, corpar, mncor1, mxcor1, mncor2, mxcor2, mncor3, mxcor3, first, last, vrtces, plates, spaixd, spaixi)[source]

Write a type 2 segment to a DSK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskw02_c.html

Parameters
  • handle (int) – Handle assigned to the opened DSK file

  • center (int) – Central body ID code

  • surfid (int) – Surface ID code

  • dclass (int) – Data class

  • fname (str) – Reference frame

  • corsys (int) – Coordinate system code

  • corpar (ndarray) – Coordinate system parameters

  • mncor1 (float) – Minimum value of first coordinate

  • mxcor1 (float) – Maximum value of first coordinate

  • mncor2 (float) – Minimum value of second coordinate

  • mxcor2 (float) – Maximum value of second coordinate

  • mncor3 (float) – Minimum value of third coordinate

  • mxcor3 (float) – Maximum value of third coordinate

  • first (float) – Coverage start time

  • last (float) – Coverage stop time

  • vrtces (ndarray) – Vertices

  • plates (ndarray) – Plates

  • spaixd (ndarray) – Double precision component of spatial index

  • spaixi (ndarray) – Integer component of spatial index

Return type

None

spiceypy.spiceypy.dskx02(handle, dladsc, vertex, raydir)[source]

Determine the plate ID and body-fixed coordinates of the intersection of a specified ray with the surface defined by a type 2 DSK plate model.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskx02_c.html

Parameters
  • handle (int) – Handle of DSK kernel containing plate model.

  • dladsc (SpiceDLADescr) – DLA descriptor of plate model segment.

  • vertex (ndarray) – Ray’s vertex in the body fixed frame.

  • raydir (ndarray) – Ray direction in the body fixed frame.

Return type

Tuple[int, ndarray, bool]

Returns

ID code of the plate intersected by the ray, Intercept, and Flag indicating whether intercept exists.

spiceypy.spiceypy.dskxsi(pri, target, srflst, et, fixref, vertex, raydir)[source]

Compute a ray-surface intercept using data provided by multiple loaded DSK segments. Return information about the source of the data defining the surface on which the intercept was found: DSK handle, DLA and DSK descriptors, and DSK data type-dependent parameters.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskxsi_c.html

Parameters
  • pri (bool) – Data prioritization flag.

  • target (str) – Target body name.

  • srflst (Sequence[int]) – Surface ID list.

  • et (float) – Epoch, expressed as seconds past J2000 TDB.

  • fixref (str) – Name of target body-fixed reference frame.

  • vertex (ndarray) – Vertex of ray.

  • raydir (ndarray) – Direction vector of ray.

Return type

Tuple[ndarray, int, SpiceDLADescr, SpiceDSKDescr, ndarray, ndarray, bool]

Returns

Intercept point, Handle of segment contributing surface data, DLADSC, DSKDSC, Double precision component of source info, Integer component of source info

spiceypy.spiceypy.dskxv(pri, target, srflst, et, fixref, vtxarr, dirarr)[source]

Compute ray-surface intercepts for a set of rays, using data provided by multiple loaded DSK segments.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskxv_c.html

Parameters
  • pri (bool) – Data prioritization flag.

  • target (str) – Target body name.

  • srflst (Sequence[int]) – Surface ID list.

  • et (float) – Epoch, expressed as seconds past J2000 TDB.

  • fixref (str) – Name of target body-fixed reference frame.

  • vtxarr (Sequence[ndarray]) – Array of vertices of rays.

  • dirarr (Sequence[ndarray]) – Array of direction vectors of rays.

Return type

Tuple[ndarray, ndarray]

Returns

Intercept point array and Found flag array.

spiceypy.spiceypy.dskz02(handle, dladsc)[source]

Return plate model size parameters—plate count and vertex count—for a type 2 DSK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskz02_c.html

Parameters
  • handle (int) – DSK file handle.

  • dladsc (SpiceDLADescr) – DLA descriptor.

Return type

Tuple[int, int]

Returns

Number of vertices, Number of plates.

spiceypy.spiceypy.dsphdr(x, y, z)[source]

This routine computes the Jacobian of the transformation from rectangular to spherical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dsphdr_c.html

Parameters
  • x (float) – X-coordinate of point.

  • y (float) – Y-coordinate of point.

  • z (float) – Z-coordinate of point.

Return type

ndarray

Returns

Matrix of partial derivatives.

spiceypy.spiceypy.dtpool(name)[source]

Return the data about a kernel pool variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dtpool_c.html

Parameters

name (str) – Name of the variable whose value is to be returned.

Return type

Tuple[int, str, bool]

Returns

Number of values returned for name, Type of the variable “C”, “N”, or “X”.

spiceypy.spiceypy.ducrss(s1, s2)[source]

Compute the unit vector parallel to the cross product of two 3-dimensional vectors and the derivative of this unit vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ducrss_c.html

Parameters
  • s1 (ndarray) – Left hand state for cross product and derivative.

  • s2 (ndarray) – Right hand state for cross product and derivative.

Return type

ndarray

Returns

Unit vector and derivative of the cross product.

spiceypy.spiceypy.dvcrss(s1, s2)[source]

Compute the cross product of two 3-dimensional vectors and the derivative of this cross product.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvcrss_c.html

Parameters
  • s1 (ndarray) – Left hand state for cross product and derivative.

  • s2 (ndarray) – Right hand state for cross product and derivative.

Return type

ndarray

Returns

State associated with cross product of positions.

spiceypy.spiceypy.dvdot(s1, s2)[source]

Compute the derivative of the dot product of two double precision position vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvdot_c.html

Parameters
  • s1 (Sequence[float]) – First state vector in the dot product.

  • s2 (Sequence[float]) – Second state vector in the dot product.

Return type

float

Returns

The derivative of the dot product.

spiceypy.spiceypy.dvhat(s1)[source]

Find the unit vector corresponding to a state vector and the derivative of the unit vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvhat_c.html

Parameters

s1 (ndarray) – State to be normalized.

Return type

ndarray

Returns

Unit vector s1 / abs(s1), and its time derivative.

spiceypy.spiceypy.dvnorm(state)[source]

Function to calculate the derivative of the norm of a 3-vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvnorm_c.html

Parameters

state (ndarray) – A 6-vector composed of three coordinates and their derivatives.

Return type

float

Returns

The derivative of the norm of a 3-vector.

spiceypy.spiceypy.dvpool(name)[source]

Delete a variable from the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvpool_c.html

Parameters

name (str) – Name of the kernel variable to be deleted.

Return type

None

spiceypy.spiceypy.dvsep(s1, s2)[source]

Calculate the time derivative of the separation angle between two input states, S1 and S2.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dvsep_c.html

Parameters
  • s1 (ndarray) – State vector of the first body.

  • s2 (ndarray) – State vector of the second body.

Return type

float

Returns

The time derivative of the angular separation between S1 and S2.

spiceypy.spiceypy.edlimb(a, b, c, viewpt)[source]

Find the limb of a triaxial ellipsoid, viewed from a specified point.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/edlimb_c.html

Parameters
  • a (float) – Length of ellipsoid semi-axis lying on the x-axis.

  • b (float) – Length of ellipsoid semi-axis lying on the y-axis.

  • c (float) – Length of ellipsoid semi-axis lying on the z-axis.

  • viewpt (Iterable[float]) – Location of viewing point.

Return type

Ellipse

Returns

Limb of ellipsoid as seen from viewing point.

spiceypy.spiceypy.ednmpt(a, b, c, normal)[source]

Return the unique point on an ellipsoid’s surface where the outward normal direction is a given vector.

Parameters
  • a (float) – Length of the ellipsoid semi-axis along the X-axis.

  • b (float) – Length of the ellipsoid semi-axis along the Y-axis.

  • c (float) – Length of the ellipsoid semi-axis along the Z-axis.

  • normal (ndarray) – Outward normal direction.

Return type

ndarray

Returns

Point where outward normal is parallel to `normal’.

spiceypy.spiceypy.edpnt(p, a, b, c)[source]

Scale a point so that it lies on the surface of a specified triaxial ellipsoid that is centered at the origin and aligned with the Cartesian coordinate axes.

Parameters
  • p (ndarray) – A point in three-dimensional space.

  • a (float) – Semi-axis length in the X direction.

  • b (float) – Semi-axis length in the Y direction.

  • c (float) – Semi-axis length in the Z direction.

Return type

ndarray

Returns

Point on ellipsoid.

spiceypy.spiceypy.edterm(trmtyp, source, target, et, fixref, abcorr, obsrvr, npts)[source]

Compute a set of points on the umbral or penumbral terminator of a specified target body, where the target shape is modeled as an ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/edterm_c.html

Parameters
  • trmtyp (str) – Terminator type.

  • source (str) – Light source.

  • target (str) – Target body.

  • et (float) – Observation epoch.

  • fixref (str) – Body-fixed frame associated with target.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Observer.

  • npts (int) – Number of points in terminator set.

Return type

Tuple[float, ndarray, ndarray]

Returns

Epoch associated with target center, Position of observer in body-fixed frame, Terminator point set.

spiceypy.spiceypy.ekacec(handle, segno, recno, column, nvals, cvals, isnull)[source]

Add data to a character column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacec_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be added.

  • column (str) – Column name.

  • nvals (int) – Number of values to add to column.

  • cvals (Iterable[str]) – Character values to add to column.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekaced(handle, segno, recno, column, nvals, dvals, isnull)[source]

Add data to an double precision column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekaced_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be added.

  • column (str) – Column name.

  • nvals (int) – Number of values to add to column.

  • dvals (Union[ndarray, Iterable[float]]) – Double precision values to add to column.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekacei(handle, segno, recno, column, nvals, ivals, isnull)[source]

Add data to an integer column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacei_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be added.

  • column (str) – Column name.

  • nvals (int) – Number of values to add to column.

  • ivals (Union[ndarray, Iterable[int]]) – Integer values to add to column.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekaclc(handle, segno, column, vallen, cvals, entszs, nlflgs, rcptrs, wkindx)[source]

Add an entire character column to an EK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekaclc_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Number of segment to add column to.

  • column (str) – Column name.

  • vallen (int) – Length of character values.

  • cvals (Iterable[str]) – Character values to add to column.

  • entszs (Union[ndarray, Iterable[int]]) – Array of sizes of column entries.

  • nlflgs (Iterable[bool]) – Array of null flags for column entries.

  • rcptrs (ndarray) – Record pointers for segment.

  • wkindx (Union[ndarray, Iterable[int]]) – Work space for column index.

Return type

ndarray

Returns

Work space for column index.

spiceypy.spiceypy.ekacld(handle, segno, column, dvals, entszs, nlflgs, rcptrs, wkindx)[source]

Add an entire double precision column to an EK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacld_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Number of segment to add column to.

  • column (str) – Column name.

  • dvals (Union[ndarray, Iterable[float]]) – Double precision values to add to column.

  • entszs (Union[ndarray, Iterable[int]]) – Array of sizes of column entries.

  • nlflgs (Iterable[bool]) – Array of null flags for column entries.

  • rcptrs (ndarray) – Record pointers for segment.

  • wkindx (Union[ndarray, Iterable[int]]) – Work space for column index.

Return type

ndarray

Returns

Work space for column index.

spiceypy.spiceypy.ekacli(handle, segno, column, ivals, entszs, nlflgs, rcptrs, wkindx)[source]

Add an entire integer column to an EK segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekacli_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Number of segment to add column to.

  • column (str) – Column name.

  • ivals (Union[ndarray, Iterable[int]]) – Integer values to add to column.

  • entszs (Union[ndarray, Iterable[int]]) – Array of sizes of column entries.

  • nlflgs (Iterable[bool]) – Array of null flags for column entries.

  • rcptrs (ndarray) – Record pointers for segment.

  • wkindx (Union[ndarray, Iterable[int]]) – Work space for column index.

Return type

ndarray

Returns

Work space for column index.

spiceypy.spiceypy.ekappr(handle, segno)[source]

Append a new, empty record at the end of a specified E-kernel segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekappr_c.html

Parameters
  • handle (int) – File handle.

  • segno (int) – Segment number.

Return type

int

Returns

Number of appended record.

spiceypy.spiceypy.ekbseg(handle, tabnam, cnames, decls)[source]

Start a new segment in an E-kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekbseg_c.html

Parameters
  • handle (int) – File handle.

  • tabnam (str) – Table name.

  • cnames (Sequence[str]) – Names of columns.

  • decls (Sequence[str]) – Declarations of columns.

Return type

int

Returns

Segment number.

spiceypy.spiceypy.ekccnt(table)[source]

Return the number of distinct columns in a specified, currently loaded table.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekccnt_c.html

Parameters

table (str) – Name of table.

Return type

int

Returns

Count of distinct, currently loaded columns.

spiceypy.spiceypy.ekcii(table, cindex, lenout=256)[source]

Return attribute information about a column belonging to a loaded EK table, specifying the column by table and index.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekcii_c.html

Parameters
  • table (str) – Name of table containing column.

  • cindex (int) – Index of column whose attributes are to be found.

  • lenout (int) – Maximum allowed length of column name.

Return type

Tuple[str, SpiceEKAttDsc]

Returns

Name of column, Column attribute descriptor.

spiceypy.spiceypy.ekcls(handle)[source]

Close an E-kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekcls_c.html

Parameters

handle (int) – EK file handle.

Return type

None

spiceypy.spiceypy.ekdelr(handle, segno, recno)[source]

Delete a specified record from a specified E-kernel segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekdelr_c.html

Parameters
  • handle (int) – File handle.

  • segno (int) – Segment number.

  • recno (int) – Record number.

Return type

None

spiceypy.spiceypy.ekffld(handle, segno, rcptrs)[source]

Complete a fast write operation on a new E-kernel segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekffld_c.html

Parameters
  • handle (int) – File handle.

  • segno (int) – Segment number.

  • rcptrs (ndarray) – Record pointers.

Return type

None

spiceypy.spiceypy.ekfind(query, lenout=256)[source]

Find E-kernel data that satisfy a set of constraints.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekfind_c.html

Parameters
  • query (str) – Query specifying data to be found.

  • lenout (int) – Declared length of output error message string.

Return type

Tuple[int, int, str]

Returns

Number of matching rows, Flag indicating whether query parsed correctly, Parse error description.

spiceypy.spiceypy.ekgc(selidx, row, element, lenout=256)[source]

Return an element of an entry in a column of character type in a specified row.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgc_c.html

Parameters
  • selidx (int) – Index of parent column in SELECT clause.

  • row (int) – Row to fetch from.

  • element (int) – Index of element, within column entry, to fetch.

  • lenout (int) – Maximum length of column element.

Return type

Tuple[str, int, bool]

Returns

Character string element of column entry, Flag indicating whether column entry was null.

spiceypy.spiceypy.ekgd(selidx, row, element)[source]

Return an element of an entry in a column of double precision type in a specified row.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgd_c.html

Parameters
  • selidx (int) – Index of parent column in SELECT clause.

  • row (int) – Row to fetch from.

  • element (int) – Index of element, within column entry, to fetch.

Return type

Tuple[float, int, bool]

Returns

Double precision element of column entry, Flag indicating whether column entry was null.

spiceypy.spiceypy.ekgi(selidx, row, element)[source]

Return an element of an entry in a column of integer type in a specified row.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekgi_c.html

Parameters
  • selidx (int) – Index of parent column in SELECT clause.

  • row (int) – Row to fetch from.

  • element (int) – Index of element, within column entry, to fetch.

Return type

Tuple[int, int, bool]

Returns

Integer element of column entry, Flag indicating whether column entry was null.

spiceypy.spiceypy.ekifld(handle, tabnam, ncols, nrows, cnmlen, cnames, declen, decls)[source]

Initialize a new E-kernel segment to allow fast writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekifld_c.html

Parameters
  • handle (int) – File handle.

  • tabnam (str) – Table name.

  • ncols (int) – Number of columns in the segment.

  • nrows (int) – Number of rows in the segment.

  • cnmlen (int) – Length of names in in column name array.

  • cnames (Iterable[str]) – Names of columns.

  • declen (int) – Length of declaration strings in declaration array.

  • decls (Iterable[str]) – Declarations of columns.

Return type

Tuple[int, ndarray]

Returns

Segment number, Array of record pointers.

spiceypy.spiceypy.ekinsr(handle, segno, recno)[source]

Add a new, empty record to a specified E-kernel segment at a specified index.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekinsr_c.html

Parameters
  • handle (int) – File handle.

  • segno (int) – Segment number.

  • recno (int) – Record number.

Return type

None

spiceypy.spiceypy.eklef(fname)[source]

Load an EK file, making it accessible to the EK readers.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eklef_c.html

Parameters

fname (str) – Name of EK file to load.

Return type

int

Returns

File handle of loaded EK file.

spiceypy.spiceypy.eknelt(selidx, row)[source]

Return the number of elements in a specified column entry in the current row.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eknelt_c.html

Parameters
  • selidx (int) – Index of parent column in SELECT clause.

  • row (int) – Row containing element.

Return type

int

Returns

The number of elements in entry in current row.

spiceypy.spiceypy.eknseg(handle)[source]

Return the number of segments in a specified EK.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eknseg_c.html

Parameters

handle (int) – EK file handle.

Return type

int

Returns

The number of segments in the specified E-kernel.

spiceypy.spiceypy.ekntab()[source]

Return the number of loaded EK tables.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekntab_c.html

Return type

int

Returns

The number of loaded EK tables.

spiceypy.spiceypy.ekopn(fname, ifname, ncomch)[source]

Open a new E-kernel file and prepare the file for writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekopn_c.html

Parameters
  • fname (str) – Name of EK file.

  • ifname (str) – Internal file name.

  • ncomch (int) – The number of characters to reserve for comments.

Return type

int

Returns

Handle attached to new EK file.

spiceypy.spiceypy.ekopr(fname)[source]

Open an existing E-kernel file for reading.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekopr_c.html

Parameters

fname (str) – Name of EK file.

Return type

int

Returns

Handle attached to EK file.

spiceypy.spiceypy.ekops()[source]

Open a scratch (temporary) E-kernel file and prepare the file for writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekops_c.html

Return type

int

Returns

Handle attached to new EK file.

spiceypy.spiceypy.ekopw(fname)[source]

Open an existing E-kernel file for writing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekopw_c.html

Parameters

fname (str) – Name of EK file.

Return type

int

Returns

Handle attached to EK file.

spiceypy.spiceypy.ekpsel(query, msglen, tablen, collen)[source]

Parse the SELECT clause of an EK query, returning full particulars concerning each selected item.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekpsel_c.html note: oddly docs at url are incomplete/incorrect.

Parameters
  • query (str) – EK query.

  • msglen (int) – Available space in the output error message string.

  • tablen (int) – UNKNOWN? Length of Table?

  • collen (int) – UNKOWN? Length of Column?

Return type

Tuple[int, ndarray, ndarray, ndarray, ndarray, Iterable[str], Iterable[str], int, str]

Returns

Number of items in SELECT clause of query, Begin positions of expressions in SELECT clause, End positions of expressions in SELECT clause, Data types of expressions, Classes of expressions, Names of tables qualifying SELECT columns, Names of columns in SELECT clause of query, Error flag, Parse error message.

spiceypy.spiceypy.ekrcec(handle, segno, recno, column, lenout, nelts=100)[source]

Read data from a character column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekrcec_c.html

Parameters
  • handle (int) – Handle attached to EK file.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record from which data is to be read.

  • column (str) – Column name.

  • lenout (int) – Maximum length of output strings.

  • nelts (int) – Number of elements to allow for (default=100)

Return type

Tuple[int, Iterable[str], bool]

Returns

Number of values in column entry, Character values in column entry, Flag indicating whether column entry is null.

spiceypy.spiceypy.ekrced(handle, segno, recno, column, nelts=100)[source]

Read data from a double precision column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekrced_c.html

Parameters
  • handle (int) – Handle attached to EK file.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record from which data is to be read.

  • column (str) – Column name.

  • nelts (int) – room for data default 100

Return type

Tuple[int, ndarray, bool]

Returns

Number of values in column entry, Float values in column entry, Flag indicating whether column entry is null.

spiceypy.spiceypy.ekrcei(handle, segno, recno, column, nelts=100)[source]

Read data from an integer column in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekrcei_c.html

Parameters
  • handle (int) – Handle attached to EK file.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record from which data is to be read.

  • column (str) – Column name.

  • nelts (int) – room for data default 100

Return type

Tuple[int, ndarray, bool]

Returns

Number of values in column entry, Integer values in column entry, Flag indicating whether column entry is null.

spiceypy.spiceypy.ekssum(handle, segno)[source]

Return summary information for a specified segment in a specified EK.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekssum_c.html

Parameters
  • handle (int) – Handle of EK.

  • segno (int) – Number of segment to be summarized.

Return type

SpiceEKSegSum

Returns

EK segment summary.

spiceypy.spiceypy.ektnam(n, lenout=256)[source]

Return the name of a specified, loaded table.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ektnam_c.html

Parameters
  • n (int) – Index of table.

  • lenout (int) – Maximum table name length.

Return type

str

Returns

Name of table.

spiceypy.spiceypy.ekucec(handle, segno, recno, column, nvals, cvals, isnull)[source]

Update a character column entry in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekucec_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be updated.

  • column (str) – Column name.

  • nvals (int) – Number of values in new column entry.

  • cvals (Iterable[str]) – Character values comprising new column entry.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekuced(handle, segno, recno, column, nvals, dvals, isnull)[source]

Update a double precision column entry in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekuced_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be updated.

  • column (str) – Column name.

  • nvals (int) – Number of values in new column entry.

  • dvals (Union[ndarray, Iterable[float]]) – Double precision values comprising new column entry.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekucei(handle, segno, recno, column, nvals, ivals, isnull)[source]

Update an integer column entry in a specified EK record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekucei_c.html

Parameters
  • handle (int) – EK file handle.

  • segno (int) – Index of segment containing record.

  • recno (int) – Record to which data is to be updated.

  • column (str) – Column name.

  • nvals (int) – Number of values in new column entry.

  • ivals (Union[ndarray, Iterable[int]]) – Integer values comprising new column entry.

  • isnull (bool) – Flag indicating whether column entry is null.

Return type

None

spiceypy.spiceypy.ekuef(handle)[source]

Unload an EK file, making its contents inaccessible to the EK reader routines, and clearing space in order to allow other EK files to be loaded.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekuef_c.html

Parameters

handle (int) – Handle of EK file.

Return type

None

spiceypy.spiceypy.el2cgv(ellipse)[source]

Convert an ellipse to a center vector and two generating vectors. The selected generating vectors are semi-axes of the ellipse.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/el2cgv_c.html

Parameters

ellipse (Ellipse) – An Ellipse

Return type

Tuple[ndarray, ndarray, ndarray]

Returns

Center and semi-axes of ellipse.

spiceypy.spiceypy.elemc(item, inset)[source]

Determine whether an item is an element of a character set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/elemc_c.html

Parameters
  • item (str) – Item to be tested.

  • inset (SpiceCell) – Set to be tested.

Return type

bool

Returns

True if item is an element of set.

spiceypy.spiceypy.elemd(item, inset)[source]

Determine whether an item is an element of a double precision set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/elemd_c.html

Parameters
  • item (float) – Item to be tested.

  • inset (SpiceCell) – Set to be tested.

Return type

bool

Returns

True if item is an element of set.

spiceypy.spiceypy.elemi(item, inset)[source]

Determine whether an item is an element of an integer set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/elemi_c.html

Parameters
  • item (int) – Item to be tested.

  • inset (SpiceCell) – Set to be tested.

Return type

bool

Returns

True if item is an element of set.

spiceypy.spiceypy.eqncpv(et, epoch, eqel, rapol, decpol)[source]

Compute the state (position and velocity of an object whose trajectory is described via equinoctial elements relative to some fixed plane (usually the equatorial plane of some planet).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eqncpv_c.html

Parameters
  • et (float) – Epoch in seconds past J2000 to find state.

  • epoch (float) – Epoch of elements in seconds past J2000.

  • eqel (Iterable[float]) – Array of equinoctial elements

  • rapol (float) – Right Ascension of the pole of the reference plane.

  • decpol (float) – Declination of the pole of the reference plane.

Return type

ndarray

Returns

State of the object described by eqel.

spiceypy.spiceypy.eqstr(a, b)[source]

Determine whether two strings are equivalent.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eqstr_c.html

Parameters
  • a (str) – Arbitrary character string.

  • b (str) – Arbitrary character string.

Return type

bool

Returns

True if A and B are equivalent.

spiceypy.spiceypy.erract(op, lenout, action=None)[source]

Retrieve or set the default error action. spiceypy sets the default error action to “report” on init.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/erract_c.html

Parameters
  • op (str) – peration, “GET” or “SET”.

  • lenout (int) – Length of list for output.

  • action (Optional[str]) – Error response action.

Return type

str

Returns

Error response action.

spiceypy.spiceypy.errch(marker, string)[source]

Substitute a character string for the first occurrence of a marker in the current long error message.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errch_c.html

Parameters
  • marker (str) – A substring of the error message to be replaced.

  • string (str) – The character string to substitute for marker.

Return type

None

spiceypy.spiceypy.errdev(op, lenout, device)[source]

Retrieve or set the name of the current output device for error messages.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errdev_c.html

Parameters
  • op (str) – The operation, “GET” or “SET”.

  • lenout (int) – Length of device for output.

  • device (str) – The device name.

Return type

str

Returns

The device name.

spiceypy.spiceypy.errdp(marker, number)[source]

Substitute a double precision number for the first occurrence of a marker found in the current long error message.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errdp_c.html

Parameters
  • marker (str) – A substring of the error message to be replaced.

  • number (float) – The d.p. number to substitute for marker.

Return type

None

spiceypy.spiceypy.errint(marker, number)[source]

Substitute an integer for the first occurrence of a marker found in the current long error message.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errint_c.html

Parameters
  • marker (str) – A substring of the error message to be replaced.

  • number (int) – The integer to substitute for marker.

Return type

None

spiceypy.spiceypy.errprt(op, lenout, inlist)[source]

Retrieve or set the list of error message items to be output when an error is detected.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/errprt_c.html

Parameters
  • op (str) – The operation, “GET” or “SET”.

  • lenout (int) – Length of list for output.

  • inlist (str) – Specification of error messages to be output.

Return type

str

Returns

A list of error message items.

spiceypy.spiceypy.esrchc(value, array)[source]

Search for a given value within a character string array. Return the index of the first equivalent array entry, or -1 if no equivalent element is found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/esrchc_c.html

Parameters
  • value (str) – Key value to be found in array.

  • array (Sequence[str]) – Character string array to search.

Return type

int

Returns

The index of the first array entry equivalent to value, or -1 if none is found.

spiceypy.spiceypy.et2datetime(et)[source]

Convert an input time from ephemeris seconds past J2000 to a standard Python datetime.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/req/time.html#The%20J2000%20Epoch

Parameters

et (Union[Iterable[float], float]) – Input epoch, given in ephemeris seconds past J2000.

Return type

Union[ndarray, datetime]

Returns

Output datetime object in UTC

spiceypy.spiceypy.et2lst(et, body, lon, typein, timlen=256, ampmlen=256)[source]

Given an ephemeris epoch, compute the local solar time for an object on the surface of a body at a specified longitude.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/et2lst_c.html

Parameters
  • et (float) – Epoch in seconds past J2000 epoch.

  • body (int) – ID-code of the body of interest.

  • lon (float) – Longitude of surface point (RADIANS).

  • typein (str) – Type of longitude “PLANETOCENTRIC”, etc.

  • timlen (int) – Available room in output time string.

  • ampmlen (int) – Available room in output ampm string.

Return type

Tuple[int, int, int, str, str]

Returns

Local hour on a “24 hour” clock, Minutes past the hour, Seconds past the minute, String giving local time on 24 hour clock, String giving time on A.M. / P.M. scale.

spiceypy.spiceypy.et2utc(et, format_str, prec, lenout=256)[source]

Convert an input time from ephemeris seconds past J2000 to Calendar, Day-of-Year, or Julian Date format, UTC.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/et2utc_c.html

Parameters
  • et (Union[float, Iterable[float]]) – Input epoch, given in ephemeris seconds past J2000.

  • format_str (str) – Format of output epoch.

  • prec (int) – Digits of precision in fractional seconds or days.

  • lenout (int) – The length of the output string plus 1.

Return type

Union[ndarray, str]

Returns

Output time string in UTC

spiceypy.spiceypy.etcal(et, lenout=256)[source]

Convert from an ephemeris epoch measured in seconds past the epoch of J2000 to a calendar string format using a formal calendar free of leapseconds.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/etcal_c.html

Parameters
  • et (Union[float, ndarray]) – Ephemeris time measured in seconds past J2000.

  • lenout (int) – Length of output string.

Return type

Union[str, Iterable[str]]

Returns

A standard calendar representation of et.

spiceypy.spiceypy.eul2m(angle3, angle2, angle1, axis3, axis2, axis1)[source]

Construct a rotation matrix from a set of Euler angles.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eul2m_c.html

Parameters
  • angle3 (float) – Rotation angle about third rotation axis (radians).

  • angle2 (float) – Rotation angle about second rotation axis (radians).

  • angle1 (float) – Rotation angle about first rotation axis (radians).

  • axis3 (int) – Axis number of third rotation axis.

  • axis2 (int) – Axis number of second rotation axis.

  • axis1 (int) – Axis number of first rotation axis.]

Return type

ndarray

Returns

Product of the 3 rotations.

spiceypy.spiceypy.eul2xf(eulang, axisa, axisb, axisc)[source]

This routine computes a state transformation from an Euler angle factorization of a rotation and the derivatives of those Euler angles.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/eul2xf_c.html

Parameters
  • eulang (Sequence[float]) – An array of Euler angles and their derivatives.

  • axisa (int) – Axis A of the Euler angle factorization.

  • axisb (int) – Axis B of the Euler angle factorization.

  • axisc (int) – Axis C of the Euler angle factorization.

Return type

ndarray

Returns

A state transformation matrix.

spiceypy.spiceypy.ev2lin(et, geophs, elems)[source]

This routine evaluates NORAD two-line element data for near-earth orbiting spacecraft (that is spacecraft with orbital periods less than 225 minutes).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/ev2lin.html

Parameters
  • et (float) – Epoch in seconds past ephemeris epoch J2000.

  • geophs (Sequence[float]) – Geophysical constants

  • elems (Sequence[float]) – Two-line element data

Return type

ndarray

Returns

Evaluated state

spiceypy.spiceypy.evsgp4(et, geophs, elems)[source]

Evaluate NORAD two-line element data for earth orbiting spacecraft. This evaluator uses algorithms as described in Vallado 2006

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/evsgp4_c.html

Parameters
  • et (float) – Epoch in seconds past ephemeris epoch J2000.

  • geophs (Sequence[float]) – Geophysical constants

  • elems (Sequence[float]) – Two-line element data

Return type

ndarray

Returns

Evaluated state

spiceypy.spiceypy.exists(fname)[source]

Determine whether a file exists.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/exists_c.html

Parameters

fname (str) – Name of the file in question.

Return type

bool

Returns

True if the file exists, False otherwise.

spiceypy.spiceypy.expool(name)[source]

Confirm the existence of a kernel variable in the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/expool_c.html

Parameters

name (str) – Name of the variable whose value is to be returned.

Return type

bool

Returns

True when the variable is in the pool.

spiceypy.spiceypy.failed()[source]

True if an error condition has been signalled via sigerr_c.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/failed_c.html

Return type

bool

Returns

a boolean

spiceypy.spiceypy.fn2lun(fname)[source]

Internal undocumented command for mapping name of open file to its FORTRAN (F2C) logical unit.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/fn2lun.html

Parameters

fname (str) – name of the file to be mapped to its logical unit.

Return type

int

Returns

the FORTRAN (F2C) logical unit associated with the filename.

spiceypy.spiceypy.found_check()[source]

Temporarily enables spiceypy default behavior which raises exceptions for false found flags for certain spice functions. All spice functions executed within the context manager will check the found flag return parameter and the found flag will be removed from the return for the given function. For Example bodc2n in spiceypy is normally called like:

name = spice.bodc2n(399)

With the possibility that an exception is thrown in the even of a invalid ID:

name = spice.bodc2n(-999991) # throws a SpiceyError

With this function however, we can use it as a context manager to do this:

with spice.found_check():
    found = spice.bodc2n(-999991) # will raise an exception!

Within the context any spice functions called that normally check the found flags will pass through the check without raising an exception if they are false.

Return type

Iterator[None]

spiceypy.spiceypy.found_check_off()[source]

Method that turns off found catching

Return type

None

spiceypy.spiceypy.found_check_on()[source]

Method that turns on found catching

Return type

None

spiceypy.spiceypy.fovray(inst, raydir, rframe, abcorr, observer, et)[source]

Determine if a specified ray is within the field-of-view (FOV) of a specified instrument at a given time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/fovray_c.html

Parameters
  • inst (str) – Name or ID code string of the instrument.

  • raydir (Union[ndarray, Iterable[float]]) – Ray’s direction vector.

  • rframe (str) – Body-fixed, body-centered frame for target body.

  • abcorr (str) – Aberration correction flag.

  • observer (str) – Name or ID code string of the observer.

  • et (float) – Time of the observation (seconds past J2000).

Return type

bool

Returns

Visibility flag

spiceypy.spiceypy.fovtrg(inst, target, tshape, tframe, abcorr, observer, et)[source]

Determine if a specified ephemeris object is within the field-of-view (FOV) of a specified instrument at a given time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/fovtrg_c.html

Parameters
  • inst (str) – Name or ID code string of the instrument.

  • target (str) – Name or ID code string of the target.

  • tshape (str) – Type of shape model used for the target.

  • tframe (str) – Body-fixed, body-centered frame for target body.

  • abcorr (str) – Aberration correction flag.

  • observer (str) – Name or ID code string of the observer.

  • et (float) – Time of the observation (seconds past J2000).

Return type

bool

Returns

Visibility flag

spiceypy.spiceypy.frame(x)[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/frame_c.html

Parameters

x (Union[ndarray, Iterable[float]]) – Input vector. A parallel unit vector on output.

Return type

Tuple[ndarray, ndarray, ndarray]

Returns

a tuple of 3 list[3]

spiceypy.spiceypy.frinfo(frcode)[source]

Retrieve the minimal attributes associated with a frame needed for converting transformations to and from it.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/frinfo_c.html

Parameters

frcode (int) – the idcode for some frame.

Return type

Tuple[int, int, int, bool]

Returns

a tuple of attributes associated with the frame.

spiceypy.spiceypy.frmnam(frcode, lenout=256)[source]

Retrieve the name of a reference frame associated with a SPICE ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/frmnam_c.html

Parameters
  • frcode (int) – an integer code for a reference frame

  • lenout (int) – Maximum length of output string.

Return type

str

Returns

the name associated with the reference frame.

spiceypy.spiceypy.fromisoformat(s)[source]
spiceypy.spiceypy.ftncls(unit)[source]

Close a file designated by a Fortran-style integer logical unit.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ftncls_c.html

Parameters

unit (int) – Fortran-style logical unit.

Return type

None

spiceypy.spiceypy.furnsh(path)[source]

Load one or more SPICE kernels into a program.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/furnsh_c.html

Parameters

path (Union[str, Iterable[str]]) – one or more paths to kernels

Return type

None

spiceypy.spiceypy.gcpool(name, start, room, lenout=256)[source]

Return the character value of a kernel variable from the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gcpool_c.html

Parameters
  • name (str) – Name of the variable whose value is to be returned.

  • start (int) – Which component to start retrieving for name.

  • room (int) – The largest number of values to return.

  • lenout (int) – The length of the output string.

Return type

Tuple[Iterable[str], bool]

Returns

Values associated with name.

spiceypy.spiceypy.gdpool(name, start, room)[source]

Return the d.p. value of a kernel variable from the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gdpool_c.html

Parameters
  • name (str) – Name of the variable whose value is to be returned.

  • start (int) – Which component to start retrieving for name.

  • room (int) – The largest number of values to return.

Return type

Tuple[ndarray, bool]

Returns

Values associated with name.

spiceypy.spiceypy.georec(lon, lat, alt, re, f)[source]

Convert geodetic coordinates to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/georec_c.html

Parameters
  • lon (float) – Geodetic longitude of point (radians).

  • lat (float) – Geodetic latitude of point (radians).

  • alt (float) – Altitude of point above the reference spheroid.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Rectangular coordinates of point.

spiceypy.spiceypy.get_found_catch_state()[source]

Returns the current found catch state

Return type

bool

Returns

spiceypy.spiceypy.getelm(frstyr, lineln, lines)[source]

Given a the “lines” of a two-line element set, parse the lines and return the elements in units suitable for use in SPICE software.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getelm_c.html

Parameters
  • frstyr (int) – Year of earliest representable two-line elements.

  • lineln (int) – Length of strings in lines array.

  • lines (Iterable[str]) – A pair of “lines” containing two-line elements.

Return type

Tuple[float, ndarray]

Returns

The epoch of the elements in seconds past J2000, The elements converted to SPICE units.

spiceypy.spiceypy.getfat(file)[source]

Determine the file architecture and file type of most SPICE kernel files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getfat_c.html

Parameters

file (str) – The name of a file to be examined.

Return type

Tuple[str, str]

Returns

The architecture of the kernel file, The type of the kernel file.

spiceypy.spiceypy.getfov(instid, room, shapelen=256, framelen=256)[source]

This routine returns the field-of-view (FOV) parameters for a specified instrument.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getfov_c.html

Parameters
  • instid (int) – NAIF ID of an instrument.

  • room (int) – Maximum number of vectors that can be returned.

  • shapelen (int) – Space available in the string shape.

  • framelen (int) – Space available in the string frame.

Return type

Tuple[str, str, ndarray, int, ndarray]

Returns

Instrument FOV shape, Name of the frame in which FOV vectors are defined, Boresight vector, Number of boundary vectors returned, FOV boundary vectors.

spiceypy.spiceypy.getfvn(inst, room, shapelen=256, framelen=256)[source]

Return the field-of-view (FOV) parameters for a specified instrument. The instrument is specified by name.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getfvn_c.html

Parameters
  • inst (str) – Name of an instrument.

  • room (int) – Maximum number of vectors that can be returned.

  • shapelen (int) – Space available in the string shape.

  • framelen (int) – Space available in the string frame.

Return type

Tuple[str, str, ndarray, int, ndarray]

Returns

Instrument FOV shape, Name of the frame in which FOV vectors are defined, Boresight vector, Number of boundary vectors returned, FOV boundary vectors.

spiceypy.spiceypy.getmsg(option, lenout=256)[source]

Retrieve the current short error message, the explanation of the short error message, or the long error message.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/getmsg_c.html

Parameters
  • option (str) – Indicates type of error message.

  • lenout (int) – Available space in the output string msg.

Return type

str

Returns

The error message to be retrieved.

spiceypy.spiceypy.gfbail()[source]

Indicate whether an interrupt signal (SIGINT) has been received.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfbail_c.html

Return type

bool

Returns

True if an interrupt signal has been received by the GF handler.

spiceypy.spiceypy.gfclrh()[source]

Clear the interrupt signal handler status, so that future calls to gfbail() will indicate no interrupt was received.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfclrh_c.html

Return type

None

spiceypy.spiceypy.gfdist(target, abcorr, obsrvr, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Return the time window over which a specified constraint on observer-target distance is met.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfdist_c.html

Parameters
  • target (str) – Name of the target body.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • relate (str) – Relational operator.

  • refval (int) – Reference value.

  • adjust (float) – Adjustment value for absolute extrema searches.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is confined.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfevnt(udstep, udrefn, gquant, qnpars, lenvals, qpnams, qcpars, qdpars, qipars, qlpars, op, refval, tol, adjust, rpt, udrepi, udrepu, udrepf, nintvls, bail, udbail, cnfine, result=None)[source]

Determine time intervals when a specified geometric quantity satisfies a specified mathematical condition.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfevnt_c.html

Parameters
  • udstep (CFunctionType) – Name of the routine that computes and returns a

  • udrefn (CFunctionType) – Name of the routine that computes a refined time

  • gquant (str) – Type of geometric quantity

  • qnpars (int) – Number of quantity definition parameters

  • lenvals (int) – Length of strings in qpnams and qcpars

  • qpnams (Iterable[str]) – Names of quantity definition parameters

  • qcpars (Iterable[str]) – Array of character quantity definition parameters

  • qdpars (Union[ndarray, Iterable[float]]) – Array of double precision quantity definition

  • qipars (Union[ndarray, Iterable[int]]) – Array of integer quantity definition parameters

  • qlpars (Union[ndarray, Iterable[int]]) – Array of logical quantity definition parameters

  • op (str) – Operator that either looks for an extreme value

  • refval (float) – Reference value

  • tol (float) – Convergence tolerance in seconds

  • adjust (float) – Absolute extremum adjustment value

  • rpt (int) – Progress reporter on TRUE or off FALSE

  • udrepi (CFunctionType) – Function that initializes progress reporting

  • udrepu (CFunctionType) – Function that updates the progress report

  • udrepf (CFunctionType) – Function that finalizes progress reporting

  • nintvls (int) – Workspace window interval count

  • bail (int) – Logical indicating program interrupt monitoring

  • udbail (CFunctionType) – Name of a routine that signals a program interrupt

  • cnfine (SpiceCell) – SPICE window to which the search is restricted

  • result (Optional[SpiceCell]) – Optional SPICE window containing results

spiceypy.spiceypy.gffove(inst, tshape, raydir, target, tframe, abcorr, obsrvr, tol, udstep, udrefn, rpt, udrepi, udrepu, udrepf, bail, udbail, cnfine, result=None)[source]

Determine time intervals when a specified target body or ray intersects the space bounded by the field-of-view (FOV) of a specified instrument. Report progress and handle interrupts if so commanded.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gffove_c.html

Parameters
  • inst (str) – Name of the instrument

  • tshape (str) – Type of shape model used for target body

  • raydir (Union[ndarray, Iterable[float]]) – Ray s direction vector

  • target (str) – Name of the target body

  • tframe (str) – Body fixed body centered frame for target body

  • abcorr (str) – Aberration correction flag

  • obsrvr (str) – Name of the observing body

  • tol (float) – Convergence tolerance in seconds

  • udstep (CFunctionType) – Name of the routine that returns a time step

  • udrefn (CFunctionType) – Name of the routine that computes a refined time

  • rpt (int) – Progress report flag

  • udrepi (CFunctionType) – Function that initializes progress reporting.

  • udrepu (CFunctionType) – Function that updates the progress report

  • udrepf (CFunctionType) – Function that finalizes progress reporting

  • bail (int) – Logical indicating program interrupt monitoring

  • udbail (CFunctionType) – Name of a routine that signals a program interrupt

  • cnfine (SpiceCell) – SPICE window to which the search is restricted

  • result (Optional[SpiceCell]) – Optional SPICE window containing results

spiceypy.spiceypy.gfilum(method, angtyp, target, illumn, fixref, abcorr, obsrvr, spoint, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Return the time window over which a specified constraint on the observed phase, solar incidence, or emission angle at a specifed target body surface point is met.

Parameters
  • method (str) – Shape model used to represent the surface of the target body.

  • angtyp (str) – The type of illumination angle for which a search is to be performed.

  • target (str) – Name of a target body.

  • illumn (str) – Name of the illumination source.

  • fixref (str) – Name of the body-fixed, body-centered reference frame associated with the target body.

  • abcorr (str) – The aberration corrections to be applied.

  • obsrvr (str) – Name of an observing body.

  • spoint (Union[ndarray, Iterable[float]]) – Body-fixed coordinates of a target surface point.

  • relate (str) – Relational operator used to define a constraint on a specified illumination angle.

  • refval (float) – Reference value used with ‘relate’ to define an equality or inequality to be satisfied by the specified illumination angle.

  • adjust (float) – Parameter used to modify searches for absolute extrema.

  • step (float) – Step size to be used in the search.

  • nintvls (int) – Number of intervals that can be accommodated by each of the dynamically allocated workspace windows used internally by this routine.

  • cnfine (SpiceCell) – Window that confines the time period over which the specified search is conducted. This can be updated by gfilum

  • result (Optional[SpiceCell]) – Optional SPICE Window of intervals in the confinement window that the illumination angle constraint is satisfied.

Return type

SpiceCell

spiceypy.spiceypy.gfinth(sigcode)[source]

Respond to the interrupt signal SIGINT: save an indication that the signal has been received. This routine restores itself as the handler for SIGINT.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfinth_c.html

Parameters

sigcode (int) – Interrupt signal ID code.

Return type

None

spiceypy.spiceypy.gfocce(occtyp, front, fshape, fframe, back, bshape, bframe, abcorr, obsrvr, tol, udstep, udrefn, rpt, udrepi, udrepu, udrepf, bail, udbail, cnfine, result=None)[source]

Determine time intervals when an observer sees one target occulted by another. Report progress and handle interrupts if so commanded.

The surfaces of the target bodies may be represented by triaxial ellipsoids or by topographic data provided by DSK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfocce_c.html

Parameters
  • occtyp (str) – Type of occultation

  • front (str) – Name of body occulting the other

  • fshape (str) – Type of shape model used for front body

  • fframe (str) – Body fixed body centered frame for front body

  • back (str) – Name of body occulted by the other

  • bshape (str) – Type of shape model used for back body

  • bframe (str) – Body fixed body centered frame for back body

  • abcorr (str) – Aberration correction flag

  • obsrvr (str) – Name of the observing body

  • tol (float) – Convergence tolerance in seconds

  • udstep (CFunctionType) – Name of the routine that returns a time step

  • udrefn (CFunctionType) – Name of the routine that computes a refined time

  • rpt (int) – Progress report flag

  • udrepi (CFunctionType) – Function that initializes progress reporting.

  • udrepu (CFunctionType) – Function that updates the progress report

  • udrepf (CFunctionType) – Function that finalizes progress reporting

  • bail (int) – Logical indicating program interrupt monitoring

  • udbail (CFunctionType) – Name of a routine that signals a program interrupt

  • cnfine (SpiceCell) – SPICE window to which the search is restricted

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

spiceypy.spiceypy.gfoclt(occtyp, front, fshape, fframe, back, bshape, bframe, abcorr, obsrvr, step, cnfine, result=None)[source]

Determine time intervals when an observer sees one target occulted by, or in transit across, another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfoclt_c.html

Parameters
  • occtyp (str) – Type of occultation.

  • front (str) – Name of body occulting the other.

  • fshape (str) – Type of shape model used for front body.

  • fframe (str) – Body-fixed, body-centered frame for front body.

  • back (str) – Name of body occulted by the other.

  • bshape (str) – Type of shape model used for back body.

  • bframe (str) – Body-fixed, body-centered frame for back body.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • step (float) – Step size in seconds for finding occultation events.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfpa(target, illmin, abcorr, obsrvr, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Determine time intervals for which a specified constraint on the phase angle between an illumination source, a target, and observer body centers is met.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfpa_c.html

Parameters
  • target (str) – Name of the target body.

  • illmin (str) – Name of the illuminating body.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Adjustment value for absolute extrema searches.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfposc(target, inframe, abcorr, obsrvr, crdsys, coord, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Determine time intervals for which a coordinate of an observer-target position vector satisfies a numerical constraint.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfposc_c.html

Parameters
  • target (str) – Name of the target body.

  • inframe (str) – Name of the reference frame for coordinate calculations.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • crdsys (str) – Name of the coordinate system containing COORD

  • coord (str) – Name of the coordinate of interest

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Adjustment value for absolute extrema searches.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfrefn(t1, t2, s1, s2)[source]

For those times when we can’t do better, we use a bisection method to find the next time at which to test for state change.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrefn_c.html

Parameters
  • t1 (float) – One of two values bracketing a state change.

  • t2 (float) – The other value that brackets a state change.

  • s1 (Union[bool, int]) – State at t1.

  • s2 (Union[bool, int]) – State at t2.

Return type

float

Returns

New value at which to check for transition.

spiceypy.spiceypy.gfrepf()[source]

Finish a GF progress report.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrepf_c.html

Return type

None

spiceypy.spiceypy.gfrepi(window, begmss, endmss)[source]

This entry point initializes a search progress report.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrepi_c.html

Parameters
  • window (Union[SpiceCell, LP_SpiceCell]) – A window over which a job is to be performed.

  • begmss (str) – Beginning of the text portion of the output message.

  • endmss (str) – End of the text portion of the output message.

Return type

None

spiceypy.spiceypy.gfrepu(ivbeg, ivend, time)[source]

This function tells the progress reporting system how far a search has progressed.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrepu_c.html

Parameters
  • ivbeg (float) – Start time of work interval.

  • ivend (float) – End time of work interval.

  • time (float) – Current time being examined in the search process.

Return type

None

spiceypy.spiceypy.gfrfov(inst, raydir, rframe, abcorr, obsrvr, step, cnfine, result=None)[source]

Determine time intervals when a specified ray intersects the space bounded by the field-of-view (FOV) of a specified instrument.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrfov_c.html

Parameters
  • inst (str) – Name of the instrument.

  • raydir (ndarray) – Ray’s direction vector.

  • rframe (str) – Reference frame of ray’s direction vector.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • step (float) – Step size in seconds for finding FOV events.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfrr(target, abcorr, obsrvr, relate, refval, adjust, step, nintvls, cnfine, result)[source]

Determine time intervals for which a specified constraint on the observer-target range rate is met.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfrr_c.html

Parameters
  • target (str) – Name of the target body.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Adjustment value for absolute extrema searches.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (SpiceCell) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfsep(targ1, shape1, inframe1, targ2, shape2, inframe2, abcorr, obsrvr, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Determine time intervals when the angular separation between the position vectors of two target bodies relative to an observer satisfies a numerical relationship.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfsep_c.html

Parameters
  • targ1 (str) – Name of first body.

  • shape1 (str) – Name of shape model describing the first body.

  • inframe1 (str) – The body-fixed reference frame of the first body.

  • targ2 (str) – Name of second body.

  • shape2 (str) – Name of the shape model describing the second body.

  • inframe2 (str) – The body-fixed reference frame of the second body

  • abcorr (str) – Aberration correction flag

  • obsrvr (str) – Name of the observing body.

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Absolute extremum adjustment value.

  • step (float) – Step size in seconds for finding angular separation events.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfsntc(target, fixref, method, abcorr, obsrvr, dref, dvec, crdsys, coord, relate, refval, adjust, step, nintvls, cnfine, result=None)[source]

Determine time intervals for which a coordinate of an surface intercept position vector satisfies a numerical constraint.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfsntc_c.html

Parameters
  • target (str) – Name of the target body.

  • fixref (str) – Body fixed frame associated with the target.

  • method (str) – Name of method type for surface intercept calculation.

  • abcorr (str) – Aberration correction flag

  • obsrvr (str) – Name of the observing body.

  • dref (str) – Reference frame of direction vector of dvec.

  • dvec (Union[ndarray, Iterable[float]]) – Pointing direction vector from the observer.

  • crdsys (str) – Name of the coordinate system containing COORD.

  • coord (str) – Name of the coordinate of interest

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Absolute extremum adjustment value.

  • step (float) – Step size in seconds for finding angular separation events.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gfsstp(step)[source]

Set the step size to be returned by gfstep().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfsstp_c.html

Parameters

step (float) – Time step to take.

Return type

None

spiceypy.spiceypy.gfstep(time)[source]

Return the time step set by the most recent call to gfsstp().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfstep_c.html

Parameters

time (float) – Ignored ET value.

Return type

float

Returns

Time step to take.

spiceypy.spiceypy.gfstol(value)[source]

Override the default GF convergence value used in the high level GF routines.

Default value is 1.0e-6

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfstol_c.html

Parameters

value (float) – Double precision value returned or to store.

Return type

None

spiceypy.spiceypy.gfsubc(target, fixref, method, abcorr, obsrvr, crdsys, coord, relate, refval, adjust, step, nintvls, cnfine, result)[source]

Determine time intervals for which a coordinate of an subpoint position vector satisfies a numerical constraint.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfsubc_c.html

Parameters
  • target (str) – Name of the target body.

  • fixref (str) – Body fixed frame associated with the target.

  • method (str) – Name of method type for subpoint calculation.

  • abcorr (str) – Aberration correction flag

  • obsrvr (str) – Name of the observing body.

  • crdsys (str) – Name of the coordinate system containing COORD.

  • coord (str) – Name of the coordinate of interest

  • relate (str) – Relational operator.

  • refval (float) – Reference value.

  • adjust (float) – Adjustment value for absolute extrema searches.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (SpiceCell) – Optional SPICE window containing results.

Return type

SpiceCell

spiceypy.spiceypy.gftfov(inst, target, tshape, tframe, abcorr, obsrvr, step, cnfine, result=None)[source]

Determine time intervals when a specified ephemeris object intersects the space bounded by the field-of-view (FOV) of a specified instrument.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gftfov_c.html

Parameters
  • inst (str) – Name of the instrument.

  • target (str) – Name of the target body.

  • tshape (str) – Type of shape model used for target body.

  • tframe (str) – Body-fixed, body-centered frame for target body.

  • abcorr (str) – Aberration correction flag.

  • obsrvr (str) – Name of the observing body.

  • step (float) – Step size in seconds for finding FOV events.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (Optional[SpiceCell]) – Optional pass-in SpiceCell for results

Return type

SpiceCell

Returns

SpiceCell containing set of time intervals, within the confinement period, when the target body is visible

spiceypy.spiceypy.gfudb(udfuns, udfunb, step, cnfine, result)[source]

Perform a GF search on a user defined boolean quantity.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfudb_c.html

Parameters
  • udfuns (CFunctionType) – Name of the routine that computes a scalar quantity of interest corresponding to an ‘et’.

  • udfunb (CFunctionType) – Name of the routine returning the boolean value corresponding to an ‘et’.

  • step (float) – Step size used for locating extrema and roots.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (SpiceCell) – SPICE window containing results.

Returns

result

spiceypy.spiceypy.gfuds(udfuns, udqdec, relate, refval, adjust, step, nintvls, cnfine, result)[source]

Perform a GF search on a user defined scalar quantity.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfuds_c.html

Parameters
  • udfuns (CFunctionType) – Name of the routine that computes the scalar quantity of interest at some time.

  • udqdec (CFunctionType) – Name of the routine that computes whether the scalar quantity is decreasing.

  • relate (str) – Operator that either looks for an extreme value (max, min, local, absolute) or compares the geometric quantity value and a number.

  • refval (float) – Value used as reference for scalar quantity condition.

  • adjust (float) – Allowed variation for absolute extremal geometric conditions.

  • step (float) – Step size used for locating extrema and roots.

  • nintvls (int) – Workspace window interval count.

  • cnfine (SpiceCell) – SPICE window to which the search is restricted.

  • result (SpiceCell) – SPICE window containing results.

Return type

SpiceCell

Returns

result

spiceypy.spiceypy.gipool(name, start, room)[source]

Return the integer value of a kernel variable from the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gipool_c.html

Parameters
  • name (str) – Name of the variable whose value is to be returned.

  • start (int) – Which component to start retrieving for name.

  • room (int) – The largest number of values to return.

Return type

Tuple[ndarray, bool]

Returns

Values associated with name.

spiceypy.spiceypy.gnpool(name, start, room, lenout=256)[source]

Return names of kernel variables matching a specified template.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gnpool_c.html

Parameters
  • name (str) – Template that names should match.

  • start (int) – Index of first matching name to retrieve.

  • room (int) – The largest number of values to return.

  • lenout (int) – Length of strings in output array kvars.

Return type

Tuple[Iterable[str], bool]

Returns

Kernel pool variables whose names match name.

spiceypy.spiceypy.halfpi()[source]

Return half the value of pi (the ratio of the circumference of a circle to its diameter).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/halfpi_c.html

Return type

float

Returns

Half the value of pi.

spiceypy.spiceypy.hrmesp(first, step, yvals, x)[source]

Evaluate, at a specified point, a Hermite interpolating polynomial for a specified set of equally spaced abscissa values and corresponding pairs of function and function derivative values.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/hrmesp_c.html

Parameters
  • first (float) – First abscissa value.

  • step (float) – Step size.

  • yvals (ndarray) – Ordinate and derivative values.

  • x (float) – Point at which to interpolate the polynomial.

Return type

Tuple[float, float]

Returns

Interpolated function value and derivative at x

spiceypy.spiceypy.hrmint(xvals, yvals, x)[source]

Evaluate a Hermite interpolating polynomial at a specified abscissa value.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/hrmint_c.html

Parameters
  • xvals (Sequence[float]) – Abscissa values.

  • yvals (Sequence[float]) – Ordinate and derivative values.

  • x (int) – Point at which to interpolate the polynomial.

Return type

Tuple[float, float]

Returns

Interpolated function value at x and the Interpolated function’s derivative at x

spiceypy.spiceypy.hx2dp(string)[source]

Convert a string representing a double precision number in a base 16 scientific notation into its equivalent double precision number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/hx2dp_c.html

Parameters

string (str) – Hex form string to convert to double precision.

Return type

Union[float, str]

Returns

Double precision value to be returned, Or Error Message.

spiceypy.spiceypy.ident()[source]

This routine returns the 3x3 identity matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ident_c.html

Return type

ndarray

Returns

The 3x3 identity matrix.

spiceypy.spiceypy.illum(target, et, abcorr, obsrvr, spoint)[source]

Deprecated: This routine has been superseded by the CSPICE routine ilumin. This routine is supported for purposes of backward compatibility only.

Find the illumination angles at a specified surface point of a target body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/illum_c.html

Parameters
  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000.

  • abcorr (str) – Desired aberration correction.

  • obsrvr (str) – Name of observing body.

  • spoint (ndarray) – Body-fixed coordinates of a target surface point.

Return type

Tuple[float, float, float]

Returns

Phase angle, Solar incidence angle, and Emission angle at the surface point.

spiceypy.spiceypy.illumf(method, target, ilusrc, et, fixref, abcorr, obsrvr, spoint)[source]

Compute the illumination angles—phase, incidence, and emission—at a specified point on a target body. Return logical flags indicating whether the surface point is visible from the observer’s position and whether the surface point is illuminated.

The target body’s surface is represented using topographic data provided by DSK files, or by a reference ellipsoid.

The illumination source is a specified ephemeris object.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/illumf_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • ilusrc (str) – Name of illumination source.

  • et (float) – Epoch in ephemeris seconds past J2000.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Desired aberration correction.

  • obsrvr (str) – Name of observing body.

  • spoint (ndarray) – Body-fixed coordinates of a target surface point.

Return type

Tuple[float, ndarray, float, float, float, bool, bool]

Returns

Target surface point epoch, Vector from observer to target surface point, Phase angle at the surface point, Source incidence angle at the surface point, Emission angle at the surface point, Visibility flag, Illumination flag

spiceypy.spiceypy.illumg(method, target, ilusrc, et, fixref, abcorr, obsrvr, spoint)[source]

Find the illumination angles (phase, incidence, and emission) at a specified surface point of a target body.

The surface of the target body may be represented by a triaxial ellipsoid or by topographic data provided by DSK files.

The illumination source is a specified ephemeris object. param method: Computation method.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/illumg_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • ilusrc (str) – Name of illumination source.

  • et (float) – Epoch in ephemeris seconds past J2000.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Desired aberration correction.

  • obsrvr (str) – Name of observing body.

  • spoint (ndarray) – Body-fixed coordinates of a target surface point.

Return type

Tuple[float, ndarray, float, float, float]

Returns

Target surface point epoch, Vector from observer to target surface point, Phase angle at the surface point, Source incidence angle at the surface point, Emission angle at the surface point,

spiceypy.spiceypy.ilumin(method, target, et, fixref, abcorr, obsrvr, spoint)[source]

Find the illumination angles (phase, solar incidence, and emission) at a specified surface point of a target body.

This routine supersedes illum.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ilumin_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Desired aberration correction.

  • obsrvr (str) – Name of observing body.

  • spoint (ndarray) – Body-fixed coordinates of a target surface point.

Return type

Tuple[float, ndarray, float, float, float]

Returns

Target surface point epoch, Vector from observer to target surface point, Phase angle, Solar incidence angle, and Emission angle at the surface point.

spiceypy.spiceypy.inedpl(a, b, c, plane)[source]

Find the intersection of a triaxial ellipsoid and a plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/inedpl_c.html

Parameters
  • a (float) – Length of ellipsoid semi-axis lying on the x-axis.

  • b (float) – Length of ellipsoid semi-axis lying on the y-axis.

  • c (float) – Length of ellipsoid semi-axis lying on the z-axis.

  • plane (Plane) – Plane that intersects ellipsoid.

Return type

Tuple[Ellipse, bool]

Returns

Intersection ellipse.

spiceypy.spiceypy.inelpl(ellips, plane)[source]

Find the intersection of an ellipse and a plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/inelpl_c.html

Parameters
  • ellips (Ellipse) – A SPICE ellipse.

  • plane (Plane) – A SPICE plane.

Return type

Tuple[int, ndarray, ndarray]

Returns

Number of intersection points of plane and ellipse, Point 1, Point 2.

spiceypy.spiceypy.inrypl(vertex, direct, plane)[source]

Find the intersection of a ray and a plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/inrypl_c.html

Parameters
  • vertex (Iterable[float]) – Vertex vector of ray.

  • direct (Iterable[float]) – Direction vector of ray.

  • plane (Plane) – A SPICE plane.

Return type

Tuple[int, ndarray]

Returns

Number of intersection points of ray and plane, Intersection point, if nxpts == 1.

spiceypy.spiceypy.insrtc(item, inset)[source]

Insert an item into a character set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrtc_c.html

Parameters
  • item (Union[str, Iterable[str]]) – Item to be inserted.

  • inset (SpiceCell) – Insertion set.

Return type

None

spiceypy.spiceypy.insrtd(item, inset)[source]

Insert an item into a double precision set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrtd_c.html

Parameters
  • item (Union[float, Iterable[float]]) – Item to be inserted.

  • inset (SpiceCell) – Insertion set.

Return type

None

spiceypy.spiceypy.insrti(item, inset)[source]

Insert an item into an integer set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/insrti_c.html

Parameters
  • item (Union[Iterable[int], int]) – Item to be inserted.

  • inset (SpiceCell) – Insertion set.

Return type

None

spiceypy.spiceypy.inter(a, b)[source]

Intersect two sets of any data type to form a third set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/inter_c.html

Parameters
Return type

SpiceCell

Returns

Intersection of a and b.

spiceypy.spiceypy.intmax()[source]

Return the value of the largest (positive) number representable in a int variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/intmax_c.html

Return type

int

Returns

The largest (positive) number representablein a Int variable.

spiceypy.spiceypy.intmin()[source]

Return the value of the smallest (negative) number representable in a SpiceInt variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/intmin_c.html

Return type

int

Returns

The smallest (negative) number representablein a Int variable.

spiceypy.spiceypy.invert(m)[source]

Generate the inverse of a 3x3 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/invert_c.html

Parameters

m (ndarray) – Matrix to be inverted.

Return type

ndarray

Returns

Inverted matrix (m1)^-1

spiceypy.spiceypy.invort(m)[source]

Given a matrix, construct the matrix whose rows are the columns of the first divided by the length squared of the the corresponding columns of the input matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/invort_c.html

Parameters

m (ndarray) – A 3x3 Matrix.

Return type

ndarray

Returns

m after transposition and scaling of rows.

spiceypy.spiceypy.invstm(mat)[source]

Return the inverse of a state transformation matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/invstm_c.html

Parameters

mat (ndarray) – A state transformation matrix.

Return type

ndarray

Returns

The inverse of `mat’.

spiceypy.spiceypy.irfnam(index)[source]

Return the name of one of the standard inertial reference frames supported by irfrot()

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/irfnam.html

Parameters

index (int) – Index of a standard inertial reference frame.

Return type

str

Returns

is the name of the frame.

spiceypy.spiceypy.irfnum(name)[source]

Return the index of one of the standard inertial reference frames supported by irfrot()

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/irfnum.html

Parameters

name (str) – Name of standard inertial reference frame.

Return type

int

Returns

is the index of the frame.

spiceypy.spiceypy.irfrot(refa, refb)[source]

Compute the matrix needed to rotate vectors between two standard inertial reference frames.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/irfrot.html

Parameters
  • refa (int) – index of first reference frame.

  • refb (int) – index of second reference frame.

Return type

ndarray

Returns

rotation from frame A to frame B.

spiceypy.spiceypy.irftrn(refa, refb)[source]

Return the matrix that transforms vectors from one specified inertial reference frame to another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/irftrn.html

Parameters
  • refa (str) – Name of reference frame to transform vectors FROM.

  • refb (str) – Name of reference frame to transform vectors TO.

Return type

ndarray

Returns

REFA-to-REFB transformation matrix.

spiceypy.spiceypy.isordv(array, n)[source]

Determine whether an array of n items contains the integers 0 through n-1.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isordv_c.html

Parameters
  • array (Union[ndarray, Iterable[int]]) – Array of integers.

  • n (int) – Number of integers in array.

Return type

bool

Returns

The function returns True if the array contains the integers 0 through n-1, otherwise it returns False.

spiceypy.spiceypy.isrchc(value, ndim, lenvals, array)[source]

Search for a given value within a character string array. Return the index of the first matching array entry, or -1 if the key value was not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isrchc_c.html

Parameters
  • value (str) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – Character string array to search.

Return type

int

Returns

The index of the first matching array element or -1 if the value is not found.

spiceypy.spiceypy.isrchd(value, ndim, array)[source]

Search for a given value within a double precision array. Return the index of the first matching array entry, or -1 if the key value was not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isrchd_c.html

Parameters
  • value (float) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • array (Union[ndarray, Iterable[float]]) – Double Precision array to search.

Return type

int

Returns

The index of the first matching array element or -1 if the value is not found.

spiceypy.spiceypy.isrchi(value, ndim, array)[source]

Search for a given value within an integer array. Return the index of the first matching array entry, or -1 if the key value was not found.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isrchi_c.html

Parameters
  • value (int) – Key value to be found in array.

  • ndim (int) – Dimension of array.

  • array (Union[ndarray, Iterable[int]]) – Integer array to search.

Return type

int

Returns

The index of the first matching array element or -1 if the value is not found.

spiceypy.spiceypy.isrot(m, ntol, dtol)[source]

Indicate whether a 3x3 matrix is a rotation matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/isrot_c.html

Parameters
  • m (ndarray) – A matrix to be tested.

  • ntol (float) – Tolerance for the norms of the columns of m.

  • dtol (float) – Tolerance for the determinant of a matrix whose columns are the unitized columns of m.

Return type

bool

Returns

True if and only if m is a rotation matrix.

spiceypy.spiceypy.iswhsp(string)[source]

Return a boolean value indicating whether a string contains only white space characters.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/iswhsp_c.html

Parameters

string (str) – String to be tested.

Return type

bool

Returns

the boolean value True if the string is empty or contains only white space characters; otherwise it returns the value False.

spiceypy.spiceypy.j1900()[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/j1900_c.html

Return type

float

Returns

Julian Date of 1899 DEC 31 12:00:00

spiceypy.spiceypy.j1950()[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/j1950_c.html

Return type

float

Returns

Julian Date of 1950 JAN 01 00:00:00

spiceypy.spiceypy.j2000()[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/j2000_c.html

Return type

float

Returns

Julian Date of 2000 JAN 01 12:00:00

spiceypy.spiceypy.j2100()[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/j2100_c.html

Return type

float

Returns

Julian Date of 2100 JAN 01 12:00:00

spiceypy.spiceypy.jyear()[source]

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/jyear_c.html

Return type

float

Returns

number of seconds in a julian year

spiceypy.spiceypy.kclear()[source]

Clear the KEEPER subsystem: unload all kernels, clear the kernel pool, and re-initialize the subsystem. Existing watches on kernel variables are retained.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/kclear_c.html

Return type

None

spiceypy.spiceypy.kdata(which, kind, fillen=256, typlen=256, srclen=256)[source]

Return data for the nth kernel that is among a list of specified kernel types.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/kdata_c.html

Parameters
  • which (int) – Index of kernel to fetch from the list of kernels.

  • kind (str) – The kind of kernel to which fetches are limited.

  • fillen (int) – Available space in output file string.

  • typlen (int) – Available space in output kernel type string.

  • srclen (int) – Available space in output source string.

Return type

Tuple[str, str, str, int, bool]

Returns

The name of the kernel file, The type of the kernel, Name of the source file used to load file, The handle attached to file.

spiceypy.spiceypy.kepleq(ml, h, k)[source]

This function solves the equinoctial version of Kepler’s equation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/kepleq.html

Parameters
  • ml (float) – Mean longitude

  • h (float) – h component of equinoctial elements

  • k (float) – k component of equinoctial elements

Return type

float

Returns

the value of F such that ML = F + h*COS(F) - k*SIN(F)

spiceypy.spiceypy.kinfo(file, typlen=256, srclen=256)[source]

Return information about a loaded kernel specified by name.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/kinfo_c.html

Parameters
  • file (str) – Name of a kernel to fetch information for

  • typlen (int) – Available space in output kernel type string.

  • srclen (int) – Available space in output source string.

Return type

Tuple[str, str, int, bool]

Returns

The type of the kernel, Name of the source file used to load file, The handle attached to file.

spiceypy.spiceypy.kplfrm(frmcls, out_cell=None)[source]

Return a SPICE set containing the frame IDs of all reference frames of a given class having specifications in the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/kplfrm_c.html

Parameters
  • frmcls (int) – Frame class.

  • out_cell (Optional[SpiceCell]) – Optional output Spice Int Cell

Return type

SpiceCell

Returns

Set of ID codes of frames of the specified class.

spiceypy.spiceypy.kpsolv(evec)[source]

This routine solves the equation X = < EVEC, U(X) > where U(X) is the unit vector [ Cos(X), SIN(X) ] and < , > denotes the two-dimensional dot product.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/kpsolv.html

Parameters

evec (Tuple[float, float]) – A 2-vector whose magnitude is less than 1.

Return type

float

Returns

the value of X such that X = EVEC(1)COS(X) + EVEC(2)SIN(X).

spiceypy.spiceypy.ktotal(kind)[source]

Return the current number of kernels that have been loaded via the KEEPER interface that are of a specified type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ktotal_c.html

Parameters

kind (str) – A list of kinds of kernels to count.

Return type

int

Returns

The number of kernels of type kind.

spiceypy.spiceypy.kxtrct(keywd, terms, nterms, instring, termlen=256, stringlen=256, substrlen=256)[source]

Locate a keyword in a string and extract the substring from the beginning of the first word following the keyword to the beginning of the first subsequent recognized terminator of a list.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/kxtrct_c.html

Parameters
  • keywd (str) – Word that marks the beginning of text of interest.

  • terms (Sequence[str]) – Set of words, any of which marks the end of text.

  • nterms (int) – Number of terms.

  • instring (str) – String containing a sequence of words.

  • termlen (int) – Length of strings in string array term.

  • stringlen (int) – Available space in argument string.

  • substrlen (int) – Available space in output substring.

Return type

Tuple[str, str, bool]

Returns

String containing a sequence of words, String from end of keywd to beginning of first terms item found.

spiceypy.spiceypy.lastnb(string)[source]

Return the zero based index of the last non-blank character in a character string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lastnb_c.html

Parameters

string (str) – Input character string.

Return type

int

Returns

spiceypy.spiceypy.latcyl(radius, lon, lat)[source]

Convert from latitudinal coordinates to cylindrical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latcyl_c.html

Parameters
  • radius (float) – Distance of a point from the origin.

  • lon (float) – Angle of the point from the XZ plane in radians.

  • lat (float) – Angle of the point from the XY plane in radians.

Return type

Tuple[float, float, float]

Returns

(r, lonc, z)

spiceypy.spiceypy.latrec(radius, longitude, latitude)[source]

Convert from latitudinal coordinates to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latrec_c.html

Parameters
  • radius (float) – Distance of a point from the origin.

  • longitude (float) – Longitude of point in radians.

  • latitude (float) – Latitude of point in radians.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.latsph(radius, lon, lat)[source]

Convert from latitudinal coordinates to spherical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latsph_c.html

Parameters
  • radius (float) – Distance of a point from the origin.

  • lon (float) – Angle of the point from the XZ plane in radians.

  • lat (float) – Angle of the point from the XY plane in radians.

Return type

Tuple[float, float, float]

Returns

(rho colat, lons)

spiceypy.spiceypy.latsrf(method, target, et, fixref, lonlat)[source]

Map array of planetocentric longitude/latitude coordinate pairs to surface points on a specified target body.

The surface of the target body may be represented by a triaxial ellipsoid or by topographic data provided by DSK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/latsrf_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in TDB seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • lonlat (Sequence[Sequence[float]]) – Array of longitude/latitude coordinate pairs.

Return type

ndarray

Returns

Array of surface points.

spiceypy.spiceypy.lcase(instr, lenout=256)[source]

Convert the characters in a string to lowercase.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lcase_c.html

Parameters
  • instr (str) – Input string.

  • lenout (int) – Maximum length of output string.

Return type

str

Returns

Output string, all lowercase.

spiceypy.spiceypy.ldpool(filename)[source]

Load the variables contained in a NAIF ASCII kernel file into the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ldpool_c.html

Parameters

filename (str) – Name of the kernel file.

Return type

None

spiceypy.spiceypy.lgresp(first, step, yvals, x)[source]

Evaluate a Lagrange interpolating polynomial for a specified set of coordinate pairs whose first components are equally spaced, at a specified abscissa value.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lgresp_c.html

Parameters
  • first (float) – First abscissa value.

  • step (float) – Step Size.

  • yvals (ndarray) – Ordinate Values.

  • x (float) – Point at which to interpolate the polynomial.

Return type

float

Returns

The function returns the value at `x’ of the unique polynomial of degree n-1 that fits the points in the plane defined by `first’, `step’, and `yvals’.

spiceypy.spiceypy.lgrind(xvals, yvals, x)[source]

Evaluate a Lagrange interpolating polynomial for a specified set of coordinate pairs, at a specified abscissa value. Return the value of both polynomial and derivative.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lgrind_c.html

Parameters
  • xvals (Sequence[float]) – Abscissa values.

  • yvals (Sequence[float]) – Ordinate values.

  • x (float) – Point at which to interpolate the polynomial.

Return type

Tuple[float, float]

Returns

Polynomial value at x, Polynomial derivative at x.

spiceypy.spiceypy.lgrint(xvals, yvals, x)[source]

Evaluate a Lagrange interpolating polynomial for a specified set of coordinate pairs, at a specified abscissa value.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lgrint_c.html

Parameters
  • xvals (ndarray) – Abscissa values.

  • yvals (ndarray) – Ordinate values.

  • x (float) – Point at which to interpolate the polynomial.

Return type

float

Returns

The function returns the value at `x’ of the unique polynomial of degree n-1 that fits the points in the plane defined by `xvals’ and `yvals’.

spiceypy.spiceypy.limbpt(method, target, et, fixref, abcorr, corloc, obsrvr, refvec, rolstp, ncuts, schstp, soltol, maxn)[source]

Find limb points on a target body. The limb is the set of points of tangency on the target of rays emanating from the observer. The caller specifies half-planes bounded by the observer-target center vector in which to search for limb points.

The surface of the target body may be represented either by a triaxial ellipsoid or by topographic data.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/limbpt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • corloc (str) – Aberration correction locus.

  • obsrvr (str) – Name of observing body.

  • refvec (Union[ndarray, Iterable[float]]) – Reference vector for cutting half-planes.

  • rolstp (float) – Roll angular step for cutting half-planes.

  • ncuts (int) – Number of cutting half-planes.

  • schstp (float) – Angular step size for searching.

  • soltol (float) – Solution convergence tolerance.

  • maxn (int) – Maximum number of entries in output arrays.

Return type

Tuple[ndarray, ndarray, ndarray, ndarray]

Returns

Counts of limb points corresponding to cuts, Limb points, Times associated with limb points, Tangent vectors emanating from the observer

spiceypy.spiceypy.lmpool(cvals)[source]

Load the variables contained in an internal buffer into the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lmpool_c.html

Parameters

cvals (Union[ndarray, Iterable[str]]) – list of strings.

Return type

None

spiceypy.spiceypy.lparse(inlist, delim, nmax)[source]

Parse a list of items delimited by a single character.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparse_c.html

Parameters
  • inlist (str) – list of items delimited by delim.

  • delim (str) – Single character used to delimit items.

  • nmax (int) – Maximum number of items to return.

Return type

Iterable[str]

Returns

Items in the list, left justified.

spiceypy.spiceypy.lparsm(inlist, delims, nmax, lenout=None)[source]

Parse a list of items separated by multiple delimiters.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparsm_c.html

Parameters
  • inlist (str) – list of items delimited by delims.

  • delims (str) – Single characters which delimit items.

  • nmax (int) – Maximum number of items to return.

  • lenout (Optional[int]) – Optional Length of strings in item array.

Return type

Iterable[str]

Returns

Items in the list, left justified.

spiceypy.spiceypy.lparss(inlist, delims, nmax=20, length=50)[source]

Parse a list of items separated by multiple delimiters, placing the resulting items into a set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lparss_c.html

Parameters
  • inlist (str) – list of items delimited by delims.

  • delims (str) – Single characters which delimit items.

  • nmax (int) – Optional nmax of spice set.

  • length (int) – Optional length of strings in spice set

Return type

SpiceCell

Returns

Set containing items in the list, left justified.

spiceypy.spiceypy.lspcn(body, et, abcorr)[source]

Compute L_s, the planetocentric longitude of the sun, as seen from a specified body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lspcn_c.html

Parameters
  • body (str) – Name of central body.

  • et (float) – Epoch in seconds past J2000 TDB.

  • abcorr (str) – Aberration correction.

Return type

float

Returns

planetocentric longitude of the sun

spiceypy.spiceypy.lstlec(string, n, lenvals, array)[source]

Given a character string and an ordered array of character strings, find the index of the largest array element less than or equal to the given string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlec_c.html

Parameters
  • string (str) – Upper bound value to search against.

  • n (int) – Number elements in array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – Array of possible lower bounds.

Return type

int

Returns

index of the last element of array that is lexically less than or equal to string.

spiceypy.spiceypy.lstled(x, n, array)[source]

Given a number x and an array of non-decreasing floats find the index of the largest array element less than or equal to x.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstled_c.html

Parameters
  • x (float) – Value to search against.

  • n (int) – Number elements in array.

  • array (Union[ndarray, Iterable[float]]) – Array of possible lower bounds

Return type

int

Returns

index of the last element of array that is less than or equal to x.

spiceypy.spiceypy.lstlei(x, n, array)[source]

Given a number x and an array of non-decreasing ints, find the index of the largest array element less than or equal to x.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlei_c.html

Parameters
  • x (int) – Value to search against.

  • n (int) – Number elements in array.

  • array (Union[ndarray, Iterable[int]]) – Array of possible lower bounds

Return type

int

Returns

index of the last element of array that is less than or equal to x.

spiceypy.spiceypy.lstltc(string, n, lenvals, array)[source]

Given a character string and an ordered array of character strings, find the index of the largest array element less than the given string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstltc_c.html

Parameters
  • string (str) – Upper bound value to search against.

  • n (int) – Number elements in array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – Array of possible lower bounds

Return type

int

Returns

index of the last element of array that is lexically less than string.

spiceypy.spiceypy.lstltd(x, n, array)[source]

Given a number x and an array of non-decreasing floats find the index of the largest array element less than x.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstltd_c.html

Parameters
  • x (float) – Value to search against

  • n (int) – Number elements in array

  • array (Union[ndarray, Iterable[float]]) – Array of possible lower bounds

Return type

int

Returns

index of the last element of array that is less than x.

spiceypy.spiceypy.lstlti(x, n, array)[source]

Given a number x and an array of non-decreasing int, find the index of the largest array element less than x.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lstlti_c.html

Parameters
  • x (int) – Value to search against

  • n (int) – Number elements in array

  • array (Union[ndarray, Iterable[int]]) – Array of possible lower bounds

Return type

int

Returns

index of the last element of array that is less than x.

spiceypy.spiceypy.ltime(etobs, obs, direct, targ)[source]

This routine computes the transmit (or receive) time of a signal at a specified target, given the receive (or transmit) time at a specified observer. The elapsed time between transmit and receive is also returned.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ltime_c.html

Parameters
  • etobs (float) – Epoch of a signal at some observer

  • obs (int) – NAIF ID of some observer

  • direct (str) – Direction the signal travels ( “->” or “<-” )

  • targ (int) – NAIF ID of the target object

Return type

Tuple[float, float]

Returns

epoch and time

spiceypy.spiceypy.lx4dec(string, first)[source]

Scan a string from a specified starting position for the end of a decimal number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4dec_c.html

Parameters
  • string (str) – Any character string.

  • first (int) – First character to scan from in string.

Return type

Tuple[int, int]

Returns

last and nchar

spiceypy.spiceypy.lx4num(string, first)[source]

Scan a string from a specified starting position for the end of a number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4num_c.html

Parameters
  • string (str) – Any character string.

  • first (int) – First character to scan from in string.

Return type

Tuple[int, int]

Returns

last and nchar

spiceypy.spiceypy.lx4sgn(string, first)[source]

Scan a string from a specified starting position for the end of a signed integer.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4sgn_c.html

Parameters
  • string (str) – Any character string.

  • first (int) – First character to scan from in string.

Return type

Tuple[int, int]

Returns

last and nchar

spiceypy.spiceypy.lx4uns(string, first)[source]

Scan a string from a specified starting position for the end of an unsigned integer.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lx4uns_c.html

Parameters
  • string (str) – Any character string.

  • first (int) – First character to scan from in string.

Return type

Tuple[int, int]

Returns

last and nchar

spiceypy.spiceypy.lxqstr(string, qchar, first)[source]

Lex (scan) a quoted string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/lxqstr_c.html

Parameters
  • string (str) – String to be scanned.

  • qchar (str) – Quote delimiter character.

  • first (int) – Character position at which to start scanning.

Return type

Tuple[int, int]

Returns

last and nchar

spiceypy.spiceypy.m2eul(r, axis3, axis2, axis1)[source]

Factor a rotation matrix as a product of three rotations about specified coordinate axes.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/m2eul_c.html

Parameters
  • r (Union[ndarray, Iterable[Iterable[float]]]) – A rotation matrix to be factored

  • axis3 (int) – third rotation axes.

  • axis2 (int) – second rotation axes.

  • axis1 (int) – first rotation axes.

Return type

Tuple[float, float, float]

Returns

Third, second, and first Euler angles, in radians.

spiceypy.spiceypy.m2q(r)[source]

Find a unit quaternion corresponding to a specified rotation matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/m2q_c.html

Parameters

r (ndarray) – A rotation matrix to be factored

Return type

ndarray

Returns

A unit quaternion representing the rotation matrix

spiceypy.spiceypy.matchi(string, templ, wstr, wchr)[source]

Determine whether a string is matched by a template containing wild cards. The pattern comparison is case-insensitive.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/matchi_c.html

Parameters
  • string (str) – String to be tested.

  • templ (str) – Template (with wild cards) to test against string.

  • wstr (str) – Wild string token.

  • wchr (str) – Wild character token.

Return type

bool

Returns

The function returns True if string matches templ, else False

spiceypy.spiceypy.matchw(string, templ, wstr, wchr)[source]

Determine whether a string is matched by a template containing wild cards.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/matchw_c.html

Parameters
  • string (str) – String to be tested.

  • templ (str) – Template (with wild cards) to test against string.

  • wstr (str) – Wild string token.

  • wchr (str) – Wild character token.

Return type

bool

Returns

The function returns True if string matches templ, else False

spiceypy.spiceypy.mequ(m1)[source]

Set one double precision 3x3 matrix equal to another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mequ_c.html

Parameters

m1 (ndarray) – input matrix.

Return type

ndarray

Returns

Output matrix equal to m1.

spiceypy.spiceypy.mequg(m1, nr, nc)[source]

Set one double precision matrix of arbitrary size equal to another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mequg_c.html

Parameters
  • m1 (ndarray) – Input matrix.

  • nr (int) – Row dimension of m1.

  • nc (int) – Column dimension of m1.

Return type

ndarray

Returns

Output matrix equal to m1

spiceypy.spiceypy.mtxm(m1, m2)[source]

Multiply the transpose of a 3x3 matrix and a 3x3 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxm_c.html

Parameters
  • m1 (ndarray) – 3x3 double precision matrix.

  • m2 (ndarray) – 3x3 double precision matrix.

Return type

ndarray

Returns

The produce m1 transpose times m2.

spiceypy.spiceypy.mtxmg(m1, m2)[source]

Multiply the transpose of a matrix with another matrix, both of arbitrary size.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxmg_c.html

Parameters
  • m1 (ndarray) – N x M double precision matrix.

  • m2 (ndarray) – N x O double precision matrix.

  • ncol1 – Column dimension of m1 and row dimension of mout.

  • nr1r2 – Row dimension of m1 and m2.

  • ncol2 – Column dimension of m2.

Return type

ndarray

Returns

Transpose of m1 times m2 (O x M).

spiceypy.spiceypy.mtxv(m1, vin)[source]

Multiplies the transpose of a 3x3 matrix on the left with a vector on the right.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxv_c.html

Parameters
  • m1 (ndarray) – 3x3 double precision matrix.

  • vin (ndarray) – 3-dimensional double precision vector.

Return type

ndarray

Returns

3-dimensional double precision vector.

spiceypy.spiceypy.mtxvg(m1, v2)[source]

Multiply the transpose of a matrix and a vector of arbitrary size.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mtxvg_c.html

Parameters
  • m1 (ndarray) – Left-hand matrix to be multiplied.

  • v2 (ndarray) – Right-hand vector to be multiplied.

Return type

ndarray

Returns

Product vector m1 transpose * v2.

spiceypy.spiceypy.mxm(m1, m2)[source]

Multiply two 3x3 matrices.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxm_c.html

Parameters
  • m1 (Union[ndarray, Iterable[Iterable[float]]]) – 3x3 double precision matrix.

  • m2 (Union[ndarray, Iterable[Iterable[float]]]) – 3x3 double precision matrix.

Return type

ndarray

Returns

3x3 double precision matrix.

spiceypy.spiceypy.mxmg(m1, m2)[source]

Multiply two double precision matrices of arbitrary size.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmg_c.html

Parameters
  • m1 (Union[ndarray, Iterable[Iterable[float]]]) – nrow1 X ncol1 double precision matrix.

  • m2 (Union[ndarray, Iterable[Iterable[float]]]) – ncol1 X ncol2 double precision matrix.

Return type

ndarray

Returns

nrow1 X ncol2 double precision matrix.

spiceypy.spiceypy.mxmt(m1, m2)[source]

Multiply a 3x3 matrix and the transpose of another 3x3 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmt_c.html

Parameters
  • m1 (Union[ndarray, Iterable[Iterable[float]]]) – 3x3 double precision matrix.

  • m2 (Union[ndarray, Iterable[Iterable[float]]]) – 3x3 double precision matrix.

Return type

ndarray

Returns

The product m1 times m2 transpose.

spiceypy.spiceypy.mxmtg(m1, m2)[source]

Multiply a matrix and the transpose of a matrix, both of arbitrary size.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxmtg_c.html

Parameters
  • m1 (Union[ndarray, Iterable[Iterable[float]]]) – Left-hand matrix to be multiplied.

  • m2 (Union[ndarray, Iterable[Iterable[float]]]) – Right-hand matrix whose transpose is to be multiplied

Return type

ndarray

Returns

Product matrix.

spiceypy.spiceypy.mxv(m1, vin)[source]

Multiply a 3x3 double precision matrix with a 3-dimensional double precision vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxv_c.html

Parameters
  • m1 (ndarray) – 3x3 double precision matrix.

  • vin (ndarray) – 3-dimensional double precision vector.

Return type

ndarray

Returns

3-dimensional double precision vector.

spiceypy.spiceypy.mxvg(m1, v2)[source]

Multiply a matrix and a vector of arbitrary size.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/mxvg_c.html

Parameters
  • m1 (Union[ndarray, Iterable[Iterable[float]]]) – Left-hand matrix to be multiplied.

  • v2 (Union[ndarray, Iterable[Iterable[float]]]) – Right-hand vector to be multiplied.

Return type

ndarray

Returns

Product vector m1*v2

spiceypy.spiceypy.namfrm(frname)[source]

Look up the frame ID code associated with a string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/namfrm_c.html

Parameters

frname (str) – The name of some reference frame.

Return type

int

Returns

The SPICE ID code of the frame.

spiceypy.spiceypy.ncpos(string, chars, start)[source]

Find the first occurrence in a string of a character NOT belonging to a collection of characters, starting at a specified location searching forward.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ncpos_c.html

Parameters
  • string (str) – Any character string.

  • chars (str) – A collection of characters.

  • start (int) – Position to begin looking for one not in chars.

Return type

int

Returns

index

spiceypy.spiceypy.ncposr(string, chars, start)[source]

Find the first occurrence in a string of a character NOT belonging to a collection of characters, starting at a specified location, searching in reverse.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ncposr_c.html

Parameters
  • string (str) – Any character string.

  • chars (str) – A collection of characters.

  • start (int) – Position to begin looking for one of chars.

Return type

int

Returns

index

spiceypy.spiceypy.nearpt(positn, a, b, c)[source]

locates the point on the surface of an ellipsoid that is nearest to a specified position. It also returns the altitude of the position above the ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nearpt_c.html

Parameters
  • positn (Union[ndarray, Iterable[float]]) – Position of a point in bodyfixed frame.

  • a (float) – Length of semi-axis parallel to x-axis.

  • b (float) – Length of semi-axis parallel to y-axis.

  • c (float) – Length on semi-axis parallel to z-axis.

Return type

Tuple[ndarray, float]

Returns

Point on the ellipsoid closest to positn, Altitude of positn above the ellipsoid.

spiceypy.spiceypy.no_found_check()[source]

Temporarily disables spiceypy default behavior which raises exceptions for false found flags for certain spice functions. All spice functions executed within the context manager will no longer check the found flag return parameter and the found flag will be included in the return for the given function. For Example bodc2n in spiceypy is normally called like:

name = spice.bodc2n(399)

With the possibility that an exception is thrown in the even of a invalid ID:

name = spice.bodc2n(-999991) # throws a SpiceyError

With this function however, we can use it as a context manager to do this:

with spice.no_found_check():
    name, found = spice.bodc2n(-999991) # found is false, no exception raised!

Within the context any spice functions called that normally check the found flags will pass through the check without raising an exception if they are false.

Return type

Iterator[None]

spiceypy.spiceypy.npedln(a, b, c, linept, linedr)[source]

Find nearest point on a triaxial ellipsoid to a specified line and the distance from the ellipsoid to the line.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/npedln_c.html

Parameters
  • a (float) – Length of ellipsoid’s semi-axis in the x direction

  • b (float) – Length of ellipsoid’s semi-axis in the y direction

  • c (float) – Length of ellipsoid’s semi-axis in the z direction

  • linept (Union[ndarray, Iterable[float]]) – Length of ellipsoid’s semi-axis in the z direction

  • linedr (Union[ndarray, Iterable[float]]) – Direction vector of line

Return type

Tuple[ndarray, float]

Returns

Nearest point on ellipsoid to line, Distance of ellipsoid from line

spiceypy.spiceypy.npelpt(point, ellips)[source]

Find the nearest point on an ellipse to a specified point, both in three-dimensional space, and find the distance between the ellipse and the point. https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/npelpt_c.html

Parameters
  • point (Union[ndarray, Iterable[float]]) – Point whose distance to an ellipse is to be found.

  • ellips (Ellipse) – An ellipse.

Return type

Tuple[ndarray, float]

Returns

Nearest point on ellipsoid to line, Distance of ellipsoid from line

spiceypy.spiceypy.nplnpt(linpt, lindir, point)[source]

Find the nearest point on a line to a specified point, and find the distance between the two points.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nplnpt_c.html

Parameters
  • linpt (Union[ndarray, Iterable[float]]) – Point on a line

  • lindir (Union[ndarray, Iterable[float]]) – line’s direction vector

  • point (Union[ndarray, Iterable[float]]) – A second point.

Return type

Tuple[ndarray, float]

Returns

Nearest point on the line to point, Distance between point and pnear

spiceypy.spiceypy.nvc2pl(normal, constant)[source]

Make a plane from a normal vector and a constant.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nvc2pl_c.html

Parameters
  • normal (Iterable[float]) – A normal vector defining a plane.

  • constant (float) – A constant defining a plane.

Return type

Plane

Returns

plane

spiceypy.spiceypy.nvp2pl(normal, point)[source]

Make a plane from a normal vector and a point.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nvp2pl_c.html

Parameters
  • normal (Union[ndarray, Iterable[float]]) – A normal vector defining a plane.

  • point (Union[ndarray, Iterable[float]]) – A point defining a plane.

Return type

Plane

Returns

plane

spiceypy.spiceypy.occult(target1, shape1, frame1, target2, shape2, frame2, abcorr, observer, et)[source]

Determines the occultation condition (not occulted, partially, etc.) of one target relative to another target as seen by an observer at a given time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/occult_c.html

Parameters
  • target1 (str) – Name or ID of first target.

  • shape1 (str) – Type of shape model used for first target.

  • frame1 (str) – Body-fixed, body-centered frame for first body.

  • target2 (str) – Name or ID of second target.

  • shape2 (str) – Type of shape model used for second target.

  • frame2 (str) – Body-fixed, body-centered frame for second body.

  • abcorr (str) – Aberration correction flag.

  • observer (str) – Name or ID of the observer.

  • et (float) – Time of the observation (seconds past J2000).

Return type

int

Returns

Occultation identification code.

spiceypy.spiceypy.ordc(item, inset)[source]

The function returns the ordinal position of any given item in a character set. If the item does not appear in the set, the function returns -1.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordc_c.html

Parameters
  • item (str) – An item to locate within a set.

  • inset (SpiceCell) – A set to search for a given item.

Return type

int

Returns

the ordinal position of item within the set

spiceypy.spiceypy.ordd(item, inset)[source]

The function returns the ordinal position of any given item in a double precision set. If the item does not appear in the set, the function returns -1.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordd_c.html

Parameters
  • item (float) – An item to locate within a set.

  • inset (SpiceCell) – A set to search for a given item.

Return type

int

Returns

the ordinal position of item within the set

spiceypy.spiceypy.orderc(array, ndim=None)[source]

Determine the order of elements in an array of character strings.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderc_c.html

Parameters
  • array (Sequence[str]) – Input array.

  • ndim (Optional[int]) – Optional Length of input array

Return type

ndarray

Returns

Order vector for array.

spiceypy.spiceypy.orderd(array, ndim=None)[source]

Determine the order of elements in a double precision array.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderd_c.html

Parameters
  • array (Sequence[float]) – Input array.

  • ndim (Optional[int]) – Optional Length of input array

Return type

ndarray

Returns

Order vector for array.

spiceypy.spiceypy.orderi(array, ndim=None)[source]

Determine the order of elements in an integer array.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/orderi_c.html

Parameters
  • array (Sequence[int]) – Input array.

  • ndim (Optional[int]) – Optional Length of input array

Return type

ndarray

Returns

Order vector for array.

spiceypy.spiceypy.ordi(item, inset)[source]

The function returns the ordinal position of any given item in an integer set. If the item does not appear in the set, the function returns -1.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ordi_c.html

Parameters
  • item (int) – An item to locate within a set.

  • inset (SpiceCell) – A set to search for a given item.

Return type

int

Returns

the ordinal position of item within the set

spiceypy.spiceypy.oscelt(state, et, mu)[source]

Determine the set of osculating conic orbital elements that corresponds to the state (position, velocity) of a body at some epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/oscelt_c.html

Parameters
  • state (ndarray) – State of body at epoch of elements.

  • et (float) – Epoch of elements.

  • mu (Union[float, int]) – Gravitational parameter (GM) of primary body.

Return type

ndarray

Returns

Equivalent conic elements

spiceypy.spiceypy.oscltx(state, et, mu)[source]

Determine the set of osculating conic orbital elements that corresponds to the state (position, velocity) of a body at some epoch. In additional to the classical elements, return the true anomaly, semi-major axis, and period, if applicable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/oscltx_c.html

Parameters
  • state (ndarray) – State of body at epoch of elements.

  • et (float) – Epoch of elements.

  • mu (int) – Gravitational parameter (GM) of primary body.

Return type

ndarray

Returns

Extended set of classical conic elements.

spiceypy.spiceypy.pckcls(handle)[source]

Close an open PCK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckcls_c.html

Parameters

handle (int) – Handle of the PCK file to be closed.

Return type

None

spiceypy.spiceypy.pckcov(pck, idcode, cover)[source]

Find the coverage window for a specified reference frame in a specified binary PCK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckcov_c.html

Parameters
  • pck (str) – Name of PCK file.

  • idcode (int) – Class ID code of PCK reference frame.

  • cover (SpiceCell) – Window giving coverage in pck for idcode.

Return type

None

spiceypy.spiceypy.pckfrm(pck, ids)[source]

Find the set of reference frame class ID codes of all frames in a specified binary PCK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckfrm_c.html

Parameters
  • pck (str) – Name of PCK file.

  • ids (SpiceCell) – Set of frame class ID codes of frames in PCK file.

Return type

None

spiceypy.spiceypy.pcklof(filename)[source]

Load a binary PCK file for use by the readers. Return the handle of the loaded file which is used by other PCK routines to refer to the file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pcklof_c.html

Parameters

filename (str) – Name of the file to be loaded.

Return type

int

Returns

Loaded file’s handle.

spiceypy.spiceypy.pckopn(name, ifname, ncomch)[source]

Create a new PCK file, returning the handle of the opened file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckopn_c.html

Parameters
  • name (str) – The name of the PCK file to be opened.

  • ifname (str) – The internal filename for the PCK.

  • ncomch (int) – The number of characters to reserve for comments.

Return type

int

Returns

The handle of the opened PCK file.

spiceypy.spiceypy.pckuof(handle)[source]

Unload a binary PCK file so that it will no longer be searched by the readers.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckuof_c.html

Parameters

handle (int) – Handle of PCK file to be unloaded

Return type

None

spiceypy.spiceypy.pckw02(handle, classid, frname, first, last, segid, intlen, n, polydg, cdata, btime)[source]

Write a type 2 segment to a PCK binary file given the file handle, frame class ID, base frame, time range covered by the segment, and the Chebyshev polynomial coefficients.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pckw02_c.html

Parameters
  • handle (int) – Handle of binary PCK file open for writing.

  • classid (int) – Frame class ID of body-fixed frame.

  • frname (str) – Name of base reference frame.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • intlen (float) – Length of time covered by logical record.

  • n (int) – Number of logical records in segment.

  • polydg (int) – Chebyshev polynomial degree.

  • cdata (Union[ndarray, Iterable[float]]) – Array of Chebyshev coefficients.

  • btime (float) – Begin time of first logical record.

Return type

None

spiceypy.spiceypy.pcpool(name, cvals)[source]

This entry point provides toolkit programmers a method for programmatically inserting character data into the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pcpool_c.html

Parameters
  • name (str) – The kernel pool name to associate with cvals.

  • cvals (Sequence[str]) – An array of strings to insert into the kernel pool.

Return type

None

spiceypy.spiceypy.pdpool(name, dvals)[source]

This entry point provides toolkit programmers a method for programmatically inserting double precision data into the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pdpool_c.html

Parameters
  • name (str) – The kernel pool name to associate with dvals.

  • dvals (Union[ndarray, Iterable[float]]) – An array of values to insert into the kernel pool.

Return type

None

spiceypy.spiceypy.pgrrec(body, lon, lat, alt, re, f)[source]

Convert planetographic coordinates to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pgrrec_c.html

Parameters
  • body (str) – Body with which coordinate system is associated.

  • lon (float) – Planetographic longitude of a point (radians).

  • lat (float) – Planetographic latitude of a point (radians).

  • alt (int) – Altitude of a point above reference spheroid.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.phaseq(et, target, illmn, obsrvr, abcorr)[source]

Compute the apparent phase angle for a target, observer, illuminator set of ephemeris objects.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/phaseq_c.html

Parameters
  • et (float) – Ephemeris seconds past J2000 TDB.

  • target (str) – Target body name.

  • illmn (str) – Illuminating body name.

  • obsrvr (str) – Observer body.

  • abcorr (str) – Aberration correction flag.

Return type

float

Returns

Value of phase angle.

spiceypy.spiceypy.pi()[source]

Return the value of pi (the ratio of the circumference of a circle to its diameter).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pi_c.html

Return type

float

Returns

value of pi.

spiceypy.spiceypy.pipool(name, ivals)[source]

This entry point provides toolkit programmers a method for programmatically inserting integer data into the kernel pool.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pipool_c.html

Parameters
  • name (str) – The kernel pool name to associate with values.

  • ivals (ndarray) – An array of integers to insert into the pool.

Return type

None

spiceypy.spiceypy.pjelpl(elin, plane)[source]

Project an ellipse onto a plane, orthogonally.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pjelpl_c.html

Parameters
  • elin (Ellipse) – A SPICE ellipse to be projected.

  • plane (Plane) – A plane onto which elin is to be projected.

Return type

Ellipse

Returns

A SPICE ellipse resulting from the projection.

spiceypy.spiceypy.pl2nvc(plane)[source]

Return a unit normal vector and constant that define a specified plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2nvc_c.html

Parameters

plane (Plane) – A SPICE plane.

Return type

Tuple[ndarray, float]

Returns

A normal vector and constant defining the geometric plane represented by plane.

spiceypy.spiceypy.pl2nvp(plane)[source]

Return a unit normal vector and point that define a specified plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2nvp_c.html

Parameters

plane (Plane) – A SPICE plane.

Return type

Tuple[ndarray, ndarray]

Returns

A unit normal vector and point that define plane.

spiceypy.spiceypy.pl2psv(plane)[source]

Return a point and two orthogonal spanning vectors that generate a specified plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pl2psv_c.html

Parameters

plane (Plane) – A SPICE plane.

Return type

Tuple[ndarray, ndarray, ndarray]

Returns

A point in the input plane and two vectors spanning the input plane.

spiceypy.spiceypy.pltar(vrtces, plates)[source]

Compute the total area of a collection of triangular plates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltar_c.html

Parameters
  • vrtces (Sequence[Iterable[float]]) – Array of vertices.

  • plates (Sequence[Iterable[int]]) – Array of plates.

Return type

float

Returns

total area of the set of plates

spiceypy.spiceypy.pltexp(iverts, delta)[source]

Expand a triangular plate by a specified amount. The expanded plate is co-planar with, and has the same orientation as, the original. The centroids of the two plates coincide.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltexp_c.html

Parameters
  • iverts (Iterable[Iterable[float]]) – Vertices of the plate to be expanded.

  • delta (float) – Fraction by which the plate is to be expanded.

Return type

ndarray

Returns

Vertices of the expanded plate.

spiceypy.spiceypy.pltnp(point, v1, v2, v3)[source]

Find the nearest point on a triangular plate to a given point.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltnp_c.html

Parameters
  • point (Union[ndarray, Iterable[float]]) – A point in 3-dimensional space.

  • v1 (Union[ndarray, Iterable[float]]) – Vertices of a triangular plate.

  • v2 (Union[ndarray, Iterable[float]]) – Vertices of a triangular plate.

  • v3 (Union[ndarray, Iterable[float]]) – Vertices of a triangular plate.

Return type

Tuple[ndarray, float]

Returns

the nearest point on a triangular plate to a given point and distance

spiceypy.spiceypy.pltnrm(v1, v2, v3)[source]

Compute an outward normal vector of a triangular plate. The vector does not necessarily have unit length.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltnrm_c.html

Parameters
  • v1 (Iterable[float]) – Vertices of a plate.

  • v2 (Union[ndarray, Iterable[float]]) – Vertices of a plate.

  • v3 (Iterable[float]) – Vertices of a plate.

Return type

ndarray

Returns

Plate’s outward normal vector.

spiceypy.spiceypy.pltvol(vrtces, plates)[source]

Compute the volume of a three-dimensional region bounded by a collection of triangular plates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pltvol_c.html

Parameters
  • vrtces (Sequence[Iterable[float]]) – Array of vertices.

  • plates (Sequence[Iterable[int]]) – Array of plates.

Return type

float

Returns

the volume of the spatial region bounded by the plates.

spiceypy.spiceypy.polyds(coeffs, deg, nderiv, t)[source]

Compute the value of a polynomial and it’s first n derivatives at the value t.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/polyds_c.html

Parameters
  • coeffs (Union[ndarray, Iterable[float]]) – Coefficients of the polynomial to be evaluated.

  • deg (int) – Degree of the polynomial to be evaluated.

  • nderiv (int) – Number of derivatives to compute.

  • t (int) – Point to evaluate the polynomial and derivatives

Return type

ndarray

Returns

Value of polynomial and derivatives.

spiceypy.spiceypy.pos(string, substr, start)[source]

Find the first occurrence in a string of a substring, starting at a specified location, searching forward.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pos_c.html

Parameters
  • string (str) – Any character string.

  • substr (str) – Substring to locate in the character string.

  • start (int) – Position to begin looking for substr in string.

Return type

int

Returns

The index of the first occurrence of substr in string at or following index start.

spiceypy.spiceypy.posr(string, substr, start)[source]

Find the first occurrence in a string of a substring, starting at a specified location, searching backward.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/posr_c.html

Parameters
  • string (str) – Any character string.

  • substr (str) – Substring to locate in the character string.

  • start (int) – Position to begin looking for substr in string.

Return type

int

Returns

The index of the last occurrence of substr in string at or preceding index start.

spiceypy.spiceypy.prop2b(gm, pvinit, dt)[source]

Given a central mass and the state of massless body at time t_0, this routine determines the state as predicted by a two-body force model at time t_0 + dt.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prop2b_c.html

Parameters
  • gm (float) – Gravity of the central mass.

  • pvinit (ndarray) – Initial state from which to propagate a state.

  • dt (float) – Time offset from initial state to propagate to.

Return type

ndarray

Returns

The propagated state.

spiceypy.spiceypy.prsdp(string)[source]

Parse a string as a double precision number, encapsulating error handling.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prsdp_c.html

Parameters

string (str) – String representing a d.p. number.

Return type

float

Returns

D.p. value obtained by parsing string.

spiceypy.spiceypy.prsint(string)[source]

Parse a string as an integer, encapsulating error handling.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/prsint_c.html

Parameters

string (str) – String representing an integer.

Return type

int

Returns

Integer value obtained by parsing string.

spiceypy.spiceypy.psv2pl(point, span1, span2)[source]

Make a CSPICE plane from a point and two spanning vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/psv2pl_c.html

Parameters
  • point (ndarray) – A Point.

  • span1 (ndarray) – First Spanning vector.

  • span2 (ndarray) – Second Spanning vector.

Return type

Plane

Returns

A SPICE plane.

spiceypy.spiceypy.pxform(fromstr, tostr, et)[source]

Return the matrix that transforms position vectors from one specified frame to another at a specified epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pxform_c.html

Parameters
  • fromstr (str) – Name of the frame to transform from.

  • tostr (str) – Name of the frame to transform to.

  • et (float) – Epoch of the rotation matrix.

Return type

ndarray

Returns

A rotation matrix.

spiceypy.spiceypy.pxfrm2(frame_from, frame_to, etfrom, etto)[source]

Return the 3x3 matrix that transforms position vectors from one specified frame at a specified epoch to another specified frame at another specified epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/pxfrm2_c.html

Parameters
  • frame_from (str) – Name of the frame to transform from.

  • frame_to (str) – Name of the frame to transform to.

  • etfrom (float) – Evaluation time of frame_from.

  • etto (float) – Evaluation time of frame_to.

Return type

ndarray

Returns

A position transformation matrix from frame_from to frame_to

spiceypy.spiceypy.q2m(q)[source]

Find the rotation matrix corresponding to a specified unit quaternion.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/q2m_c.html

Parameters

q (ndarray) – A unit quaternion.

Return type

ndarray

Returns

A rotation matrix corresponding to q

spiceypy.spiceypy.qcktrc(tracelen=256)[source]

Return a string containing a traceback.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qcktrc_c.html

Parameters

tracelen (int) – Maximum length of output traceback string.

Return type

str

Returns

A traceback string.

spiceypy.spiceypy.qderiv(f0, f2, delta)[source]

Estimate the derivative of a function by finding the derivative of a quadratic approximating function. This derivative estimate is equivalent to that found by computing the average of forward and backward differences.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qderiv_c.html

Parameters
  • f0 (ndarray) – Function values at left endpoint.

  • f2 (ndarray) – Function values at right endpoint.

  • delta (float) – Separation of abscissa points.

Return type

ndarray

Returns

Derivative vector.

spiceypy.spiceypy.qdq2av(q, dq)[source]

Derive angular velocity from a unit quaternion and its derivative with respect to time.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qdq2av_c.html

Parameters
  • q (ndarray) – Unit SPICE quaternion.

  • dq (Union[ndarray, Iterable[float]]) – Derivative of q with respect to time

Return type

ndarray

Returns

Angular velocity defined by q and dq.

spiceypy.spiceypy.qxq(q1, q2)[source]

Multiply two quaternions.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/qxq_c.html

Parameters
  • q1 (Union[ndarray, Iterable[float]]) – First SPICE quaternion.

  • q2 (Union[ndarray, Iterable[float]]) – Second SPICE quaternion.

Return type

ndarray

Returns

Product of q1 and q2.

spiceypy.spiceypy.radrec(inrange, re, dec)[source]

Convert from range, right ascension, and declination to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/radrec_c.html

Parameters
  • inrange (float) – Distance of a point from the origin.

  • re (float) – Right ascension of point in radians.

  • dec (float) – Declination of point in radians.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.rav2xf(rot, av)[source]

This routine determines a state transformation matrix from a rotation matrix and the angular velocity of the rotation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rav2xf_c.html

Parameters
  • rot (Union[ndarray, Iterable[Iterable[float]]]) – Rotation matrix.

  • av (Union[ndarray, Iterable[float]]) – Angular velocity vector.

Return type

ndarray

Returns

State transformation associated with rot and av.

spiceypy.spiceypy.raxisa(matrix)[source]

Compute the axis of the rotation given by an input matrix and the angle of the rotation about that axis.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/raxisa_c.html

Parameters

matrix (ndarray) – Rotation matrix.

Return type

Tuple[ndarray, float]

Returns

Axis of the rotation, Angle through which the rotation is performed

spiceypy.spiceypy.rdtext(file, lenout=256)[source]

Read the next line of text from a text file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rdtext_c.html

Parameters
  • file (str) – Name of text file.

  • lenout (int) – Available room in output line.

Return type

Tuple[str, bool]

Returns

Next line from the text file, End-of-file indicator

spiceypy.spiceypy.recazl(rectan, azccw, elplsz)[source]

Convert rectangular coordinates of a point to range, azimuth and elevation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recazl_c.html

Parameters
  • rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

  • azccw (bool) – Flag indicating how Azimuth is measured.

  • elplsz (bool) – Flag indicating how Elevation is measured.

Return type

Tuple[float, float, float]

Returns

Distance of the point from the origin, Azimuth in radians, Elevation in radians.

spiceypy.spiceypy.reccyl(rectan)[source]

Convert from rectangular to cylindrical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reccyl_c.html

Parameters

rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

Return type

Tuple[float, float, float]

Returns

Distance from z axis, Angle (radians) from xZ plane, Height above xY plane.

spiceypy.spiceypy.recgeo(rectan, re, f)[source]

Convert from rectangular coordinates to geodetic coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recgeo_c.html

Parameters
  • rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

Tuple[float, float, float]

Returns

Geodetic longitude (radians), Geodetic latitude (radians), Altitude above reference spheroid

spiceypy.spiceypy.reclat(rectan)[source]

Convert from rectangular coordinates to latitudinal coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reclat_c.html

Parameters

rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

Return type

Tuple[float, float, float]

Returns

Distance from the origin, Longitude in radians, Latitude in radians

spiceypy.spiceypy.recpgr(body, rectan, re, f)[source]

Convert rectangular coordinates to planetographic coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recpgr_c.html

Parameters
  • body (str) – Body with which coordinate system is associated.

  • rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

  • re (float) – Equatorial radius of the reference spheroid.

  • f (float) – Flattening coefficient.

Return type

Tuple[float, float, float]

Returns

Planetographic longitude (radians), Planetographic latitude (radians), Altitude above reference spheroid

spiceypy.spiceypy.recrad(rectan)[source]

Convert rectangular coordinates to range, right ascension, and declination.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html

Parameters

rectan (Union[ndarray, Iterable[float]]) – Rectangular coordinates of a point.

Return type

Tuple[float, float, float]

Returns

Distance of the point from the origin, Right ascension in radians, Declination in radians

spiceypy.spiceypy.recsph(rectan)[source]

Convert from rectangular coordinates to spherical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recrad_c.html

Parameters

rectan (ndarray) – Rectangular coordinates of a point.

Return type

Tuple[float, float, float]

Returns

Distance from the origin, Angle from the positive Z-axis, Longitude in radians.

spiceypy.spiceypy.removc(item, inset)[source]

Remove an item from a character set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removc_c.html

Parameters
  • item (str) – Item to be removed.

  • inset (SpiceCell) – Set to be updated.

Return type

None

spiceypy.spiceypy.removd(item, inset)[source]

Remove an item from a double precision set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removd_c.html

Parameters
  • item (float) – Item to be removed.

  • inset (SpiceCell) – Set to be updated.

Return type

None

spiceypy.spiceypy.removi(item, inset)[source]

Remove an item from an integer set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/removi_c.html

Parameters
  • item (int) – Item to be removed.

  • inset (SpiceCell) – Set to be updated.

Return type

None

spiceypy.spiceypy.reordc(iorder, ndim, lenvals, array)[source]

Re-order the elements of an array of character strings according to a given order vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordc_c.html

Parameters
  • iorder (Union[ndarray, Iterable[int]]) – Order vector to be used to re-order array.

  • ndim (int) – Dimension of array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – Array to be re-ordered.

Return type

Iterable[str]

Returns

Re-ordered Array.

spiceypy.spiceypy.reordd(iorder, ndim, array)[source]

Re-order the elements of a double precision array according to a given order vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordd_c.html

Parameters
  • iorder (Union[ndarray, Iterable[int]]) – Order vector to be used to re-order array.

  • ndim (int) – Dimension of array.

  • array (Union[ndarray, Iterable[float]]) – Array to be re-ordered.

Return type

ndarray

Returns

Re-ordered Array.

spiceypy.spiceypy.reordi(iorder, ndim, array)[source]

Re-order the elements of an integer array according to a given order vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordi_c.html

Parameters
  • iorder (Union[ndarray, Iterable[int]]) – Order vector to be used to re-order array.

  • ndim (int) – Dimension of array.

  • array (Union[ndarray, Iterable[int]]) – Array to be re-ordered.

Return type

ndarray

Returns

Re-ordered Array.

spiceypy.spiceypy.reordl(iorder, ndim, array)[source]

Re-order the elements of a logical (Boolean) array according to a given order vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reordl_c.html

Parameters
  • iorder (Union[ndarray, Iterable[int]]) – Order vector to be used to re-order array.

  • ndim (int) – Dimension of array.

  • array (Iterable[bool]) – Array to be re-ordered.

Return type

ndarray

Returns

Re-ordered Array.

spiceypy.spiceypy.repmc(instr, marker, value, lenout=None)[source]

Replace a marker with a character string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmc_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (str) – Replacement value.

  • lenout (Optional[int]) – Optional available space in output string

Return type

str

Returns

Output string.

spiceypy.spiceypy.repmct(instr, marker, value, repcase, lenout=None)[source]

Replace a marker with the text representation of a cardinal number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmc_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (int) – Replacement value.

  • repcase (str) – Case of replacement text.

  • lenout (Optional[int]) – Optional available space in output string

Return type

str

Returns

Output string.

spiceypy.spiceypy.repmd(instr, marker, value, sigdig)[source]

Replace a marker with a double precision number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmd_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (float) – Replacement value.

  • sigdig (int) – Significant digits in replacement text.

Return type

str

Returns

Output string.

spiceypy.spiceypy.repmf(instr, marker, value, sigdig, informat, lenout=None)[source]

Replace a marker in a string with a formatted double precision value.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmf_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (float) – Replacement value.

  • sigdig (int) – Significant digits in replacement text.

  • informat (str) – Format ‘E’ or ‘F’.

  • lenout (Optional[int]) – Optional available space in output string.

Return type

str

Returns

Output string.

spiceypy.spiceypy.repmi(instr, marker, value, lenout=None)[source]

Replace a marker with an integer.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmi_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (int) – Replacement value.

  • lenout (Optional[int]) – Optional available space in output string.

Return type

str

Returns

Output string.

spiceypy.spiceypy.repmot(instr, marker, value, repcase, lenout=None)[source]

Replace a marker with the text representation of an ordinal number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/repmot_c.html

Parameters
  • instr (str) – Input string.

  • marker (str) – Marker to be replaced.

  • value (int) – Replacement value.

  • repcase (str) – Case of replacement text.

  • lenout (Optional[int]) – Optional available space in output string.

Return type

str

Returns

Output string.

spiceypy.spiceypy.reset()[source]

Reset the SPICE error status to a value of “no error.” As a result, the status routine, failed, will return a value of False

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/reset_c.html

Return type

None

spiceypy.spiceypy.return_c()[source]

True if SPICE routines should return immediately upon entry.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/return_c.html

Return type

bool

Returns

True if SPICE routines should return immediately upon entry.

spiceypy.spiceypy.rotate(angle, iaxis)[source]

Calculate the 3x3 rotation matrix generated by a rotation of a specified angle about a specified axis. This rotation is thought of as rotating the coordinate system.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotate_c.html

Parameters
  • angle (float) – Angle of rotation (radians).

  • iaxis (int) – Axis of rotation X=1, Y=2, Z=3.

Return type

ndarray

Returns

Resulting rotation matrix

spiceypy.spiceypy.rotmat(m1, angle, iaxis)[source]

Rotmat applies a rotation of angle radians about axis iaxis to a matrix. This rotation is thought of as rotating the coordinate system.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotmat_c.html

Parameters
  • m1 (ndarray) – Matrix to be rotated.

  • angle (float) – Angle of rotation (radians).

  • iaxis (int) – Axis of rotation X=1, Y=2, Z=3.

Return type

ndarray

Returns

Resulting rotated matrix.

spiceypy.spiceypy.rotvec(v1, angle, iaxis)[source]

Transform a vector to a new coordinate system rotated by angle radians about axis iaxis. This transformation rotates v1 by angle radians about the specified axis.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rotvec_c.html

Parameters
  • v1 (Iterable[float]) – Vector whose coordinate system is to be rotated.

  • angle (float) – Angle of rotation (radians).

  • iaxis (int) – Axis of rotation X=1, Y=2, Z=3.

Return type

ndarray

Returns

the vector expressed in the new coordinate system.

spiceypy.spiceypy.rpd()[source]

Return the number of radians per degree.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rpd_c.html

Return type

float

Returns

The number of radians per degree, pi/180.

spiceypy.spiceypy.rquad(a, b, c)[source]

Find the roots of a quadratic equation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/rquad_c.html

Parameters
  • a (float) – Coefficient of quadratic term.

  • b (float) – Coefficient of linear term.

  • c (float) – Constant.

Return type

Tuple[ndarray, ndarray]

Returns

Root built from positive and negative discriminant term.

spiceypy.spiceypy.saelgv(vec1, vec2)[source]

Find semi-axis vectors of an ellipse generated by two arbitrary three-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/saelgv_c.html

Parameters
  • vec1 (Union[ndarray, Iterable[float]]) – First vector used to generate an ellipse.

  • vec2 (Union[ndarray, Iterable[float]]) – Second vector used to generate an ellipse.

Return type

Tuple[ndarray, ndarray]

Returns

Semi-major axis of ellipse, Semi-minor axis of ellipse.

spiceypy.spiceypy.scard(incard, cell)[source]

Set the cardinality of a SPICE cell of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scard_c.html

Parameters
  • incard (int) – Cardinality of (number of elements in) the cell.

  • cell (SpiceCell) – The cell.

Return type

SpiceCell

Returns

The updated Cell.

spiceypy.spiceypy.scdecd(sc, sclkdp, lenout=256, mxpart=None)[source]

Convert double precision encoding of spacecraft clock time into a character representation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scdecd_c.html

Parameters
  • sc (int) – NAIF spacecraft identification code.

  • sclkdp (float) – Encoded representation of a spacecraft clock count.

  • lenout (int) – Maximum allowed length of output SCLK string.

  • mxpart (Optional[int]) – Maximum number of spacecraft clock partitions.

Return type

str

Returns

Character representation of a clock count.

spiceypy.spiceypy.sce2c(sc, et)[source]

Convert ephemeris seconds past J2000 (ET) to continuous encoded spacecraft clock “ticks”. Non-integral tick values may be returned.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2c_c.html

Parameters
  • sc (int) – NAIF spacecraft ID code.

  • et (float) – Ephemeris time, seconds past J2000.

Return type

float

Returns

SCLK, encoded as ticks since spacecraft clock start. sclkdp need not be integral.

spiceypy.spiceypy.sce2s(sc, et, lenout=256)[source]

Convert an epoch specified as ephemeris seconds past J2000 (ET) to a character string representation of a spacecraft clock value (SCLK).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2s_c.html

Parameters
  • sc (int) – NAIF spacecraft clock ID code.

  • et (float) – Ephemeris time, specified as seconds past J2000.

  • lenout (int) – Maximum length of output string.

Return type

str

Returns

An SCLK string.

spiceypy.spiceypy.sce2t(sc, et)[source]

Convert ephemeris seconds past J2000 (ET) to integral encoded spacecraft clock (“ticks”). For conversion to fractional ticks, (required for C-kernel production), see the routine sce2c().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sce2t_c.html

Parameters
  • sc (int) – NAIF spacecraft ID code.

  • et (float) – Ephemeris time, seconds past J2000.

Return type

float

Returns

SCLK, encoded as ticks since spacecraft clock start.

spiceypy.spiceypy.scencd(sc, sclkch, mxpart=None)[source]

Encode character representation of spacecraft clock time into a double precision number.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scencd_c.html

Parameters
  • sc (int) – NAIF spacecraft identification code.

  • sclkch (Union[str, Iterable[str]]) – Character representation of a spacecraft clock.

  • mxpart (Optional[int]) – Maximum number of spacecraft clock partitions.

Return type

Union[float, ndarray]

Returns

Encoded representation of the clock count.

spiceypy.spiceypy.scfmt(sc, ticks, lenout=256)[source]

Convert encoded spacecraft clock ticks to character clock format.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scfmt_c.html

Parameters
  • sc (int) – NAIF spacecraft identification code.

  • ticks (float) – Encoded representation of a spacecraft clock count.

  • lenout (int) – Maximum allowed length of output string.

Return type

str

Returns

Character representation of a clock count.

spiceypy.spiceypy.scpart(sc)[source]

Get spacecraft clock partition information from a spacecraft clock kernel file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scpart_c.html

Parameters

sc (int) – NAIF spacecraft identification code.

Return type

Tuple[ndarray, ndarray]

Returns

The number of spacecraft clock partitions, Array of partition start times, Array of partition stop times.

spiceypy.spiceypy.scs2e(sc, sclkch)[source]

Convert a spacecraft clock string to ephemeris seconds past J2000 (ET).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/scs2e_c.html

Parameters
  • sc (int) – NAIF integer code for a spacecraft.

  • sclkch (str) – An SCLK string.

Return type

float

Returns

Ephemeris time, seconds past J2000.

spiceypy.spiceypy.sct2e(sc, sclkdp)[source]

Convert encoded spacecraft clock (“ticks”) to ephemeris seconds past J2000 (ET).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sct2e_c.html

Parameters
  • sc (int) – NAIF spacecraft ID code.

  • sclkdp (Union[float, Iterable[float]]) – SCLK, encoded as ticks since spacecraft clock start.

Return type

Union[float, ndarray]

Returns

Ephemeris time, seconds past J2000.

spiceypy.spiceypy.sctiks(sc, clkstr)[source]

Convert a spacecraft clock format string to number of “ticks”.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sctiks_c.html

Parameters
  • sc (int) – NAIF spacecraft identification code.

  • clkstr (str) – Character representation of a spacecraft clock.

Return type

float

Returns

Number of ticks represented by the clock string.

spiceypy.spiceypy.sdiff(a, b)[source]

Take the symmetric difference of two sets of any data type to form a third set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sdiff_c.html

Parameters
Return type

SpiceCell

Returns

Symmetric difference of a and b.

spiceypy.spiceypy.set_c(a, op, b)[source]

Given a relational operator, compare two sets of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/set_c.html

Parameters
  • a (SpiceCell) – First set.

  • op (str) – Comparison operator.

  • b (SpiceCell) – Second set.

Return type

bool

Returns

The function returns the result of the comparison.

spiceypy.spiceypy.setmsg(message)[source]

Set the value of the current long error message.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/setmsg_c.html

Parameters

message (str) – A long error message.

Return type

None

spiceypy.spiceypy.shellc(ndim, lenvals, array)[source]

Sort an array of character strings according to the ASCII collating sequence using the Shell Sort algorithm.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shellc_c.html

Parameters
  • ndim (int) – Dimension of the array.

  • lenvals (int) – String length.

  • array (Iterable[str]) – The array to be sorted.

Return type

Iterable[str]

Returns

The sorted array.

spiceypy.spiceypy.shelld(ndim, array)[source]

Sort a double precision array using the Shell Sort algorithm.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shelld_c.html

Parameters
  • ndim (int) – Dimension of the array.

  • array (Union[ndarray, Iterable[float]]) – The array to be sorted.

Return type

ndarray

Returns

The sorted array.

spiceypy.spiceypy.shelli(ndim, array)[source]

Sort an integer array using the Shell Sort algorithm.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/shelli_c.html

Parameters
  • ndim (int) – Dimension of the array.

  • array (Union[ndarray, Iterable[int]]) – The array to be sorted.

Return type

ndarray

Returns

The sorted array.

spiceypy.spiceypy.sigerr(message)[source]

Inform the CSPICE error processing mechanism that an error has occurred, and specify the type of error.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sigerr_c.html

Parameters

message (str) – A short error message.

Return type

None

spiceypy.spiceypy.sincpt(method, target, et, fixref, abcorr, obsrvr, dref, dvec)[source]

Given an observer and a direction vector defining a ray, compute the surface intercept of the ray on a target body at a specified epoch, optionally corrected for light time and stellar aberration.

This routine supersedes srfxpt().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sincpt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

  • dref (str) – Reference frame of ray’s direction vector.

  • dvec (ndarray) – Ray’s direction vector.

Return type

Tuple[ndarray, float, ndarray, bool]

Returns

Surface intercept point on the target body, Intercept epoch, Vector from observer to intercept point.

spiceypy.spiceypy.size(cell)[source]

Return the size (maximum cardinality) of a SPICE cell of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/size_c.html

Parameters

cell (SpiceCell) – Input cell.

Return type

int

Returns

The size of the input cell.

spiceypy.spiceypy.spd()[source]

Return the number of seconds in a day.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spd_c.html

Return type

float

Returns

The number of seconds in a day.

spiceypy.spiceypy.sphcyl(radius, colat, slon)[source]

This routine converts from spherical coordinates to cylindrical coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphcyl_c.html

Parameters
  • radius (float) – Distance of point from origin.

  • colat (float) – Polar angle (co-latitude in radians) of point.

  • slon (float) – Azimuthal angle (longitude) of point (radians).

Return type

Tuple[float, float, float]

Returns

Distance of point from z axis, angle (radians) of point from XZ plane, Height of point above XY plane.

spiceypy.spiceypy.sphlat(r, colat, lons)[source]

Convert from spherical coordinates to latitudinal coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphlat_c.html

Parameters
  • r (float) – Distance of the point from the origin.

  • colat (float) – Angle of the point from positive z axis (radians).

  • lons (float) – Angle of the point from the XZ plane (radians).

Return type

Tuple[float, float, float]

Returns

Distance of a point from the origin, Angle of the point from the XZ plane in radians, Angle of the point from the XY plane in radians.

spiceypy.spiceypy.sphrec(r, colat, lon)[source]

Convert from spherical coordinates to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sphrec_c.html

Parameters
  • r (float) – Distance of a point from the origin.

  • colat (float) – Angle of the point from the positive Z-axis.

  • lon (float) – Angle of the point from the XZ plane in radians.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.spice_error_check(f)[source]

Decorator for spiceypy hooking into spice error system. If an error is detected, an output similar to outmsg

Returns

spiceypy.spiceypy.spice_found_exception_thrower(f)[source]

Decorator for wrapping functions that use status codes

Return type

Callable

spiceypy.spiceypy.spk14a(handle, ncsets, coeffs, epochs)[source]

Add data to a type 14 SPK segment associated with handle. See also spk14b() and spk14e().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spk14a_c.html

Parameters
  • handle (int) – The handle of an SPK file open for writing.

  • ncsets (int) – The number of coefficient sets and epochs.

  • coeffs (Union[ndarray, Iterable[float]]) – The collection of coefficient sets.

  • epochs (Union[ndarray, Iterable[float]]) – The epochs associated with the coefficient sets.

Return type

None

spiceypy.spiceypy.spk14b(handle, segid, body, center, framename, first, last, chbdeg)[source]

Begin a type 14 SPK segment in the SPK file associated with handle. See also spk14a() and spk14e().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spk14b_c.html

Parameters
  • handle (int) – The handle of an SPK file open for writing.

  • segid (str) – The string to use for segment identifier.

  • body (int) – The NAIF ID code for the body of the segment.

  • center (int) – The center of motion for body.

  • framename (str) – The reference frame for this segment.

  • first (float) – The first epoch for which the segment is valid.

  • last (float) – The last epoch for which the segment is valid.

  • chbdeg (int) – The degree of the Chebyshev Polynomial used.

Return type

None

spiceypy.spiceypy.spk14e(handle)[source]

End the type 14 SPK segment currently being written to the SPK file associated with handle. See also spk14a() and spk14b().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spk14e_c.html

Parameters

handle (int) – The handle of an SPK file open for writing.

Return type

None

spiceypy.spiceypy.spkacs(targ, et, ref, abcorr, obs)[source]

Return the state (position and velocity) of a target body relative to an observer, optionally corrected for light time and stellar aberration, expressed relative to an inertial reference frame.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkacs_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Inertial reference frame of output state.

  • abcorr (str) – Aberration correction flag.

  • obs (int) – Observer.

Return type

Tuple[ndarray, float, float]

Returns

State of target, One way light time between observer and target, Derivative of light time with respect to time.

spiceypy.spiceypy.spkapo(targ, et, ref, sobs, abcorr)[source]

Return the position of a target body relative to an observer, optionally corrected for light time and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkapo_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Inertial reference frame of observer’s state.

  • sobs (ndarray) – State of observer wrt. solar system barycenter.

  • abcorr (str) – Aberration correction flag.

Return type

Tuple[ndarray, float]

Returns

Position of target, One way light time between observer and target.

spiceypy.spiceypy.spkapp(targ, et, ref, sobs, abcorr)[source]

Deprecated: This routine has been superseded by spkaps(). This routine is supported for purposes of backward compatibility only.

Return the state (position and velocity) of a target body relative to an observer, optionally corrected for light time and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkapp_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Inertial reference frame of observer’s state.

  • sobs (ndarray) – State of observer wrt. solar system barycenter.

  • abcorr (str) – Aberration correction flag.

Return type

Tuple[ndarray, float]

Returns

State of target, One way light time between observer and target.

spiceypy.spiceypy.spkaps(targ, et, ref, abcorr, stobs, accobs)[source]

Given the state and acceleration of an observer relative to the solar system barycenter, return the state (position and velocity) of a target body relative to the observer, optionally corrected for light time and stellar aberration. All input and output vectors are expressed relative to an inertial reference frame.

This routine supersedes spkapp().

SPICE users normally should call the high-level API routines spkezr() or spkez() rather than this routine. https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkaps_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Inertial reference frame of output state.

  • abcorr (str) – Aberration correction flag.

  • stobs (ndarray) – State of the observer relative to the SSB.

  • accobs (Iterable[float]) – Acceleration of the observer relative to the SSB.

Return type

Tuple[ndarray, float, float]

Returns

State of target, One way light time between observer and target, Derivative of light time with respect to time.

spiceypy.spiceypy.spkcls(handle)[source]

Close an open SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcls_c.html

Parameters

handle (int) – Handle of the SPK file to be closed.

Return type

None

spiceypy.spiceypy.spkcov(spk, idcode, cover=None)[source]

Find the coverage window for a specified ephemeris object in a specified SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcov_c.html

Parameters
  • spk (str) – Name of SPK file.

  • idcode (int) – ID code of ephemeris object.

  • cover (Optional[SpiceCell]) – Optional SPICE Window giving coverage in “spk” for “idcode”.

Return type

SpiceCell

spiceypy.spiceypy.spkcpo(target, et, outref, refloc, abcorr, obspos, obsctr, obsref)[source]

Return the state of a specified target relative to an “observer,” where the observer has constant position in a specified reference frame. The observer’s position is provided by the calling program rather than by loaded SPK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcpo_c.html

Parameters
  • target (str) – Name of target ephemeris object.

  • et (float) – Observation epoch.

  • outref (str) – Reference frame of output state.

  • refloc (str) – Output reference frame evaluation locus.

  • abcorr (str) – Aberration correction.

  • obspos (Union[ndarray, Iterable[float]]) – Observer position relative to center of motion.

  • obsctr (str) – Center of motion of observer.

  • obsref (str) – Frame of observer position.

Return type

Tuple[ndarray, float]

Returns

State of target with respect to observer, One way light time between target and observer.

spiceypy.spiceypy.spkcpt(trgpos, trgctr, trgref, et, outref, refloc, abcorr, obsrvr)[source]

Return the state, relative to a specified observer, of a target having constant position in a specified reference frame. The target’s position is provided by the calling program rather than by loaded SPK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcpt_c.html

Parameters
  • trgpos (Union[ndarray, Iterable[float]]) – Target position relative to center of motion.

  • trgctr (str) – Center of motion of target.

  • trgref (str) – Observation epoch.

  • et (float) – Observation epoch.

  • outref (str) – Reference frame of output state.

  • refloc (str) – Output reference frame evaluation locus.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing ephemeris object.

Return type

Tuple[ndarray, float]

Returns

State of target with respect to observer, One way light time between target and observer.

spiceypy.spiceypy.spkcvo(target, et, outref, refloc, abcorr, obssta, obsepc, obsctr, obsref)[source]

Return the state of a specified target relative to an “observer,” where the observer has constant velocity in a specified reference frame. The observer’s state is provided by the calling program rather than by loaded SPK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcvo_c.html

Parameters
  • target (str) – Name of target ephemeris object.

  • et (float) – Observation epoch.

  • outref (str) – Reference frame of output state.

  • refloc (str) – Output reference frame evaluation locus.

  • abcorr (str) – Aberration correction.

  • obssta (Union[ndarray, Iterable[float]]) – Observer state relative to center of motion.

  • obsepc (float) – Epoch of observer state.

  • obsctr (str) – Center of motion of observer.

  • obsref (str) – Frame of observer state.

Return type

Tuple[ndarray, float]

Returns

State of target with respect to observer, One way light time between target and observer.

spiceypy.spiceypy.spkcvt(trgsta, trgepc, trgctr, trgref, et, outref, refloc, abcorr, obsrvr)[source]

Return the state, relative to a specified observer, of a target having constant velocity in a specified reference frame. The target’s state is provided by the calling program rather than by loaded SPK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkcvt_c.html

Parameters
  • trgsta (Union[ndarray, Iterable[float]]) – Target state relative to center of motion.

  • trgepc (float) – Epoch of target state.

  • trgctr (str) – Center of motion of target.

  • trgref (str) – Frame of target state.

  • et (float) – Observation epoch.

  • outref (str) – Reference frame of output state.

  • refloc (str) – Output reference frame evaluation locus.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing ephemeris object.

Return type

Tuple[ndarray, float]

Returns

State of target with respect to observer, One way light time between target and observer.

spiceypy.spiceypy.spkez(targ, et, ref, abcorr, obs)[source]

Return the state (position and velocity) of a target body relative to an observing body, optionally corrected for light time (planetary aberration) and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkez_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Reference frame of output state vector.

  • abcorr (str) – Aberration correction flag.

  • obs (int) – Observing body.

Return type

Tuple[ndarray, float]

Returns

State of target, One way light time between observer and target.

spiceypy.spiceypy.spkezp(targ, et, ref, abcorr, obs)[source]

Return the position of a target body relative to an observing body, optionally corrected for light time (planetary aberration) and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezp_c.html

Parameters
  • targ (int) – Target body NAIF ID code.

  • et (float) – Observer epoch.

  • ref (str) – Reference frame of output position vector.

  • abcorr (str) – Aberration correction flag.

  • obs (int) – Observing body NAIF ID code.

Return type

Tuple[ndarray, float]

Returns

Position of target, One way light time between observer and target.

spiceypy.spiceypy.spkezr(targ, et, ref, abcorr, obs)[source]

Return the state (position and velocity) of a target body relative to an observing body, optionally corrected for light time (planetary aberration) and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezr_c.html

Parameters
  • targ (str) – Target body name.

  • et (Union[ndarray, float]) – Observer epoch.

  • ref (str) – Reference frame of output state vector.

  • abcorr (str) – Aberration correction flag.

  • obs (str) – Observing body name.

Return type

Union[Tuple[ndarray, float], Tuple[Iterable[ndarray], Iterable[float]]]

Returns

State of target, One way light time between observer and target.

spiceypy.spiceypy.spkgeo(targ, et, ref, obs)[source]

Compute the geometric state (position and velocity) of a target body relative to an observing body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkgeo_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Target epoch.

  • ref (str) – Target reference frame.

  • obs (int) – Observing body.

Return type

Tuple[ndarray, float]

Returns

State of target, Light time.

spiceypy.spiceypy.spkgps(targ, et, ref, obs)[source]

Compute the geometric position of a target body relative to an observing body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkgps_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Target epoch.

  • ref (str) – Target reference frame.

  • obs (int) – Observing body.

Return type

Tuple[ndarray, float]

Returns

Position of target, Light time.

spiceypy.spiceypy.spklef(filename)[source]

Load an ephemeris file for use by the readers. Return that file’s handle, to be used by other SPK routines to refer to the file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spklef_c.html

Parameters

filename (str) – Name of the file to be loaded.

Return type

int

Returns

Loaded file’s handle.

spiceypy.spiceypy.spkltc(targ, et, ref, abcorr, stobs)[source]

Return the state (position and velocity) of a target body relative to an observer, optionally corrected for light time, expressed relative to an inertial reference frame.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkltc_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Observer epoch.

  • ref (str) – Inertial reference frame of output state.

  • abcorr (str) – Aberration correction flag.

  • stobs (ndarray) – State of the observer relative to the SSB.

Return type

Tuple[ndarray, float, float]

Returns

One way light time between observer and target, Derivative of light time with respect to time

spiceypy.spiceypy.spkobj(spk, out_cell=None)[source]

Find the set of ID codes of all objects in a specified SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkobj_c.html

Parameters
  • spk (str) – Name of SPK file.

  • out_cell (Optional[SpiceCell]) – Optional Spice Int Cell.

Return type

SpiceCell

spiceypy.spiceypy.spkopa(filename)[source]

Open an existing SPK file for subsequent write.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkopa_c.html

Parameters

filename (str) – The name of an existing SPK file.

Return type

int

Returns

A handle attached to the SPK file opened to append.

spiceypy.spiceypy.spkopn(filename, ifname, ncomch)[source]

Create a new SPK file, returning the handle of the opened file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkopn_c.html

Parameters
  • filename (str) – The name of the new SPK file to be created.

  • ifname (str) – The internal filename for the SPK file.

  • ncomch (int) – The number of characters to reserve for comments.

Return type

int

Returns

The handle of the opened SPK file.

spiceypy.spiceypy.spkpds(body, center, framestr, typenum, first, last)[source]

Perform routine error checks and if all check pass, pack the descriptor for an SPK segment

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpds_c.html

Parameters
  • body (int) – The NAIF ID code for the body of the segment.

  • center (int) – The center of motion for body.

  • framestr (str) – The frame for this segment.

  • typenum (int) – The type of SPK segment to create.

  • first (float) – The first epoch for which the segment is valid.

  • last (float) – The last epoch for which the segment is valid.

Return type

ndarray

Returns

An SPK segment descriptor.

spiceypy.spiceypy.spkpos(targ, et, ref, abcorr, obs)[source]

Return the position of a target body relative to an observing body, optionally corrected for light time (planetary aberration) and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpos_c.html

Parameters
  • targ (str) – Target body name.

  • et (Union[float, ndarray]) – Observer epoch.

  • ref (str) – Reference frame of output position vector.

  • abcorr (str) – Aberration correction flag.

  • obs (str) – Observing body name.

Return type

Union[Tuple[ndarray, float], Tuple[ndarray, ndarray]]

Returns

Position of target, One way light time between observer and target.

spiceypy.spiceypy.spkpvn(handle, descr, et)[source]

For a specified SPK segment and time, return the state (position and velocity) of the segment’s target body relative to its center of motion.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkpvn_c.html

Parameters
  • handle (int) – File handle.

  • descr (ndarray) – Segment descriptor.

  • et (float) – Evaluation epoch.

Return type

Tuple[int, ndarray, int]

Returns

Segment reference frame ID code, Output state vector, Center of state.

spiceypy.spiceypy.spksfs(body, et, idlen)[source]

Search through loaded SPK files to find the highest-priority segment applicable to the body and time specified.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spksfs_c.html

Parameters
  • body (int) – Body ID.

  • et (float) – Ephemeris time.

  • idlen (int) – Length of output segment ID string.

Return type

Tuple[int, ndarray, str, bool]

Returns

Handle of file containing the applicable segment, Descriptor of the applicable segment, Identifier of the applicable segment.

spiceypy.spiceypy.spkssb(targ, et, ref)[source]

Return the state (position and velocity) of a target body relative to the solar system barycenter.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkssb_c.html

Parameters
  • targ (int) – Target body.

  • et (float) – Target epoch.

  • ref (str) – Target reference frame.

Return type

ndarray

Returns

State of target.

spiceypy.spiceypy.spksub(handle, descr, identin, begin, end, newh)[source]

Extract a subset of the data in an SPK segment into a separate segment.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spksub_c.html

Parameters
  • handle (int) – Handle of source segment.

  • descr (ndarray) – Descriptor of source segment.

  • identin (str) – Indentifier of source segment.

  • begin (float) – Beginning (initial epoch) of subset.

  • end (float) – End (fincal epoch) of subset.

  • newh (int) – Handle of new segment.

Return type

None

spiceypy.spiceypy.spkuds(descr)[source]

Unpack the contents of an SPK segment descriptor.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkuds_c.html

Parameters

descr (ndarray) – An SPK segment descriptor.

Return type

Tuple[int, int, int, int, float, float, int, int]

Returns

The NAIF ID code for the body of the segment, The center of motion for body, The ID code for the frame of this segment, The type of SPK segment, The first epoch for which the segment is valid, The last epoch for which the segment is valid, Beginning DAF address of the segment, Ending DAF address of the segment.

spiceypy.spiceypy.spkuef(handle)[source]

Unload an ephemeris file so that it will no longer be searched by the readers.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkuef_c.html

Parameters

handle (int) – Handle of file to be unloaded

Return type

None

spiceypy.spiceypy.spkw02(handle, body, center, inframe, first, last, segid, intlen, n, polydg, cdata, btime)[source]

Write a type 2 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw02_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • intlen (float) – Length of time covered by logical record.

  • n (int) – Number of coefficient sets.

  • polydg (int) – Chebyshev polynomial degree.

  • cdata (Union[ndarray, Iterable[float]]) – Array of Chebyshev coefficients.

  • btime (float) – Begin time of first logical record.

Return type

None

spiceypy.spiceypy.spkw03(handle, body, center, inframe, first, last, segid, intlen, n, polydg, cdata, btime)[source]

Write a type 3 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw03_c.html

Parameters
  • handle (int) – Handle of SPK file open for writing.

  • body (int) – NAIF code for ephemeris object.

  • center (int) – NAIF code for the center of motion of the body.

  • inframe (str) – Reference frame name.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • intlen (float) – Length of time covered by record.

  • n (int) – Number of records in segment.

  • polydg (int) – Chebyshev polynomial degree.

  • cdata (Union[ndarray, Iterable[float]]) – Array of Chebyshev coefficients.

  • btime (float) – Begin time of first record.

Return type

None

spiceypy.spiceypy.spkw05(handle, body, center, inframe, first, last, segid, gm, n, states, epochs)[source]

Write an SPK segment of type 5 given a time-ordered set of discrete states and epochs, and the gravitational parameter of a central body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw05_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • gm (float) – Gravitational parameter of central body.

  • n (int) – Number of states and epochs.

  • states (Union[ndarray, Iterable[Iterable[float]]]) – States.

  • epochs (Union[ndarray, Iterable[float]]) – Epochs.

Return type

None

spiceypy.spiceypy.spkw08(handle, body, center, inframe, first, last, segid, degree, n, states, epoch1, step)[source]

Write a type 8 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw08_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – NAIF code for an ephemeris object.

  • center (int) – NAIF code for center of motion of “body”.

  • inframe (str) – Reference frame name.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • degree (int) – Degree of interpolating polynomials.

  • n (int) – Number of states.

  • states (Union[ndarray, Iterable[Iterable[float]]]) – Array of states.

  • epoch1 (float) – Epoch of first state in states array.

  • step (float) – Time step separating epochs of states.

Return type

None

spiceypy.spiceypy.spkw09(handle, body, center, inframe, first, last, segid, degree, n, states, epochs)[source]

Write a type 9 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw09_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – NAIF code for an ephemeris object.

  • center (int) – NAIF code for center of motion of “body”.

  • inframe (str) – Reference frame name.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • degree (int) – Degree of interpolating polynomials.

  • n (int) – Number of states.

  • states (Union[ndarray, Iterable[Iterable[float]]]) – Array of states.

  • epochs (Union[ndarray, Iterable[float]]) – Array of epochs corresponding to states.

Return type

None

spiceypy.spiceypy.spkw10(handle, body, center, inframe, first, last, segid, consts, n, elems, epochs)[source]

Write an SPK type 10 segment to the DAF open and attached to the input handle.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw10_c.html

Parameters
  • handle (int) – The handle of a DAF file open for writing.

  • body (int) – The NAIF ID code for the body of the segment.

  • center (int) – The center of motion for body.

  • inframe (str) – The reference frame for this segment.

  • first (float) – The first epoch for which the segment is valid.

  • last (float) – The last epoch for which the segment is valid.

  • segid (str) – The string to use for segment identifier.

  • consts (Union[ndarray, Iterable[float]]) – The array of geophysical constants for the segment.

  • n (int) – The number of element/epoch pairs to be stored.

  • elems (Union[ndarray, Iterable[float]]) – The collection of “two-line” element sets.

  • epochs (Union[ndarray, Iterable[float]]) – The epochs associated with the element sets.

Return type

None

spiceypy.spiceypy.spkw12(handle, body, center, inframe, first, last, segid, degree, n, states, epoch0, step)[source]

Write a type 12 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw12_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – NAIF code for an ephemeris object.

  • center (int) – NAIF code for center of motion of body.

  • inframe (str) – Reference frame name.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • degree (int) – Degree of interpolating polynomials.

  • n (int) – Number of states.

  • states (Union[ndarray, Iterable[Iterable[float]]]) – Array of states.

  • epoch0 (float) – Epoch of first state in states array.

  • step (float) – Time step separating epochs of states.

Return type

None

spiceypy.spiceypy.spkw13(handle, body, center, inframe, first, last, segid, degree, n, states, epochs)[source]

Write a type 13 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw13_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – NAIF code for an ephemeris object.

  • center (int) – NAIF code for center of motion of body.

  • inframe (str) – Reference frame name.

  • first (float) – Start time of interval covered by segment.

  • last (float) – End time of interval covered by segment.

  • segid (str) – Segment identifier.

  • degree (int) – Degree of interpolating polynomials.

  • n (int) – Number of states.

  • states (Union[ndarray, Iterable[Iterable[float]]]) – Array of states.

  • epochs (Union[ndarray, Iterable[float]]) – Array of epochs corresponding to states.

Return type

None

spiceypy.spiceypy.spkw15(handle, body, center, inframe, first, last, segid, epoch, tp, pa, p, ecc, j2flg, pv, gm, j2, radius)[source]

Write an SPK segment of type 15 given a type 15 data record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw15_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • epoch (float) – Epoch of the periapse.

  • tp (ndarray) – Trajectory pole vector.

  • pa (ndarray) – Periapsis vector.

  • p (float) – Semi-latus rectum.

  • ecc (float) – Eccentricity.

  • j2flg (float) – J2 processing flag.

  • pv (Union[ndarray, Iterable[float]]) – Central body pole vector.

  • gm (float) – Central body GM.

  • j2 (float) – Central body J2.

  • radius (float) – Equatorial radius of central body.

Return type

None

spiceypy.spiceypy.spkw17(handle, body, center, inframe, first, last, segid, epoch, eqel, rapol, decpol)[source]

Write an SPK segment of type 17 given a type 17 data record.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw17_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • epoch (float) – Epoch of elements in seconds past J2000.

  • eqel (Iterable[float]) – Array of equinoctial elements.

  • rapol (float) – Right Ascension of the pole of the reference plane.

  • decpol (float) – Declination of the pole of the reference plane.

Return type

None

spiceypy.spiceypy.spkw18(handle, subtyp, body, center, inframe, first, last, segid, degree, packts, epochs)[source]

Write a type 18 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw18_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • subtyp (int) – SPK type 18 subtype code.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • degree (int) – Degree of interpolating polynomials.

  • packts (Sequence[Iterable[float]]) – data packets

  • epochs (Sequence[float]) – Array of epochs corresponding to states.

Return type

None

spiceypy.spiceypy.spkw20(handle, body, center, inframe, first, last, segid, intlen, n, polydg, cdata, dscale, tscale, initjd, initfr)[source]

Write a type 20 segment to an SPK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkw20_c.html

Parameters
  • handle (int) – Handle of an SPK file open for writing.

  • body (int) – Body code for ephemeris object.

  • center (int) – Body code for the center of motion of the body.

  • inframe (str) – The reference frame of the states.

  • first (float) – First valid time for which states can be computed.

  • last (float) – Last valid time for which states can be computed.

  • segid (str) – Segment identifier.

  • intlen (float) – Length of time covered by logical record (days).

  • n (int) – Number of logical records in segment.

  • polydg (int) – Chebyshev polynomial degree.

  • cdata (ndarray) – Array of Chebyshev coefficients and positions.

  • dscale (float) – Distance scale of data.

  • tscale (float) – Time scale of data.

  • initjd (float) – Integer part of begin time (TDB Julian date) of first record.

  • initfr (float) – Fractional part of begin time (TDB Julian date) of first record.

Return type

None

spiceypy.spiceypy.srfc2s(code, bodyid, srflen=256)[source]

Translate a surface ID code, together with a body ID code, to the corresponding surface name. If no such name exists, return a string representation of the surface ID code.

note: from NAIF if isname is false, this case is not treated as an error.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfc2s_c.html

Parameters
  • code (int) – Integer surface ID code to translate to a string.

  • bodyid (int) – ID code of body associated with surface.

  • srflen (int) – Available space in output string.

  • srflen – int

Return type

Tuple[str, bool]

Returns

String corresponding to surface ID code.

spiceypy.spiceypy.srfcss(code, bodstr, srflen=256)[source]

Translate a surface ID code, together with a body string, to the corresponding surface name. If no such surface name exists, return a string representation of the surface ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfcss_c.html

Parameters
  • code (int) – Integer surface ID code to translate to a string.

  • bodstr (str) – Name or ID of body associated with surface.

  • srflen (int) – Available space in output string.

  • srflen – int

Return type

Tuple[str, bool]

Returns

String corresponding to surface ID code.

spiceypy.spiceypy.srfnrm(method, target, et, fixref, srfpts)[source]

Map array of surface points on a specified target body to the corresponding unit length outward surface normal vectors.

The surface of the target body may be represented by a triaxial ellipsoid or by topographic data provided by DSK files.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfnrm_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in TDB seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • srfpts (ndarray) – Array of surface points.

Return type

ndarray

Returns

Array of outward, unit length normal vectors.

spiceypy.spiceypy.srfrec(body, longitude, latitude)[source]

Convert planetocentric latitude and longitude of a surface point on a specified body to rectangular coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfrec_c.html

Parameters
  • body (int) – NAIF integer code of an extended body.

  • longitude (float) – Longitude of point in radians.

  • latitude (float) – Latitude of point in radians.

Return type

ndarray

Returns

Rectangular coordinates of the point.

spiceypy.spiceypy.srfs2c(srfstr, bodstr)[source]

Translate a surface string, together with a body string, to the corresponding surface ID code. The input strings may contain names or integer ID codes.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfs2c_c.html

Parameters
  • srfstr (str) – Surface name or ID string.

  • bodstr (str) – Body name or ID string.

Return type

Tuple[int, bool]

Returns

Integer surface ID code.

spiceypy.spiceypy.srfscc(srfstr, bodyid)[source]

Translate a surface string, together with a body ID code, to the corresponding surface ID code. The input surface string may contain a name or an integer ID code.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfscc_c.html

Parameters
  • srfstr (str) – Surface name or ID string.

  • bodyid (int) – ID code of body associated with surface.

Return type

Tuple[int, bool]

Returns

Integer surface ID code.

spiceypy.spiceypy.srfxpt(method, target, et, abcorr, obsrvr, dref, dvec)[source]

Deprecated: This routine has been superseded by the CSPICE routine sincpt(). This routine is supported for purposes of backward compatibility only.

Given an observer and a direction vector defining a ray, compute the surface intercept point of the ray on a target body at a specified epoch, optionally corrected for light time and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/srfxpt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (Union[float, Iterable[float]]) – Epoch in ephemeris seconds past J2000 TDB.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

  • dref (str) – Reference frame of input direction vector.

  • dvec (ndarray) – Ray’s direction vector.

Return type

Union[Tuple[ndarray, float, float, ndarray, bool], Tuple[ndarray, ndarray, ndarray, ndarray, ndarray]]

Returns

Surface intercept point on the target body, Distance from the observer to the intercept point, Intercept epoch, Observer position relative to target center.

spiceypy.spiceypy.ssize(newsize, cell)[source]

Set the size (maximum cardinality) of a CSPICE cell of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ssize_c.html

Parameters
  • newsize (int) – Size (maximum cardinality) of the cell.

  • cell (SpiceCell) – The cell.

Return type

SpiceCell

Returns

The updated cell.

spiceypy.spiceypy.stelab(pobj, vobs)[source]

Correct the apparent position of an object for stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/stelab_c.html

Parameters
  • pobj (ndarray) – Position of an object with respect to the observer.

  • vobs (ndarray) – Velocity of the observer with respect to the Solar System barycenter.

Return type

ndarray

Returns

Apparent position of the object with respect to the observer, corrected for stellar aberration.

spiceypy.spiceypy.stlabx(pobj, vobs)[source]

Correct the position of a target for the stellar aberration effect on radiation transmitted from a specified observer to the target.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/stlabx_c.html

Parameters
  • pobj (ndarray) – Position of an object with respect to the observer.

  • vobs (ndarray) – Velocity of the observer with respect to the Solar System barycenter.

Return type

ndarray

Returns

Corrected position of the object.

spiceypy.spiceypy.stpool(item, nth, contin, lenout=256)[source]

Retrieve the nth string from the kernel pool variable, where the string may be continued across several components of the kernel pool variable.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/stpool_c.html

Parameters
  • item (str) – Name of the kernel pool variable.

  • nth (int) – Index of the full string to retrieve.

  • contin (str) – Character sequence used to indicate continuation.

  • lenout (int) – Available space in output string.

Return type

Tuple[str, int, bool]

Returns

A full string concatenated across continuations, The number of characters in the full string value.

spiceypy.spiceypy.str2et(time)[source]

Convert a string representing an epoch to a double precision value representing the number of TDB seconds past the J2000 epoch corresponding to the input epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/str2et_c.html

Parameters

time (Union[str, Iterable[str]]) – A string representing an epoch.

Return type

Union[float, ndarray]

Returns

The equivalent value in seconds past J2000, TDB.

spiceypy.spiceypy.subpnt(method, target, et, fixref, abcorr, obsrvr)[source]

Compute the rectangular coordinates of the sub-observer point on a target body at a specified epoch, optionally corrected for light time and stellar aberration.

This routine supersedes subpt().

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subpnt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

Return type

Tuple[ndarray, float, ndarray]

Returns

Sub-observer point on the target body, Sub-observer point epoch, Vector from observer to sub-observer point.

spiceypy.spiceypy.subpt(method, target, et, abcorr, obsrvr)[source]

Deprecated: This routine has been superseded by the CSPICE routine subpnt(). This routine is supported for purposes of backward compatibility only.

Compute the rectangular coordinates of the sub-observer point on a target body at a particular epoch, optionally corrected for planetary (light time) and stellar aberration. Return these coordinates expressed in the body-fixed frame associated with the target body. Also, return the observer’s altitude above the target body.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subpt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (Union[float, Iterable[float]]) – Epoch in ephemeris seconds past J2000 TDB.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

Return type

Union[Tuple[ndarray, ndarray], Tuple[ndarray, float]]

Returns

Sub-observer point on the target body, Altitude of the observer above the target body.

spiceypy.spiceypy.subslr(method, target, et, fixref, abcorr, obsrvr)[source]

Compute the rectangular coordinates of the sub-solar point on a target body at a specified epoch, optionally corrected for light time and stellar aberration.

This routine supersedes subsol_c.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subslr_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

Return type

Tuple[ndarray, float, ndarray]

Returns

Sub-solar point on the target body, Sub-solar point epoch, Vector from observer to sub-solar point.

spiceypy.spiceypy.subsol(method, target, et, abcorr, obsrvr)[source]

Deprecated: This routine has been superseded by the CSPICE routine subslr(). This routine is supported for purposes of backward compatibility only.

Determine the coordinates of the sub-solar point on a target body as seen by a specified observer at a specified epoch, optionally corrected for planetary (light time) and stellar aberration.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/subsol_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • abcorr (str) – Aberration correction.

  • obsrvr (str) – Name of observing body.

Return type

ndarray

Returns

Sub-solar point on the target body.

spiceypy.spiceypy.sumad(array)[source]

Return the sum of the elements of a double precision array.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumad_c.html

Parameters

array (Sequence[float]) – Input Array.

Return type

float

Returns

The sum of the array.

spiceypy.spiceypy.sumai(array)[source]

Return the sum of the elements of an integer array.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sumai_c.html

Parameters

array (Sequence[int]) – Input Array.

Return type

int

Returns

The sum of the array.

spiceypy.spiceypy.surfnm(a, b, c, point)[source]

This routine computes the outward-pointing, unit normal vector from a point on the surface of an ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfnm_c.html

Parameters
  • a (float) – Length of the ellisoid semi-axis along the x-axis.

  • b (float) – Length of the ellisoid semi-axis along the y-axis.

  • c (float) – Length of the ellisoid semi-axis along the z-axis.

  • point (Union[ndarray, Iterable[float]]) – Body-fixed coordinates of a point on the ellipsoid’

Return type

ndarray

Returns

Outward pointing unit normal to ellipsoid at point.

spiceypy.spiceypy.surfpt(positn, u, a, b, c)[source]

Determine the intersection of a line-of-sight vector with the surface of an ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfpt_c.html

Parameters
  • positn (Union[ndarray, Iterable[float]]) – Position of the observer in body-fixed frame.

  • u (Union[ndarray, Iterable[float]]) – Vector from the observer in some direction.

  • a (float) – Length of the ellisoid semi-axis along the x-axis.

  • b (float) – Length of the ellisoid semi-axis along the y-axis.

  • c (float) – Length of the ellisoid semi-axis along the z-axis.

Return type

Tuple[ndarray, bool]

Returns

Point on the ellipsoid pointed to by u.

spiceypy.spiceypy.surfpv(stvrtx, stdir, a, b, c)[source]

Find the state (position and velocity) of the surface intercept defined by a specified ray, ray velocity, and ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/surfpv_c.html

Parameters
  • stvrtx (Union[ndarray, Iterable[float]]) – State of ray’s vertex.

  • stdir (Union[ndarray, Iterable[float]]) – State of ray’s direction vector.

  • a (float) – Length of the ellisoid semi-axis along the x-axis.

  • b (float) – Length of the ellisoid semi-axis along the y-axis.

  • c (float) – Length of the ellisoid semi-axis along the z-axis.

Return type

Tuple[ndarray, bool]

Returns

State of surface intercept.

spiceypy.spiceypy.swpool(agent, nnames, lenvals, names)[source]

Add a name to the list of agents to notify whenever a member of a list of kernel variables is updated.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/swpool_c.html

Parameters
  • agent (str) – The name of an agent to be notified after updates.

  • nnames (int) – The number of variables to associate with agent.

  • lenvals (int) – Length of strings in the names array.

  • names (Iterable[str]) – Variable names whose update causes the notice.

Return type

None

spiceypy.spiceypy.sxform(instring, tostring, et)[source]

Return the state transformation matrix from one frame to another at a specified epoch.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/sxform_c.html

Parameters
  • instring (str) – Name of the frame to transform from.

  • tostring (str) – Name of the frame to transform to.

  • et (Union[float, ndarray]) – Epoch of the state transformation matrix.

Return type

ndarray

Returns

A state transformation matrix.

spiceypy.spiceypy.szpool(name)[source]

Return the kernel pool size limitations.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/szpool_c.html

Parameters

name (str) – Name of the parameter to be returned.

Return type

Tuple[int, bool]

Returns

Value of parameter specified by name,

spiceypy.spiceypy.tangpt(method, target, et, fixref, abcorr, corloc, obsrvr, dref, dvec)[source]

Compute, for a given observer, ray emanating from the observer, and target, the “tangent point”: the point on the ray nearest to the target’s surface. Also compute the point on the target’s surface nearest to the tangent point.

The locations of both points are optionally corrected for light time and stellar aberration.

The surface shape is modeled as a triaxial ellipsoid.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tangpt_c.html

Parameters
  • method (str) – Computation method.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • corloc (str) – Aberration correction locus: “TANGENT POINT” or “SURFACE POINT”.

  • obsrvr (str) – Name of observing body.

  • dref (str) – Reference frame of ray direction vector.

  • dvec (Union[ndarray, Iterable[float]]) – Ray direction vector.

Return type

Tuple[ndarray, float, float, ndarray, float, ndarray]

Returns

“Tangent point”: point on ray nearest to surface, Altitude of tangent point above surface, Distance of tangent point from observer, Point on surface nearest to tangent point, Epoch associated with correction locus, Vector from observer to surface point `srfpt’.

spiceypy.spiceypy.termpt(method, ilusrc, target, et, fixref, abcorr, corloc, obsrvr, refvec, rolstp, ncuts, schstp, soltol, maxn)[source]

Find terminator points on a target body. The caller specifies half-planes, bounded by the illumination source center-target center vector, in which to search for terminator points.

The terminator can be either umbral or penumbral. The umbral terminator is the boundary of the region on the target surface where no light from the source is visible. The penumbral terminator is the boundary of the region on the target surface where none of the light from the source is blocked by the target itself.

The surface of the target body may be represented either by a triaxial ellipsoid or by topographic data.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/termpt_c.html

Parameters
  • method (str) – Computation method.

  • ilusrc (str) – Illumination source.

  • target (str) – Name of target body.

  • et (float) – Epoch in ephemeris seconds past J2000 TDB.

  • fixref (str) – Body-fixed, body-centered target body frame.

  • abcorr (str) – Aberration correction.

  • corloc (str) – Aberration correction locus.

  • obsrvr (str) – Name of observing body.

  • refvec (Union[ndarray, Iterable[float]]) – Reference vector for cutting half-planes.

  • rolstp (float) – Roll angular step for cutting half-planes.

  • ncuts (int) – Number of cutting half-planes.

  • schstp (float) – Angular step size for searching.

  • soltol (float) – Solution convergence tolerance.

  • maxn (int) – Maximum number of entries in output arrays.

Return type

Tuple[ndarray, ndarray, ndarray, ndarray]

Returns

Counts of terminator points corresponding to cuts, Terminator points, Times associated with terminator points, Terminator vectors emanating from the observer

spiceypy.spiceypy.timdef(action, item, lenout, value=None)[source]

Set and retrieve the defaults associated with calendar input strings.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/timdef_c.html

Parameters
  • action (str) – the kind of action to take “SET” or “GET”.

  • item (str) – the default item of interest.

  • lenout (int) – the length of list for output.

  • value (Optional[str]) – the optional string used if action is “SET”

Return type

str

Returns

the value associated with the default item.

spiceypy.spiceypy.timout(et, pictur, lenout=256)[source]

This vectorized routine converts an input epoch represented in TDB seconds past the TDB epoch of J2000 to a character string formatted to the specifications of a user’s format picture.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/timout_c.html

Parameters
  • et (Union[ndarray, float]) – An epoch in seconds past the ephemeris epoch J2000.

  • pictur (str) – A format specification for the output string.

  • lenout (int) – The length of the output string plus 1.

Return type

Union[ndarray, str]

Returns

A string representation of the input epoch.

spiceypy.spiceypy.tipbod(ref, body, et)[source]

Return a 3x3 matrix that transforms positions in inertial coordinates to positions in body-equator-and-prime-meridian coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tipbod_c.html

Parameters
  • ref (str) – ID of inertial reference frame to transform from.

  • body (int) – ID code of body.

  • et (float) – Epoch of transformation.

Return type

ndarray

Returns

Transformation (position), inertial to prime meridian.

spiceypy.spiceypy.tisbod(ref, body, et)[source]

Return a 6x6 matrix that transforms states in inertial coordinates to states in body-equator-and-prime-meridian coordinates.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tisbod_c.html

Parameters
  • ref (str) – ID of inertial reference frame to transform from.

  • body (int) – ID code of body.

  • et (float) – Epoch of transformation.

Return type

ndarray

Returns

Transformation (state), inertial to prime meridian.

spiceypy.spiceypy.tkfram(typid)[source]

This routine returns the rotation from the input frame specified by ID to the associated frame given by FRAME.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/tkfram.html

Parameters

typid (int) – Class identification code for the instrument

Return type

Tuple[ndarray, int, bool]

Returns

Rotation matrix from the input frame to the returned reference frame, id for the reference frame

spiceypy.spiceypy.tkvrsn(item)[source]

Given an item such as the Toolkit or an entry point name, return the latest version string.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tkvrsn_c.html

Parameters

item (str) – Item for which a version string is desired.

Return type

str

Returns

the latest version string.

spiceypy.spiceypy.tparch(type)[source]

Restrict the set of strings that are recognized by SPICE time parsing routines to those that have standard values for all time components.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tparch_c.html

Parameters

type (str) – String: Use “YES” to restrict time inputs.

Return type

None

spiceypy.spiceypy.tparse(instring, lenout=256)[source]

Parse a time string and return seconds past the J2000 epoch on a formal calendar.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tparse_c.html

Parameters
  • instring (str) – Input time string, UTC.

  • lenout (int) – Available space in output error message string.

Return type

Tuple[float, str]

Returns

Equivalent UTC seconds past J2000, Descriptive error message.

spiceypy.spiceypy.tpictr(sample, lenout=256, lenerr=256)[source]

Given a sample time string, create a time format picture suitable for use by the routine timout.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tpictr_c.html

Parameters
  • sample (str) – A sample time string.

  • lenout (int) – The length for the output picture string.

  • lenerr (int) – The length for the output error string.

Return type

Tuple[str, int, str]

Returns

A format picture that describes sample, Flag indicating whether sample parsed successfully, Diagnostic returned if sample cannot be parsed

spiceypy.spiceypy.trace(matrix)[source]

Return the trace of a 3x3 matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trace_c.html

Parameters

matrix (Union[ndarray, Iterable[Iterable[float]]]) – 3x3 matrix of double precision numbers.

Return type

float

Returns

The trace of matrix.

spiceypy.spiceypy.trcdep()[source]

Return the number of modules in the traceback representation.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trcdep_c.html

Return type

int

Returns

The number of modules in the traceback.

spiceypy.spiceypy.trcnam(index, namlen=256)[source]

Return the name of the module having the specified position in the trace representation. The first module to check in is at index 0.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trcnam_c.html

Parameters
  • index (int) – The position of the requested module name.

  • namlen (int) – Available space in output name string.

Return type

str

Returns

The name at position index in the traceback.

spiceypy.spiceypy.trcoff()[source]

Disable tracing.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trcoff_c.html

Return type

None

spiceypy.spiceypy.trgsep(et, targ1, shape1, frame1, targ2, shape2, frame2, obsrvr, abcorr)[source]

Compute the angular separation in radians between two spherical or point objects.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/trgsep_c.html

Parameters
  • et (float) – Ephemeris seconds past J2000 TDB.

  • targ1 (str) – First target body name.

  • shape1 (str) – First target body shape.

  • frame1 (str) – Reference frame of first target (UNUSED).

  • targ2 (str) – Second target body name.

  • shape2 (str) – First target body shape.

  • frame2 (str) – Reference frame of second target (UNUSED).

  • obsrvr (str) – Observing body name.

  • abcorr (str) – Aberration corrections flag.

Return type

float

Returns

angular separation in radians.

spiceypy.spiceypy.tsetyr(year)[source]

Set the lower bound on the 100 year range.

Default value is 1969

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tsetyr_c.html

Parameters

year (int) – Lower bound on the 100 year interval of expansion

Return type

None

spiceypy.spiceypy.twopi()[source]

Return twice the value of pi (the ratio of the circumference of a circle to its diameter).

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/twopi_c.html

Return type

float

Returns

Twice the value of pi.

spiceypy.spiceypy.twovec(axdef, indexa, plndef, indexp)[source]

Find the transformation to the right-handed frame having a given vector as a specified axis and having a second given vector lying in a specified coordinate plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/twovec_c.html

Parameters
  • axdef (Union[ndarray, Iterable[float]]) – Vector defining a principal axis.

  • indexa (int) – Principal axis number of axdef (X=1, Y=2, Z=3).

  • plndef (Union[ndarray, Iterable[float]]) – Vector defining (with axdef) a principal plane.

  • indexp (int) – Second axis number (with indexa) of principal plane.

Return type

ndarray

Returns

Output rotation matrix.

spiceypy.spiceypy.twovxf(axdef, indexa, plndef, indexp)[source]

Find the state transformation from a base frame to the right-handed frame defined by two state vectors: one state vector defining a specified axis and a second state vector defining a specified coordinate plane.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/twovxf_c.html

Parameters
  • axdef (Union[ndarray, Iterable[float]]) – Vector defining a principal axis.

  • indexa (int) – Principal axis number of axdef (X=1, Y=2, Z=3).

  • plndef (Union[ndarray, Iterable[float]]) – Vector defining (with axdef) a principal plane.

  • indexp (int) – Second axis number (with indexa) of principal plane.

Return type

ndarray

Returns

Output rotation matrix.

spiceypy.spiceypy.txtopn(fname)[source]

Internal undocumented command for opening a new text file for subsequent write access.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ftncls_c.html#Files https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ftncls_c.html#Examples

Parameters

fname (str) – name of the new text file to be opened.

Return type

int

Returns

FORTRAN logical unit of opened file

spiceypy.spiceypy.tyear()[source]

Return the number of seconds in a tropical year.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/tyear_c.html

Return type

float

Returns

The number of seconds in a tropical year.

spiceypy.spiceypy.ucase(inchar, lenout=None)[source]

Convert the characters in a string to uppercase.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ucase_c.html

Parameters
  • inchar (str) – Input string.

  • lenout (Optional[int]) – Optional Maximum length of output string.

Return type

str

Returns

Output string, all uppercase.

spiceypy.spiceypy.ucrss(v1, v2)[source]

Compute the normalized cross product of two 3-vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ucrss_c.html

Parameters
  • v1 (ndarray) – Left vector for cross product.

  • v2 (ndarray) – Right vector for cross product.

Return type

ndarray

Returns

Normalized cross product v1xv2 / abs(v1xv2).

spiceypy.spiceypy.uddc(udfunc, x, dx)[source]

SPICE private routine intended solely for the support of SPICE routines. Users should not call this routine directly due to the volatile nature of this routine.

This routine calculates the derivative of ‘udfunc’ with respect to time for ‘et’, then determines if the derivative has a negative value.

Use the @spiceypy.utils.callbacks.SpiceUDFUNS dectorator to wrap a given python function that takes one parameter (float) and returns a float. For example:

@spiceypy.utils.callbacks.SpiceUDFUNS
def udfunc(et_in):
    pos, new_et = spice.spkpos("MERCURY", et_in, "J2000", "LT+S", "MOON")
    return new_et

is_negative = spice.uddc(udfunc, et, 1.0)

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/uddc_c.html

Parameters
  • udfunc (CFunctionType) – Name of the routine that computes the scalar value of interest.

  • x (float) – Independent variable of ‘udfunc’.

  • dx (float) – Interval from ‘x’ for derivative calculation.

Return type

bool

Returns

Boolean indicating if the derivative is negative.

spiceypy.spiceypy.uddf(udfunc, x, dx)[source]

Routine to calculate the first derivative of a caller-specified function using a three-point estimation.

Use the @spiceypy.utils.callbacks.SpiceUDFUNS dectorator to wrap a given python function that takes one parameter (float) and returns a float. For example:

@spiceypy.utils.callbacks.SpiceUDFUNS
def udfunc(et_in):
    pos, new_et = spice.spkpos("MERCURY", et_in, "J2000", "LT+S", "MOON")
    return new_et

deriv = spice.uddf(udfunc, et, 1.0)

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/uddf_c.html

Parameters
  • udfunc (CFunctionType) – Name of the routine that computes the scalar value of interest.

  • x (float) – Independent variable of ‘udfunc’.

  • dx (float) – Interval from ‘x’ for derivative calculation.

Return type

float

Returns

Approximate derivative of ‘udfunc’ at ‘x’

spiceypy.spiceypy.udf(x)[source]

No-op routine for with an argument signature matching udfuns. Allways returns 0.0 .

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/udf_c.html

Parameters

x (float) – Double precision value, unused.

Return type

float

Returns

Double precision value, unused.

spiceypy.spiceypy.union(a, b)[source]

Compute the union of two sets of any data type to form a third set.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/union_c.html

Parameters
Return type

SpiceCell

Returns

Union of a and b.

spiceypy.spiceypy.unitim(epoch, insys, outsys)[source]

Transform time from one uniform scale to another. The uniform time scales are TAI, TDT, TDB, ET, JED, JDTDB, JDTDT.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/unitim_c.html

Parameters
  • epoch (float) – An epoch to be converted.

  • insys (str) – The time scale associated with the input epoch.

  • outsys (str) – The time scale associated with the function value.

Return type

float

Returns

The float in outsys that is equivalent to the epoch on the insys time scale.

spiceypy.spiceypy.unload(filename)[source]

Unload a SPICE kernel.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/unload_c.html

Parameters

filename (Union[str, Iterable[str]]) – The name of a kernel to unload.

Return type

None

spiceypy.spiceypy.unorm(v1)[source]

Normalize a double precision 3-vector and return its magnitude.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/unorm_c.html

Parameters

v1 (ndarray) – Vector to be normalized.

Return type

Tuple[ndarray, float]

Returns

Unit vector of v1, Magnitude of v1.

spiceypy.spiceypy.unormg(v1)[source]

Normalize a double precision vector of arbitrary dimension and return its magnitude.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/unormg_c.html

Parameters

v1 (ndarray) – Vector to be normalized.

Return type

Tuple[ndarray, float]

Returns

Unit vector of v1, Magnitude of v1.

spiceypy.spiceypy.utc2et(utcstr)[source]

Convert an input time from Calendar or Julian Date format, UTC, to ephemeris seconds past J2000.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/utc2et_c.html

Parameters

utcstr (str) – Input time string, UTC.

Return type

float

Returns

Output epoch, ephemeris seconds past J2000.

spiceypy.spiceypy.vadd(v1, v2)[source]

Add two 3 dimensional vectors. https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vadd_c.html

Parameters
  • v1 (Union[ndarray, Iterable[float]]) – First vector to be added.

  • v2 (Union[ndarray, Iterable[float]]) – Second vector to be added.

Return type

ndarray

Returns

v1+v2

spiceypy.spiceypy.vaddg(v1, v2)[source]

Add two n-dimensional vectors https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vaddg_c.html

Parameters
  • v1 (Union[ndarray, Iterable[float]]) – First vector to be added.

  • v2 (Union[ndarray, Iterable[float]]) – Second vector to be added.

Return type

ndarray

Returns

v1+v2

spiceypy.spiceypy.valid(insize, n, inset)[source]

Create a valid CSPICE set from a CSPICE Cell of any data type.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/valid_c.html

Parameters
  • insize (int) – Size (maximum cardinality) of the set.

  • n (int) – Initial no. of (possibly non-distinct) elements.

  • inset (SpiceCell) – Set to be validated.

Return type

SpiceCell

Returns

validated set

spiceypy.spiceypy.vcrss(v1, v2)[source]

Compute the cross product of two 3-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vcrss_c.html

Parameters
  • v1 (ndarray) – Left hand vector for cross product.

  • v2 (ndarray) – Right hand vector for cross product.

Return type

ndarray

Returns

Cross product v1 x v2.

spiceypy.spiceypy.vdist(v1, v2)[source]

Return the distance between two three-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vdist_c.html

Parameters
  • v1 (ndarray) – First vector in the dot product.

  • v2 (ndarray) – Second vector in the dot product.

Return type

float

Returns

the distance between v1 and v2

spiceypy.spiceypy.vdistg(v1, v2)[source]

Return the distance between two vectors of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vdistg_c.html

Parameters
  • v1 (ndarray) – ndim-dimensional double precision vector.

  • v2 (ndarray) – ndim-dimensional double precision vector.

Return type

float

Returns

the distance between v1 and v2

spiceypy.spiceypy.vdot(v1, v2)[source]

Compute the dot product of two double precision, 3-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vdot_c.html

Parameters
  • v1 (ndarray) – First vector in the dot product.

  • v2 (ndarray) – Second vector in the dot product.

Return type

float

Returns

dot product of v1 and v2.

spiceypy.spiceypy.vdotg(v1, v2)[source]

Compute the dot product of two double precision vectors of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vdotg_c.html

Parameters
  • v1 (ndarray) – First vector in the dot product.

  • v2 (ndarray) – Second vector in the dot product.

Return type

float

Returns

dot product of v1 and v2.

spiceypy.spiceypy.vequ(v1)[source]

Make one double precision 3-dimensional vector equal to another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vequ_c.html

Parameters

v1 (ndarray) – 3-dimensional double precision vector.

Return type

ndarray

Returns

3-dimensional double precision vector set equal to vin.

spiceypy.spiceypy.vequg(v1)[source]

Make one double precision vector of arbitrary dimension equal to another.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vequg_c.html

Parameters
  • v1 (ndarray) – ndim-dimensional double precision vector.

  • ndim – Dimension of vin (and also vout).

Return type

ndarray

Returns

ndim-dimensional double precision vector set equal to vin.

spiceypy.spiceypy.vhat(v1)[source]

Find the unit vector along a double precision 3-dimensional vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vhat_c.html

Parameters

v1 (ndarray) – Vector to be unitized.

Return type

ndarray

Returns

Unit vector v / abs(v).

spiceypy.spiceypy.vhatg(v1)[source]

Find the unit vector along a double precision vector of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vhatg_c.html

Parameters

v1 (ndarray) – Vector to be normalized.

Return type

ndarray

Returns

Unit vector v / abs(v).

spiceypy.spiceypy.vlcom(a, v1, b, v2)[source]

Compute a vector linear combination of two double precision, 3-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vlcom_c.html

Parameters
  • a (float) – Coefficient of v1

  • v1 (Union[ndarray, Iterable[float]]) – Vector in 3-space

  • b (float) – Coefficient of v2

  • v2 (Union[ndarray, Iterable[float]]) – Vector in 3-space

Return type

ndarray

Returns

Linear Vector Combination a*v1 + b*v2.

spiceypy.spiceypy.vlcom3(a, v1, b, v2, c, v3)[source]

This subroutine computes the vector linear combination a*v1 + b*v2 + c*v3 of double precision, 3-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vlcom3_c.html

Parameters
  • a (float) – Coefficient of v1

  • v1 (Union[ndarray, Iterable[float]]) – Vector in 3-space

  • b (float) – Coefficient of v2

  • v2 (Union[ndarray, Iterable[float]]) – Vector in 3-space

  • c (float) – Coefficient of v3

  • v3 (Union[ndarray, Iterable[float]]) – Vector in 3-space

Return type

ndarray

Returns

Linear Vector Combination a*v1 + b*v2 + c*v3

spiceypy.spiceypy.vlcomg(n, a, v1, b, v2)[source]

Compute a vector linear combination of two double precision vectors of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vlcomg_c.html

Parameters
  • n (int) – Dimension of vector space

  • a (float) – Coefficient of v1

  • v1 (Union[ndarray, Iterable[float]]) – Vector in n-space

  • b (float) – Coefficient of v2

  • v2 (Union[ndarray, Iterable[float]]) – Vector in n-space

Return type

ndarray

Returns

Linear Vector Combination a*v1 + b*v2

spiceypy.spiceypy.vminug(vin)[source]

Negate a double precision vector of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vminug_c.html

Parameters

vin (ndarray) – ndim-dimensional double precision vector to be negated.

Return type

ndarray

Returns

ndim-dimensional double precision vector equal to -vin.

spiceypy.spiceypy.vminus(vin)[source]

Negate a double precision 3-dimensional vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vminus_c.html

Parameters

vin (ndarray) – Vector to be negated.

Return type

ndarray

Returns

Negated vector -v1.

spiceypy.spiceypy.vnorm(v)[source]

Compute the magnitude of a double precision, 3-dimensional vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vnorm_c.html

Parameters

v (ndarray) – Vector whose magnitude is to be found.

Return type

float

Returns

magnitude of v calculated in a numerically stable way

spiceypy.spiceypy.vnormg(v)[source]

Compute the magnitude of a double precision vector of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vnormg_c.html

Parameters

v (ndarray) – Vector whose magnitude is to be found.

Return type

float

Returns

magnitude of v calculated in a numerically stable way

spiceypy.spiceypy.vpack(x, y, z)[source]

Pack three scalar components into a vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vpack_c.html

Parameters
  • x (float) – first scalar component

  • y (float) – second scalar component

  • z (float) – third scalar component

Return type

ndarray

Returns

Equivalent 3-vector.

spiceypy.spiceypy.vperp(a, b)[source]

Find the component of a vector that is perpendicular to a second vector. All vectors are 3-dimensional.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vperp_c.html

Parameters
  • a (ndarray) – The vector whose orthogonal component is sought.

  • b (ndarray) – The vector used as the orthogonal reference.

Return type

ndarray

Returns

The component of a orthogonal to b.

spiceypy.spiceypy.vprjp(vin, plane)[source]

Project a vector onto a specified plane, orthogonally.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vprjp_c.html

Parameters
  • vin (Union[ndarray, Iterable[float]]) – The projected vector.

  • plane (Plane) – Plane containing vin.

Return type

ndarray

Returns

Vector resulting from projection.

spiceypy.spiceypy.vprjpi(vin, projpl, invpl)[source]

Find the vector in a specified plane that maps to a specified vector in another plane under orthogonal projection.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vprjpi_c.html

Parameters
  • vin (Union[ndarray, Iterable[float]]) – The projected vector.

  • projpl (Plane) – Plane containing vin.

  • invpl (Plane) – Plane containing inverse image of vin.

Return type

Tuple[ndarray, bool]

Returns

Inverse projection of vin.

spiceypy.spiceypy.vproj(a, b)[source]

Find the projection of one vector onto another vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vproj_c.html

Parameters
  • a (ndarray) – The vector to be projected.

  • b (ndarray) – The vector onto which a is to be projected.

Return type

ndarray

Returns

The projection of a onto b.

spiceypy.spiceypy.vprojg(a, b)[source]

Find the projection of one vector onto another vector. All vectors are of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vprojg_c.html

Parameters
  • a (ndarray) – The vector to be projected.

  • b (ndarray) – The vector onto which a is to be projected.

Return type

ndarray

Returns

The projection of a onto b.

spiceypy.spiceypy.vrel(v1, v2)[source]

Return the relative difference between two 3-dimensional vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vrel_c.html

Parameters
  • v1 (Union[ndarray, Iterable[float]]) – First vector

  • v2 (Union[ndarray, Iterable[float]]) – Second vector

Return type

float

Returns

the relative difference between v1 and v2.

spiceypy.spiceypy.vrelg(v1, v2)[source]

Return the relative difference between two vectors of general dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vrelg_c.html

Parameters
  • v1 (Union[ndarray, Iterable[float]]) – First vector

  • v2 (Union[ndarray, Iterable[float]]) – Second vector

Return type

float

Returns

the relative difference between v1 and v2.

spiceypy.spiceypy.vrotv(v, axis, theta)[source]

Rotate a vector about a specified axis vector by a specified angle and return the rotated vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vrotv_c.html

Parameters
  • v (ndarray) – Vector to be rotated.

  • axis (ndarray) – Axis of the rotation.

  • theta (float) – Angle of rotation (radians).

Return type

ndarray

Returns

Result of rotating v about axis by theta

spiceypy.spiceypy.vscl(s, v1)[source]

Multiply a scalar and a 3-dimensional double precision vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vscl_c.html

Parameters
  • s (float) – Scalar to multiply a vector

  • v1 (ndarray) – Vector to be multiplied

Return type

ndarray

Returns

Product vector, s*v1.

spiceypy.spiceypy.vsclg(s, v1)[source]

Multiply a scalar and a double precision vector of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsclg_c.html

Parameters
  • s (float) – Scalar to multiply a vector

  • v1 (ndarray) – Vector to be multiplied

Return type

ndarray

Returns

Product vector, s*v1.

spiceypy.spiceypy.vsep(v1, v2)[source]

Find the separation angle in radians between two double precision, 3-dimensional vectors. This angle is defined as zero if either vector is zero.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsep_c.html

Parameters
  • v1 (ndarray) – First vector

  • v2 (ndarray) – Second vector

Return type

float

Returns

separation angle in radians

spiceypy.spiceypy.vsepg(v1, v2)[source]

Find the separation angle in radians between two double precision vectors of arbitrary dimension. This angle is defined as zero if either vector is zero.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsepg_c.html

Parameters
  • v1 (ndarray) – First vector

  • v2 (ndarray) – Second vector

Return type

float

Returns

separation angle in radians

spiceypy.spiceypy.vsub(v1, v2)[source]

Compute the difference between two 3-dimensional, double precision vectors.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsub_c.html

Parameters
  • v1 (ndarray) – First vector (minuend).

  • v2 (ndarray) – Second vector (subtrahend).

Return type

ndarray

Returns

Difference vector, v1 - v2.

spiceypy.spiceypy.vsubg(v1, v2)[source]

Compute the difference between two double precision vectors of arbitrary dimension.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vsubg_c.html

Parameters
  • v1 (ndarray) – First vector (minuend).

  • v2 (ndarray) – Second vector (subtrahend).

Return type

ndarray

Returns

Difference vector, v1 - v2.

spiceypy.spiceypy.vtmv(v1, matrix, v2)[source]

Multiply the transpose of a 3-dimensional column vector a 3x3 matrix, and a 3-dimensional column vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vtmv_c.html

Parameters
  • v1 (ndarray) – 3 dimensional double precision column vector.

  • matrix (ndarray) – 3x3 double precision matrix.

  • v2 (ndarray) – 3 dimensional double precision column vector.

Return type

float

Returns

the result of (v1**t * matrix * v2 ).

spiceypy.spiceypy.vtmvg(v1, matrix, v2)[source]

Multiply the transpose of a n-dimensional column vector a nxm matrix, and a m-dimensional column vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vtmvg_c.html

Parameters
  • v1 (ndarray) – n-dimensional double precision column vector.

  • matrix (ndarray) – nxm double precision matrix.

  • v2 (ndarray) – m-dimensional double porecision column vector.

Return type

float

Returns

the result of (v1**t * matrix * v2 )

spiceypy.spiceypy.vupack(v)[source]

Unpack three scalar components from a vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vupack_c.html

Parameters

v (ndarray) – Vector

Return type

Tuple[float, float, float]

Returns

(x, y, z)

spiceypy.spiceypy.vzero(v)[source]

Indicate whether a 3-vector is the zero vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vzero_c.html

Parameters

v (ndarray) – Vector to be tested

Return type

bool

Returns

true if and only if v is the zero vector

spiceypy.spiceypy.vzerog(v)[source]

Indicate whether a general-dimensional vector is the zero vector.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vzerog_c.html

Parameters

v (ndarray) – Vector to be tested

Return type

bool

Returns

true if and only if v is the zero vector

spiceypy.spiceypy.warn_deprecated_args(**kwargs)[source]
Return type

None

spiceypy.spiceypy.wncard(window)[source]

Return the cardinality (number of intervals) of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wncard_c.html

Parameters

window (SpiceCell) – Input window

Return type

int

Returns

the cardinality of the input window.

spiceypy.spiceypy.wncomd(left, right, window)[source]

Determine the complement of a double precision window with respect to a specified interval.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wncomd_c.html

Parameters
  • left (float) – left endpoints of complement interval.

  • right (float) – right endpoints of complement interval.

  • window (SpiceCell) – Input window

Return type

SpiceCell

Returns

Complement of window with respect to left and right.

spiceypy.spiceypy.wncond(left, right, window)[source]

Contract each of the intervals of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wncond_c.html

Parameters
  • left (float) – Amount added to each left endpoint.

  • right (float) – Amount subtracted from each right endpoint.

  • window (SpiceCell) – Window to be contracted

Return type

SpiceCell

Returns

Contracted Window.

spiceypy.spiceypy.wndifd(a, b)[source]

Place the difference of two double precision windows into a third window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wndifd_c.html

Parameters
Return type

SpiceCell

Returns

Difference of a and b.

spiceypy.spiceypy.wnelmd(point, window)[source]

Determine whether a point is an element of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnelmd_c.html

Parameters
  • point (float) – Input point.

  • window (SpiceCell) – Input window

Return type

bool

Returns

returns True if point is an element of window.

spiceypy.spiceypy.wnexpd(left, right, window)[source]

Expand each of the intervals of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnexpd_c.html

Parameters
  • left (float) – Amount subtracted from each left endpoint.

  • right (float) – Amount added to each right endpoint.

  • window (SpiceCell) – Window to be expanded.

Return type

SpiceCell

Returns

Expanded Window.

spiceypy.spiceypy.wnextd(side, window)[source]

Extract the left or right endpoints from a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnextd_c.html

Parameters
  • side (str) – Extract left “L” or right “R” endpoints.

  • window (SpiceCell) – Window to be extracted.

Return type

SpiceCell

Returns

Extracted Window.

spiceypy.spiceypy.wnfetd(window, n)[source]

Fetch a particular interval from a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnfetd_c.html

Parameters
  • window (SpiceCell) – Input window

  • n (int) – Index of interval to be fetched.

Return type

Tuple[float, float]

Returns

Left, right endpoints of the nth interval.

spiceypy.spiceypy.wnfild(small, window)[source]

Fill small gaps between adjacent intervals of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnfild_c.html

Parameters
  • small (float) – Limiting measure of small gaps.

  • window (SpiceCell) – Window to be filled

Return type

SpiceCell

Returns

Filled Window.

spiceypy.spiceypy.wnfltd(small, window)[source]

Filter (remove) small intervals from a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnfltd_c.html

Parameters
  • small (float) – Limiting measure of small intervals.

  • window (SpiceCell) – Window to be filtered.

Return type

SpiceCell

Returns

Filtered Window.

spiceypy.spiceypy.wnincd(left, right, window)[source]

Determine whether an interval is included in a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnincd_c.html

Parameters
  • left (float) – Left interval

  • right (float) – Right interval

  • window (SpiceCell) – Input window

Return type

bool

Returns

Returns True if the input interval is included in window.

spiceypy.spiceypy.wninsd(left, right, window)[source]

Insert an interval into a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wninsd_c.html

Parameters
  • left (float) – Left endpoints of new interval.

  • right (float) – Right endpoints of new interval.

  • window (SpiceCell) – Input window.

Return type

None

spiceypy.spiceypy.wnintd(a, b)[source]

Place the intersection of two double precision windows into a third window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnintd_c.html

Parameters
Return type

SpiceCell

Returns

Intersection of a and b.

spiceypy.spiceypy.wnreld(a, op, b)[source]

Compare two double precision windows.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnreld_c.html

Parameters
  • a (SpiceCell) – First window.

  • op (str) – Comparison operator.

  • b (SpiceCell) – Second window.

Return type

bool

Returns

The result of comparison: a (op) b.

spiceypy.spiceypy.wnsumd(window)[source]

Summarize the contents of a double precision window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnsumd_c.html

Parameters

window (SpiceCell) – Window to be summarized.

Return type

Tuple[float, float, float, int, int]

Returns

Total measure of intervals in window, Average measure, Standard deviation, Location of shortest interval, Location of longest interval.

spiceypy.spiceypy.wnunid(a, b)[source]

Place the union of two double precision windows into a third window.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnunid_c.html

Parameters
Return type

SpiceCell

Returns

Union of a and b.

spiceypy.spiceypy.wnvald(insize, n, window)[source]

Form a valid double precision window from the contents of a window array.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/wnvald_c.html

Parameters
  • insize (int) – Size of window.

  • n (int) – Original number of endpoints.

  • window (SpiceCell) – Input window.

Return type

SpiceCell

Returns

The union of the intervals in the input cell.

spiceypy.spiceypy.writln(line, unit)[source]

Internal undocumented command for writing a text line to a logical unit

No URL available; relevant lines from SPICE source:

FORTRAN SPICE, writln.f:

C$Procedure      WRITLN ( Write a text line to a logical unit )
      SUBROUTINE WRITLN ( LINE, UNIT )
      CHARACTER*(*)      LINE
      INTEGER            UNIT

C     Variable  I/O  Description
C     --------  ---  --------------------------------------------------
C     LINE       I   The line which is to be written to UNIT.
C     UNIT       I   The Fortran unit number to use for output.

CSPICE, writln.c:

/* $Procedure      WRITLN ( Write a text line to a logical unit ) */
/* Subroutine */ int writln_(char *line, integer *unit, ftnlen line_len)
Parameters
  • line (str) – The line which is to be written to UNIT.

  • unit (int) – The Fortran unit number to use for output.

Return type

None

spiceypy.spiceypy.xf2eul(xform, axisa, axisb, axisc)[source]

Convert a state transformation matrix to Euler angles and their derivatives with respect to a specified set of axes.

The companion routine eul2xf() converts Euler angles and their derivatives with respect to a specified set of axes to a state transformation matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xf2eul_c.html

Parameters
  • xform (ndarray) – state transformation matrix

  • axisa (int) – Axis A of the Euler angle factorization.

  • axisb (int) – Axis B of the Euler angle factorization.

  • axisc (int) – Axis C of the Euler angle factorization.

Return type

Tuple[ndarray, int]

Returns

(eulang, unique)

spiceypy.spiceypy.xf2rav(xform)[source]

This routine determines the rotation matrix and angular velocity of the rotation from a state transformation matrix.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xf2rav_c.html

Parameters

xform (ndarray) – state transformation matrix

Return type

Tuple[ndarray, ndarray]

Returns

rotation associated with xform, angular velocity associated with xform.

spiceypy.spiceypy.xfmsta(input_state, input_coord_sys, output_coord_sys, body)[source]

Transform a state between coordinate systems.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xfmsta_c.html

Parameters
  • input_state (ndarray) – Input state.

  • input_coord_sys (str) – Current (input) coordinate system.

  • output_coord_sys (str) – Desired (output) coordinate system.

  • body (str) – Name or NAIF ID of body with which coordinates are associated (if applicable).

Return type

ndarray

Returns

Converted output state

spiceypy.spiceypy.xpose(m)[source]

Transpose a 3x3 matrix

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xpose_c.html

Parameters

m (Union[ndarray, Iterable[Iterable[float]]]) – Matrix to be transposed

Return type

ndarray

Returns

Transposed matrix

spiceypy.spiceypy.xpose6(m)[source]

Transpose a 6x6 matrix

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xpose6_c.html

Parameters

m (Union[ndarray, Iterable[Iterable[float]]]) – Matrix to be transposed

Return type

ndarray

Returns

Transposed matrix

spiceypy.spiceypy.xposeg(matrix)[source]

Transpose a matrix of arbitrary size in place, the matrix need not be square.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/xposeg_c.html

Parameters

matrix (Union[ndarray, Iterable[Iterable[float]]]) – Matrix to be transposed

Return type

ndarray

Returns

Transposed matrix

spiceypy.spiceypy.zzdynrot(typid, center, et)[source]

Find the rotation from a dynamic frame ID to the associated frame at the time requested

Parameters
  • typid (int) – ID code for the dynamic frame

  • center (int) – the ID for the center of the frame

  • et (float) – Epoch measured in seconds past J2000

Return type

Tuple[ndarray, int]

Returns

Rotation matrix from the input frame to the returned associated frame, id for the associated frame

spiceypy.utils.support_types module

The MIT License (MIT)

Copyright (c) [2015-2022] [Andrew Annex]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The MIT License (MIT)

Copyright (c) 2013 Philipp Rasch

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

class spiceypy.utils.support_types.Cell_Bool(size)[source]

Bases: SpiceCell

class spiceypy.utils.support_types.Cell_Char(size, length)[source]

Bases: SpiceCell

class spiceypy.utils.support_types.Cell_Double(size)[source]

Bases: SpiceCell

class spiceypy.utils.support_types.Cell_Int(size)[source]

Bases: SpiceCell

class spiceypy.utils.support_types.Cell_Time(size)[source]

Bases: SpiceCell

class spiceypy.utils.support_types.DataType[source]

Bases: object

BOOL = 4
CHR = 0
DP = 1
INT = 2
SPICE_BOOL = 4
SPICE_CHR = 0
SPICE_DP = 1
SPICE_INT = 2
SPICE_TIME = 3
TIME = 3
class spiceypy.utils.support_types.DoubleArrayType[source]

Bases: object

Class type that will handle all double vectors, inspiration from python cookbook 3rd edition

from_list(param)[source]
from_ndarray(param)[source]
from_param(param)[source]
class spiceypy.utils.support_types.DoubleMatrixType[source]

Bases: object

Class type that will handle all 2d double arrays, inspiration from python cookbook 3rd edition

from_list(param)[source]
from_ndarray(param)[source]
from_param(param)[source]
class spiceypy.utils.support_types.Ellipse[source]

Bases: Structure

property center
property semi_major
property semi_minor
class spiceypy.utils.support_types.IntArrayType[source]

Bases: object

Class type that will handle all int vectors, inspiration from python cookbook 3rd edition

from_list(param)[source]
from_ndarray(param)[source]
from_param(param)[source]
class spiceypy.utils.support_types.IntMatrixType[source]

Bases: object

Class type that will handle all 2d int arrays, inspiration from python cookbook 3rd edition

from_list(param)[source]
from_ndarray(param)[source]
from_param(param)[source]
class spiceypy.utils.support_types.Plane[source]

Bases: Structure

property constant
property normal
spiceypy.utils.support_types.SPICEBOOL_CELL(size)[source]

Returns a Bool Spice Cell with a given size :type size: int :param size: number of elements :rtype: SpiceCell :return: empty Spice Cell

spiceypy.utils.support_types.SPICECHAR_CELL(size, length)[source]

Returns a Char Spice Cell with a given size :type size: int :param size: number of elements :type length: int :param length: width of elements :rtype: SpiceCell :return: empty Spice Cell

spiceypy.utils.support_types.SPICEDOUBLE_CELL(size)[source]

Returns a Double Spice Cell with a given size :type size: int :param size: number of elements :rtype: SpiceCell :return: empty Spice Cell

spiceypy.utils.support_types.SPICEINT_CELL(size)[source]

Returns a Int Spice Cell with a given size :type size: int :param size: number of elements :rtype: SpiceCell :return: empty Spice Cell

spiceypy.utils.support_types.SPICETIME_CELL(size)[source]

Returns a Time Spice Cell with a given size :type size: int :param size: number of elements :return: empty Spice Cell

class spiceypy.utils.support_types.SpiceCell(dtype=None, length=None, size=None, card=None, isSet=None, base=None, data=None)[source]

Bases: Structure

CTRLBLOCK = 6
DATATYPES_ENUM = {'bool': 4, 'char': 0, 'double': 1, 'int': 2, 'time': 3}
DATATYPES_GET = [<function _char_getter>, <function _double_getter>, <function _int_getter>, <function _int_getter>, <function _int_getter>]
adjust

Structure/Union member

base

Structure/Union member

baseSize = 6
classmethod bool(size)[source]
card

Structure/Union member

classmethod character(size, length)[source]
data

Structure/Union member

classmethod double(size)[source]
dtype

Structure/Union member

init

Structure/Union member

classmethod integer(size)[source]
isSet

Structure/Union member

is_bool()[source]
is_char()[source]
is_double()[source]
is_int()[source]
is_set()[source]
is_time()[source]
length

Structure/Union member

minCharLen = 6
reset()[source]
size

Structure/Union member

classmethod time(size)[source]
spiceypy.utils.support_types.SpiceCellPointer

alias of LP_SpiceCell

class spiceypy.utils.support_types.SpiceDLADescr[source]

Bases: Structure

property bwdptr
property cbase
property csize
property dbase
property dsize
property fwdptr
property ibase
property isize
class spiceypy.utils.support_types.SpiceDSKDescr[source]

Bases: Structure

property center
property co1max
property co1min
property co2max
property co2min
property co3max
property co3min
property corpar
property corsys
property dclass
property dtype
property frmcde
property start
property stop
property surfce
class spiceypy.utils.support_types.SpiceEKAttDsc[source]

Bases: Structure

property cclass
property dtype
property indexd
property nullok
property size
property strlen
class spiceypy.utils.support_types.SpiceEKDataType[source]

Bases: c_int

SPICE_BOOL = 4
SPICE_CHR = 0
SPICE_DP = 1
SPICE_INT = 2
SPICE_TIME = 3
class spiceypy.utils.support_types.SpiceEKExprClass[source]

Bases: c_int

SPICE_EK_EXP_COL = 0
SPICE_EK_EXP_EXPR = 2
SPICE_EK_EXP_FUNC = 1
class spiceypy.utils.support_types.SpiceEKSegSum[source]

Bases: Structure

property cdescrs
property cnames
property ncols
property nrows
property tabnam
class spiceypy.utils.support_types.SpiceSPK18Subtype[source]

Bases: c_int

S18TP0 = 0
S18TP1 = 1
spiceypy.utils.support_types.c_int_vector_to_bool_python(x)[source]
spiceypy.utils.support_types.c_matrix_to_numpy(x)[source]

Convert a ctypes 2d array (or matrix) into a numpy array for python use

Parameters

x – thing to convert

Returns

numpy.ndarray

spiceypy.utils.support_types.c_vector_to_python(x)[source]

Convert the c vector data into the correct python data type (numpy arrays or strings)

Parameters

x – ctypes array

Returns

Iterable

spiceypy.utils.support_types.dynamically_instantiate_spiceyerror(short='', explain='', long='', traceback='', found='')[source]

Dynamically creates a SpiceyPyException which is a subclass of SpiceyError and may also be subclassed to other exceptions such as IOError and such depending on the Short description

Parameters
  • short (str) –

  • explain (str) –

  • long (str) –

  • traceback (str) –

  • found (str) –

Returns

spiceypy.utils.support_types.empty_char_array(x_len=None, y_len=None)[source]
spiceypy.utils.support_types.empty_double_matrix(x=3, y=3)[source]
spiceypy.utils.support_types.empty_double_vector(n)[source]
spiceypy.utils.support_types.empty_int_matrix(x=3, y=3)[source]
spiceypy.utils.support_types.empty_int_vector(n)[source]
spiceypy.utils.support_types.empty_spice_ek_data_type_vector(n)[source]
spiceypy.utils.support_types.empty_spice_ek_expr_class_vector(n)[source]
spiceypy.utils.support_types.is_iterable(i)[source]

From stackoverflow https://stackoverflow.com/questions/1055360/how-to-tell-a-variable-is-iterable-but-not-a-string/44328500#44328500 :param i: input collection :rtype: bool :return: if the input is iterable but not a string

spiceypy.utils.support_types.list_to_char_array(arg, x_len=None, y_len=None)[source]
spiceypy.utils.support_types.list_to_char_array_ptr(input, x_len=None, y_len=None)[source]
spiceypy.utils.support_types.short_to_spiceypy_exception_class(short)[source]

Lookup the correct Spice Exception class

Parameters

short (str) – Spice error system short description key

Return type

Type[SpiceyError]

Returns

SpiceyError

spiceypy.utils.support_types.string_to_char_p(inobject, inlen=None)[source]

convert a python string to a char_p

Parameters
  • inobject – input string, int for getting null string of length of int

  • inlen – optional parameter, length of a given string can be specified

Returns

spiceypy.utils.support_types.to_double_matrix(x)[source]
spiceypy.utils.support_types.to_double_vector(x)[source]
spiceypy.utils.support_types.to_int_matrix(x)[source]
spiceypy.utils.support_types.to_int_vector(x)[source]
spiceypy.utils.support_types.to_python_string(in_string)[source]

spiceypy.utils.callbacks module

The MIT License (MIT)

Copyright (c) [2015-2022] [Andrew Annex]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

spiceypy.utils.callbacks.CallUDFUNS(f, x)[source]

We are given a UDF CFUNCTYPE and want to call it in python

Parameters
  • f (CFunctionType) – SpiceUDFUNS

  • x (float) – some scalar

Return type

float

Returns

value

spiceypy.utils.callbacks.SpiceUDBAIL(f)[source]

Decorator for wrapping python functions in spice udbail callback type

Parameters

f (Callable[[], Union[bool, int]]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udbail function

spiceypy.utils.callbacks.SpiceUDFUNB(f)[source]

Decorator for wrapping python functions in spice udfunb callback type

Parameters

f (Callable[[CFunctionType, float], int]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udfunb function

spiceypy.utils.callbacks.SpiceUDFUNC(f)[source]

Decorator for wrapping python functions in spice udfunc callback type

Parameters

f (Callable[[float], float]) – function that has one argument of type float, and returns a float

Return type

CFunctionType

Returns

wrapped udfunc function

spiceypy.utils.callbacks.SpiceUDFUNS(f)[source]

Decorator for wrapping python functions in spice udfuns callback type

Parameters

f (Callable[[float], float]) – function that has one argument of type float, and returns a float

Return type

CFunctionType

Returns

wrapped udfunc function

spiceypy.utils.callbacks.SpiceUDREFN(f)[source]

Decorator for wrapping python functions in spice udrefn callback type

Parameters

f (Callable[[float, float, Union[bool, int], Union[bool, int]], float]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udrefn function

spiceypy.utils.callbacks.SpiceUDREPF(f)[source]

Decorator for wrapping python functions in spice udrepf callback type

Parameters

f (Callable) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udrepf function

spiceypy.utils.callbacks.SpiceUDREPI(f)[source]

Decorator for wrapping python functions in spice udfrepi callback type

Parameters

f (Callable[[Union[SpiceCell, LP_SpiceCell], str, str], None]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udrepi function

spiceypy.utils.callbacks.SpiceUDREPU(f)[source]

Decorator for wrapping python functions in spice udrepu callback type

Parameters

f (Callable[[float, float, float], None]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udrepu function

spiceypy.utils.callbacks.SpiceUDSTEP(f)[source]

Decorator for wrapping python functions in spice udstep callback type

Parameters

f (Callable[[float], float]) – function to be wrapped

Return type

CFunctionType

Returns

wrapped udstep function

spiceypy.utils.exceptions module

The MIT License (MIT)

Copyright (c) [2015-2022] [Andrew Annex]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

exception spiceypy.utils.exceptions.NotFoundError(message=None, found=False)[source]

Bases: SpiceyPyError

A NotFound Error from Spice

exception spiceypy.utils.exceptions.SpiceADDRESSOUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceAGENTLISTOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceALLGONE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceAMBIGTEMPL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceARRAYSHAPEMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceARRAYSIZEMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceARRAYTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceAVALOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceAXISUNDERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADACTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADADDRESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADANGLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADANGLEUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADANGRATEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADANGULARRATE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADANGULARRATEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADARCHITECTURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADARCHTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADARRAYSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceBADATTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADATTRIBUTE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADATTRIBUTES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADAUVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADAVFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADAVFRAMEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADAXIS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADAXISLENGTH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADAXISNUMBERS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADBLOCKSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADBODYID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADBORESIGHTSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADBOUNDARY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADCATALOGFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCENTERNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCHECKFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCKTYPESPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOARSEVOXSCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADCOLUMDECL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOLUMNCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOLUMNDECL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOMMENTAREA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADCOMPNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOORDBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOORDSYS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADCOORDSYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADCURVETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDAFTRANSFERFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDASCOMMENTAREA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADDASDIRECTORY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDASFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDASTRANSFERFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDATALINE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDATAORDERTOKEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDATATYPEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDEFAULTVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADDESCRTIMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADDIMENSIONS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDIRECTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADDOUBLEPRECISION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADDOWNSAMPLINGTOL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADECCENTRICITY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADENDPOINTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADEULERANGLEUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFILEFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFILETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADFINEVOXELSCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADFORMATSPECIFIER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFORMATSTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADFRAMECLASS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADFRAMESPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFROMTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFROMTIMESYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADFROMTIMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADGEFVERSION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADGEOMETRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADGM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADHARDSPACE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADHERMITDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADINITSTATE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceBADINPUTDATALINE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINPUTETTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINPUTTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINPUTUTCTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINSTRUMENTID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADINTEGER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADKERNELTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLAGRANGEDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLATITUDEBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLATITUDERANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLATUSRECTUM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADLEAPSECONDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLIMBLOCUSMIX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADLINEPERRECCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLISTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADLONGITUDERANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMATRIX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMEANMOTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMECCENTRICITY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMETHODSYNTAX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMIDNIGHTTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMSEMIMAJOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADMSOPQUATERNION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADNOFDIGITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADNOFSTATES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADNUMBEROFPOINTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOBJECTID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOBJECTNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOFFSETANGLES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOFFSETANGUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOFFSETAXESFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOFFSETAXISXYZ(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOPTIONNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADORBITALPERIOD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOUTPUTSPKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADOUTPUTTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPARTNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADPCKVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPECCENTRICITY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPERIAPSEVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADPICTURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPLATECOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADPODLOCATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPRECVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADPRIORITYSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADQUATSIGN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADQUATTHRESHOLD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADRADIUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADRADIUSCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADRATEFRAMEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADRATETHRESHOLD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADRECORDCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADREFVECTORSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADROTATIONAXISXYZ(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADROTATIONSORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADROTATIONTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADROTAXESFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADROWCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSCID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSEMIAXIS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADSEMILATUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSHAPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSOLDAY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSOLINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSOLTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSOURCERADIUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSPICEQUATERNION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSTARINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSTARTTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSTDIONAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSTOPTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADSUBSCRIPT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSUBSTR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSUBSTRINGBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADSURFACEMAP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTABLEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTERMLOCUSMIX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMECASE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMECOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMEFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMEITEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADTIMEOFFSET(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMESPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTIMESTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADTIMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADTIMETYPEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTLECOVERAGEPAD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTLEPADS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTOTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTOTIMESYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTOTIMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADTYPESHAPECOMBO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADVARASSIGN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBADVARIABLESIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADVARIABLETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceBADVARNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBADVECTOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADVERTEXCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBADVERTEXINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIndexError

exception spiceypy.utils.exceptions.SpiceBADWINDOWSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBARRAYTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBARYCENTEREPHEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBARYCENTERIDCODE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBEFOREBEGSTR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKCOMMANDLINE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceBLANKFILETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKINPUTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKINPUTTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKMODULENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBLANKNAMEASSIGNED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKOUTPTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKSCLKSTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLANKTIMEFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBLOCKSNOTEVEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBODIESNOTDISTINCT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBODYANDCENTERSAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBODYIDNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceBODYNAMENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceBOGUSENTRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBORESIGHTMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBOUNDARYMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBOUNDARYTOOBIG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceBOUNDSDISAGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBOUNDSOUTOFORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceBUFFEROVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceBUFFERSIZESMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBUFFERTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceBUG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceBUGWRITEFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCALLCKBSSFIRST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCALLEDOUTOFORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCALLZZDSKBSSFIRST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANNOTFINDGRP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANNOTGETPACKET(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANNOTMAKEFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANNOTPICKFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANTFINDFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceCANTGETROTATIONTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCANTUSEPERIAPEPOCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCBNOSUCHSTR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCELLARRAYTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCELLTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceCKBOGUSENTRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCKINSUFFDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceCKNONEXISTREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCKTOOMANYFILES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceCKUNKNOWNDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCKWRONGDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCLIBCALLFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCLUSTERWRITEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCMDERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCMDPARSEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOARSEGRIDOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOLDESCTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOLUMNTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceCOMMANDTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOMMENTTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceCOMMFILENOTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOORDSYSNOTREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceCOUNTTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceCOVERAGEGAP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceCROSSANGLEMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDAFBADCRECLEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFBADRECLEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFBEGGTEND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFCRNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFDPWRITEFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFFRNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFFTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceDAFILLEGWRITE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFIMPROPOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFINVALIDACCESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFINVALIDPARAMS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNEGADDR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFNEWCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOIDWORD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOIFNMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNONAMEMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNORESV(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOSEARCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFNOSUCHADDR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOSUCHFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOSUCHHANDLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOSUCHUNIT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFNOWRITE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFOPENFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFREADFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDAFRWCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDAFWRITEFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASFILEREADFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASFILEWRITEFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASFTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceDASIDWORDNOTKNOWN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASIMPROPOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASINVALIDACCESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASINVALIDCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASINVALIDTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASNOIDWORD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASNOSUCHADDRESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASNOSUCHFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASNOSUCHHANDLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASNOSUCHUNIT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASNOTEMPTY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASOPENCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASOPENFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASREADFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDASRWCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceDASWRITEFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDATAITEMLIMITEXCEEDED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDATAREADFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDATATYPENOTRECOG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDATAWIDTHERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDATEEXPECTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDECODINGERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDEGENERATECASE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDEGENERATEINTERVAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDEGENERATESURFACE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDEPENDENTVECTORS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDEVICENAMETOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceDIFFLINETOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDIFFLINETOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDIMENSIONTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDISARRAY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDISORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDIVIDEBYZERO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyZeroDivisionError

exception spiceypy.utils.exceptions.SpiceDSKBOGUSENTRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDSKDATANOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDSKTARGETMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDSKTOOMANYFILES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceDTOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDUBIOUSMETHOD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceDUPLICATETIMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceECCOUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceECCOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceEKCOLATTRTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceEKCOLDESCTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceEKCOLNUMMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEKFILETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceEKIDTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceEKMISSINGCOLUMN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEKNOSEGMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceEKSEGMENTTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceEKSEGTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEKTABLELISTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceELEMENTSTOOSHORT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceEMBEDDEDBLANK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEMPTYINPUTFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEMPTYSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceEMPTYSTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceENDOFFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceENDPOINTSMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceERROREXIT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEVECOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEVENHERMITDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEVILBOGUSENTRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceEXTERNALOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFACENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFAKESCLKEXISTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILARCHMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILARCMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEALREADYEXISTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEALREADYOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILECURRENTLYOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILEDELETEFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEDOESNOTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILEEXISTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEISNOTSPK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILENAMETOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILENOTCONNECTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILENOTOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEOPENCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEOPENERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEOPENFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEOPENFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILEREADERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEREADFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceFILETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILETRUNCATED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFILEWRITEFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFIRSTRECORDMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFMTITEMLIMITEXCEEDED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATDATAMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATDOESNTAPPLY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATITEMLIMITEXCEEDED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATNOTAPPLICABLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFORMATSTRINGTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFOVTOOWIDE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEAIDCODENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEBIDCODENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEDATANOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEDEFERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEIDNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceFRAMEINFONOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMEMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceFRAMENAMENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceFRAMENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFRAMENOTRECOGNIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceFTPXFERERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceGRIDTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceHANDLENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceHASHISFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceHLULOCKFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceIDCODENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceIDSTRINGTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceIDWORDNOTKNOWN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceILLEGALCHARACTER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceILLEGALOPTIONNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceILLEGSHIFTDIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceILLEGTEMPL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceIMMUTABLEVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceIMPROPERFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceIMPROPEROPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINACTIVEOBJECT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCOMPATIBLEEOL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCOMPATIBLENUMREF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCOMPATIBLESCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINCOMPATIBLEUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINCOMPLETEELEMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCOMPLETEFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCOMPLETFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTCENTERID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTELEMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTENTTIMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTSTARTTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCONSISTSTOPTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINCORRECTUSAGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINDEFINITELOCALSECOND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINDEXOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIndexError

exception spiceypy.utils.exceptions.SpiceINDEXTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINPUTDOESNOTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINPUTFILENOTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINPUTOUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINPUTOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINPUTSTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINQUIREERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceINQUIREFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceINSUFFICIENTANGLES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINSUFFICIENTDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINSUFFLEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceINSUFPTRSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINTERVALSTARTNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINTINDEXTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINTLENNOTPOS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINTOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALDDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALDINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIndexError

exception spiceypy.utils.exceptions.SpiceINVALIDACCESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDACTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDADD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDADDRESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDANGLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDARCHTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceINVALIDARGUMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDARRAYRANK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDARRAYSHAPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDARRAYTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceINVALIDAXES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDAXIS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDAXISLENGTH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCARDINALITY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDCASE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCHECKOUT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCLUSTERNUM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCOLUMN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCONSTSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDDATACOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDDESCRTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDDIMENSION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDDIRECTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDDIVISOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDELLIPSE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDENDPNTSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDENDPTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDEPOCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDFILETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDFIXREF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDFOV(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDFRAMEDEF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDHANDLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDINDEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIndexError

exception spiceypy.utils.exceptions.SpiceINVALIDINTEGER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDLIMBTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDLISTITEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDLOCUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDLONEXTENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDMETADATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDMETHOD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDMSGTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNODE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMBEROFINTERVALS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMBEROFRECORDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMINT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMINTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDNUMRECS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDOCCTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDOPERATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDOPTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDPLANE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDPOINT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDRADII(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDRADIUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDREFFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDREFVAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDROLLSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSCLKRATE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSCLKSTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSCLKTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSEARCHSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSELECTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSHADOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSHAPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSHAPECOMBO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSIGNAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceINVALIDSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSTARTTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSTATE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSTEPSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDSUBLIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDSUBTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTABLENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDTABLESIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDTARGET(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTERMTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTEXT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDTIMEFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTIMESTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTLEORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDTOL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTOLERANCE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceINVALIDUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceINVALIDVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVALIDVERTEX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceINVERSTARTSTOPTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceIRFNOTREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceITEMNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceITEMNOTRECOGNIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceITERATIONEXCEEDED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceKERNELNOTLOADED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceKERNELPOOLFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceKERNELVARNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceKERVARSETOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceKERVARTOOBIG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceKEYWORDNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLBCORRUPTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLBINSUFPTRSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLBLINETOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLBNOSUCHLINE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLBTOOMANYLINES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLOWERBOUNDTOOLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceLSKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMALFORMEDSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMALLOCCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMALLOCFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceMALLOCFAILURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceMARKERNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMEMALLOCFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceMESSAGETOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceMISMATCHFROMTIMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISMATCHOUTPUTFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISMATCHTOTIMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGARGUMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGCENTER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGCOLSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGCOORDBOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGCOORDSYS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceMISSINGDATACLASS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGDATAORDERTK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGEOT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGEPOCHTOKEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGGEOCONSTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGHEIGHTREF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGHSCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGKPV(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGLEFTCOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGLEFTRTFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGNCAPFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGNCOLS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGNROWS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGPLATETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGROWMAJFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGROWSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGSCAPFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGSURFACE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGTIMEINFO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceMISSINGTLEIDKEYWORD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGTLEKEYWORD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGTOPCOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGTOPDOWNFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceMISSINGVOXELSCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMISSINGWRAPFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceMSGNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNAMENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNAMENOTRECOGNIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNAMENOTUNIQUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNAMESDONOTMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNAMESNOTRESOLVED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNAMETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNARATESFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNEGATIVETOL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOACCEPTABLEDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOANGULARRATEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOARRAYSTARTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOATTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOAVDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOBODYID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCANDOSPKSPCKS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCENTERIDORNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCKSEGMENTTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCLASS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOCOLUMN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOCOMMENTSFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCONVERG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCONVERGENCE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOCURRENTARRAY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNODATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODATAORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODATATYPEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODELIMCHARACTER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODETOOFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODSKSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNODSKSEGMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOENVVARIABLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOEULERANGLEUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFILENAMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFILES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFILESPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOFRAMECONNECT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFRAMEDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFRAMEINFO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOFRAMENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFRAMESKERNELNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFREELOGICALUNIT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFREENODES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFROMTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOFROMTIMESYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOHEADNODE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOINFO(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOINPUTDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOINPUTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOINSTRUMENTID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOINTERCEPT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOINTERVAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOKERNELLOADED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLANDINGTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLEAPSECONDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLINESPERRECCOUNT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLISTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLOADEDDSKFILES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOLOADEDFILES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNOLSKFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOMOREROOM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceNONCONICMOTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNONCONTIGUOUSARRAY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNONDISTINCTPAIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONEMPTYENTRY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONEMPTYTREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONEXISTELEMENTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONINTEGERFIELD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONNUMERICSTRING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPOSBUFLENGTH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPOSITIVEAXIS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPOSITIVEMASS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNONPOSITIVERADIUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPOSITIVESCALE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNONPOSITIVEVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPOSPACKETSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPRINTABLECHARS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNONPRINTINGCHAR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONPRINTINGCHARS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNONUNITQUATERNION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOOBJECTIDORNAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOOFFSETANGLEAXES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOOFFSETANGLEUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOOUTPUTFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOOUTPUTSPKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOPARTITION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOPATHVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOPICTURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOPLATES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOPOLYNOMIALDEGREE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOPRECESSIONTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOPRIORITIZATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOPRODUCERID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOROTATIONORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSCID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSCLKFILENAMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSECONDLINE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSEGMENTSFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNOSEPARATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOSLKFILENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSOLMARKER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSPACECRAFTID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSTARTTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSTOPTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSUCHFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNOSUCHHANDLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSUCHSYMBOL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSUNGM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOSURFACENAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTABINARYKERNEL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTACKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTADAFFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNOTADASFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceNOTADPNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTANDPNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTANINTEGER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTANINTEGERNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTANINTNUMBER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTAPCKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTAROTATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTASET(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceNOTATEXTFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTATRANSFERFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTCOMPUTABLE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTDIMENSIONALLYEQUIV(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTDISJOINT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTDISTINCT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTENOUGHPEAS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTIMETYPEFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTINDEXED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTINITIALIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceNOTINPART(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTISOFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTLEDATAFOROBJECT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTLEGALCB(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTOTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTOTIMESYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTPOSITIVE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTPRINTABLECHARS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTRANSLATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceNOTRECOGNIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTSEMCHECKED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTSUPPORTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNOTTWOFIELDSCLK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTTWOMODULI(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOTTWOOFFSETS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNOUNITSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNULLPOINTER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNUMBEREXPECTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNUMCOEFFSNOTPOS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNUMCONSTANTSNEG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNUMERICOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNUMPACKETSNOTPOS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceNUMPARTSUNEQUAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceNUMSTATESNOTPOS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceOBJECTLISTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOBJECTSTOOCLOSE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOBSIDCODENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceORBITDECAY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTOFPLACEDELIMITER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTOFROOM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceOUTPUTERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTPUTFILEEXISTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTPUTISNOTSPK(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTPUTTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceOUTPUTTOOSHORT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePARSERNOTREADY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePASTENDSTR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePATHMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePATHTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePCKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePCKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePCKFILETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpicePCKKRECTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePCKRECTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePLATELISTTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpicePOINTEROUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTERSETTOOBIG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTERTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTNOTINSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTNOTONSURFACE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpicePOINTOFFSURFACE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePOINTONZAXIS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpicePOINTTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePTRARRAYTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpicePUTCMLCALLEDTWICE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpicePUTCMLNOTCALLED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceQPARAMOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceQUERYFAILURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceQUERYNOTPARSED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRADIIOUTOFORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRAYISZEROVECTOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREADFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREADFAILURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRECORDNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRECURSIONTOODEEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRECURSIVELOADING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceREFANGLEMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceREFNOTREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREFVALNOTINTEGER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREFVECTORMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceREPORTTOOWIDE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREQUESTOUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceREQUESTOUTOFORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceRWCONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSBINSUFPTRSIZE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSBTOOMANYSTRS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSCLKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSCLKTRUNCATED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSEGIDTOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSEGMENTNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSEGMENTTABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSEGTABLETOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSEGTYPECONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSETEXCESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceSETTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSETUPDOESNOTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSHAPEMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSHAPENOTSUPPORTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSIGNALFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceSIGNALFAILURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceSINGULARMATRIX(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSIZEMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPACETOONARROW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPCRFLNOTCALLED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPICEISTIRED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKDOESNTEXIST(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKFILETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceSPKINSUFFDATA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceSPKINVALIDOPTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceSPKNOTASUBSET(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceSPKRECTOOLARGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKREFNOTSUPP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKSTRUCTUREERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPKTYPENOTSUPP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceSPKTYPENOTSUPPORTD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPURIOUSFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSPURIOUSKEYWORD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTRINGCONVERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTRINGCOPYFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTRINGCREATEFAIL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTRINGTOOLSHORT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSTRINGTOOSHORT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSTRINGTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSTRINGTRUNCATED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSUBORBITAL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSUBPOINTNOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceSYNTAXERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceSYSTEMCALLFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTABLENOTLOADED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceTARGETMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTARGIDCODENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTIMECONFLICT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTIMEOUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTIMESDONTMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTIMESOUTOFORDER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTIMESYSTEMPROBLEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTIMEZONEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOFEWINPUTLINES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOFEWPACKETS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTOOFEWPLATES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTOOFEWSTATES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTOOFEWVERTICES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTOOFEWWINDOWS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYCOLUMNS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYFIELDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYFILESOPEN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceTOOMANYHITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYITERATIONS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYKEYWORDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYPAIRS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYPARTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceTOOMANYPEAS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYPLATES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYSURFACES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYVERTICES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTOOMANYWATCHES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTRACEBACKOVERFLOW(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceTRACESTACKEMPTY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyRuntimeError

exception spiceypy.utils.exceptions.SpiceTRANSFERFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTRANSFERFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTWOSCLKFILENAMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTYPEMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceTYPENOTSUPPORTED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceTYPESMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNALLOCATEDNODE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNBALACEDPAIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNBALANCEDGROUP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNBALANCEDPAIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNDEFINEDFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNEQUALTIMESTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNINITIALIZED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNINITIALIZEDHASH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNINITIALIZEDVALUE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNITSMISSING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNITSNOTREC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNKNONWNTIMESYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNBFF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNCKMETA(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNCOMPARE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNKNOWNDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNFILARC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNFRAMESPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNFRAMETYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNINCLUSION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNINDEXTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNKERNELTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNKEY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNMETAITEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNMODE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNOP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNPACKETDIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNPCKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNREFDIR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNSPKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceUNKNOWNSYSTEM(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNKNOWNTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNKNOWNUNITS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNMATCHENDPTS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNNATURALACT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNNATURALRELATION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNORDEREDREFS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNORDEREDTIMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNPARSEDQUERY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNPARSEDTIME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceUNRECOGNAPPFLAG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNDELIMITER(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNIZABLEFILE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNIZEDACTION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNIZEDFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNIZEDFRAME(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNIZEDTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRECOGNPRECTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRESOLVEDNAMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNRESOLVEDTIMES(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNSUPPBINARYARCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNSUPPORTEDARCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNSUPPORTEDBFF(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceUNSUPPORTEDMETHOD(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNSUPPORTEDSPEC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyIOError

exception spiceypy.utils.exceptions.SpiceUNSUPPTEXTFORMAT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUNTITLEDHELP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUPDATEPENDING(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUSAGEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceUTFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceVALUEOUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceVALUETABLEFULL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceVARIABLENOTFOUND(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyKeyError

exception spiceypy.utils.exceptions.SpiceVARNAMETOOLONG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceVECTORTOOBIG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceVERSIONMISMATCH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceVERTEXNOTINGRID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceVOXELGRIDTOOBIG(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWIDTHTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWINDOWEXCESS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceWINDOWSTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWINDOWTOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceWORKSPACETOOSMALL(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyMemoryError

exception spiceypy.utils.exceptions.SpiceWRITEERROR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRITEFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRONGARCHITECTURE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRONGCKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRONGCONIC(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRONGDATATYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyTypeError

exception spiceypy.utils.exceptions.SpiceWRONGSEGMENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceWRONGSPKTYPE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceYEAROUTOFBOUNDS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceYEAROUTOFRANGE(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZEROAXISLENGTH(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceZEROBOUNDSEXTENT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZEROFRAMEID(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceZEROLENGTHCOLUMN(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZEROPOSITION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZEROQUATERNION(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZERORADIUS(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceZEROSTEP(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceZEROVECTOR(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZEROVELOCITY(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyValueError

exception spiceypy.utils.exceptions.SpiceZZHOLDDGETFAILED(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceZZHOLDNOPUT(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError

exception spiceypy.utils.exceptions.SpiceyError(short='', explain='', long='', traceback='', found=False)[source]

Bases: Exception

SpiceyError wraps CSPICE errors for use in Python.

exception spiceypy.utils.exceptions.SpiceyPyError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyError

Thin wrapping exception for SpiceyError.

In SpiceyPy versions 3.0.2 and prior, the base exception was a SpiceyError SpiceyPyError is a slightly more verbose and correct error name.

exception spiceypy.utils.exceptions.SpiceyPyIOError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, OSError

SpiceyPyError mixed with IOError

exception spiceypy.utils.exceptions.SpiceyPyIndexError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, IndexError

SpiceyPyError mixed with IndexError

exception spiceypy.utils.exceptions.SpiceyPyKeyError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, KeyError

SpiceyPyError mixed with KeyError

exception spiceypy.utils.exceptions.SpiceyPyMemoryError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, MemoryError

SpiceyPyError mixed with MemoryError

exception spiceypy.utils.exceptions.SpiceyPyRuntimeError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, RuntimeError

SpiceyPyError mixed with RuntimeError

exception spiceypy.utils.exceptions.SpiceyPyTypeError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, TypeError

SpiceyPyError mixed with TypeError

exception spiceypy.utils.exceptions.SpiceyPyValueError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, ValueError

SpiceyPyError mixed with ValueError

exception spiceypy.utils.exceptions.SpiceyPyZeroDivisionError(short='', explain='', long='', traceback='', found=False)[source]

Bases: SpiceyPyError, ZeroDivisionError

SpiceyPyError mixed with ZeroDivisionError

spiceypy.utils.libspice module

The MIT License (MIT)

Copyright (c) [2015-2022] [Andrew Annex]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

spiceypy.utils.libspicehelper.s_dla_p

alias of LP_SpiceDLADescr

spiceypy.utils.libspicehelper.s_dsk_p

alias of LP_SpiceDSKDescr

spiceypy.utils.libspicehelper.s_eka_p

alias of LP_SpiceEKAttDsc

spiceypy.utils.libspicehelper.s_eks_p

alias of LP_SpiceEKSegSum

spiceypy.utils.libspicehelper.s_elip_p

alias of LP_Ellipse

spiceypy.utils.libspicehelper.s_plan_p

alias of LP_Plane