Module spice::core[][src]

The Rust layer to ease the use of the wrapper.

The Rust layer to ease the use of the wrapper.

Below you will find the index of the C spice functions that are wrapped with a nice Rust interface.

It takes a long time to correctly wrap all functions of the API. Raise an issue to ask a specific function to be implemented and we will do it immediately. Pull requests are warmly welcomed to help speed us this process (do not forget to include a proper documentation and a test).

In the meantime, if you are in a rush and need quickly to use a function not implemented with the Rust interface, use the C binded function here. You can find some inspiration in the source of the already implemented functions with the Rust interface to deal with the FFI types and unsafe.

Most common API

Loading and Unloading SPICE Kernels

CSpicerust-spice
furnsh_cKernel::load
unload_cKernel::unload

Converting between UTC and Ephemeris Time (LSK)

CSpicerust-spice
str2et_cstr2et
timout_ctimout

Converting between Ephemeris Time and Spacecraft Clock (SCLK)

CSpicerust-spice
scs2e_cTODO
sce2s_cTODO
sct2e_cTODO
sce2c_cTODO
scencd_cTODO
scdecd_cTODO

Constants and Orientation for Natural Bodies (PCK)

CSpicerust-spice
bodfnd_cTODO
bodvrd_cTODO
pxform_cpxform
sxform_cTODO
pckfrm_cTODO
pckcov_cTODO

Computing Transformations Between Frames (FK)

CSpicerust-spice
pxfrm2_cpxfrm2

Computing Positions of Spacecraft and Natural Bodies (SPK)

CSpicerust-spice
spkezr_cTODO
spkpos_cspkpos
spkcpo_cTODO
spkcpt_cTODO
spkcvo_cTODO
spkcvt_cTODO
spkobj_cTODO
spkcov_cTODO

Computing Orientation for Spacecraft and Instruments (CK)

CSpicerust-spice
ckobj_cTODO
ckcov_cTODO
ckgp_cTODO
ckgpav_cTODO

Retrieving Instrument Parameters (IK)

CSpicerust-spice
getfov_cTODO
gdpool_cTODO
gipool_cTODO
gcpool_cTODO

Computing surface coordinates using digital shape (DSK)

CSpicerust-spice
latsrf_cTODO
srfnrm_cTODO
dskz02_cTODO
dskp02_cTODO
dskv02_cTODO
dskobj_cTODO
dsksrf_cTODO

Mapping Between Object Names and NAIF IDs

CSpicerust-spice
bodc2n_cTODO
bodn2c_cTODO

Mapping between surface names and NAIF IDs

CSpicerust-spice
srfcss_cTODO
srfs2c_cTODO
srfc2s_cTODO
srfscc_cTODO

Structs

Kernel

Kernel type to automatically load the kernel on the definition and keep a record of the status of the loading.

KernelError

An error which can be returned when using a kernel.

Enums

KernelErrorKind

Enumeration of the different kinds of errors about kernels.

Constants

TIME_FORMAT

Instructions to format an ephemeris time to a string.

Functions

pxform

Return the matrix that transforms position vectors from one specified frame to another at a specified epoch.

pxfrm2

Return the 3x3 matrix that transforms position vectors from one specified frame at a specified epoch to another specified frame at another specified epoch.

spkpos

Get the position and one way light time of target with respect to observer in the reference frame at time with optional aberration correction.

str2et

Convert a formatted date from string to ephemeris time.

timout

Convert an ephemeris time to a formatted string.