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
CSpice | rust-spice |
---|---|
furnsh_c | Kernel::load |
unload_c | Kernel::unload |
Converting between UTC and Ephemeris Time (LSK)
CSpice | rust-spice |
---|---|
str2et_c | str2et |
timout_c | timout |
Converting between Ephemeris Time and Spacecraft Clock (SCLK)
CSpice | rust-spice |
---|---|
scs2e_c | TODO |
sce2s_c | TODO |
sct2e_c | TODO |
sce2c_c | TODO |
scencd_c | TODO |
scdecd_c | TODO |
Constants and Orientation for Natural Bodies (PCK)
CSpice | rust-spice |
---|---|
bodfnd_c | TODO |
bodvrd_c | TODO |
pxform_c | pxform |
sxform_c | TODO |
pckfrm_c | TODO |
pckcov_c | TODO |
Computing Transformations Between Frames (FK)
CSpice | rust-spice |
---|---|
pxfrm2_c | pxfrm2 |
Computing Positions of Spacecraft and Natural Bodies (SPK)
CSpice | rust-spice |
---|---|
spkezr_c | TODO |
spkpos_c | spkpos |
spkcpo_c | TODO |
spkcpt_c | TODO |
spkcvo_c | TODO |
spkcvt_c | TODO |
spkobj_c | TODO |
spkcov_c | TODO |
Computing Orientation for Spacecraft and Instruments (CK)
CSpice | rust-spice |
---|---|
ckobj_c | TODO |
ckcov_c | TODO |
ckgp_c | TODO |
ckgpav_c | TODO |
Retrieving Instrument Parameters (IK)
CSpice | rust-spice |
---|---|
getfov_c | TODO |
gdpool_c | TODO |
gipool_c | TODO |
gcpool_c | TODO |
Computing surface coordinates using digital shape (DSK)
CSpice | rust-spice |
---|---|
latsrf_c | TODO |
srfnrm_c | TODO |
dskz02_c | TODO |
dskp02_c | TODO |
dskv02_c | TODO |
dskobj_c | TODO |
dsksrf_c | TODO |
Mapping Between Object Names and NAIF IDs
CSpice | rust-spice |
---|---|
bodc2n_c | TODO |
bodn2c_c | TODO |
Mapping between surface names and NAIF IDs
CSpice | rust-spice |
---|---|
srfcss_c | TODO |
srfs2c_c | TODO |
srfc2s_c | TODO |
srfscc_c | TODO |
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. |