Reference

All docstrings!

SPICEBodies.AbstractKernelBodyType
abstract type AbstractKernelBody

A supertype for all SPICE ephemeris objects.

Interface

All subtypes must implement the following method.

  1. SPICEBodies.naifcode(body)::Int

The type then has access to the following method implementations.

  1. body(epoch, ...) # full state vector: x, y, z, ẋ, ẏ, ż (KM, KM/S)
  2. gm(body) # scalar "GM" mass parameter (KM^3/S^2)
  3. radii(body) # radii vector x, y, z (KM)
source
SPICEBodies.KernelBodyType
struct KernelBody <: SPICEBodies.AbstractKernelBody

Any celestial body, spacecraft, barycenter, or other ephemeris object which has an assigned NAIF ID within the local SPICE kernel pool.

source
SPICEBodies.KernelBodyMethod

Given an epoch, return the state vector [x, y, z, ẋ, ẏ, ż] (KM,KM/s) of the body relative to the observer defined by wrt. See spkez for more information about the underlying implementation. Use the dimension keyword argument to specify whether you want the full state vector, the Val(:position), or the Val(:velocity).

body(epoch; frame = "J2000", aberration = "none", wrt = naifcode("ssb"), dimension = Val(:all))
source