Reference
All docstrings!
SPICEBodies.SPICEBodies — ModuleEphemeris via SPICE kernels.
Extended Help
Imports
AstroTimeBaseCoreDocStringExtensionsLinearAlgebraSPICE
Exports
SPICEBodies.AbstractKernelBody — Typeabstract type AbstractKernelBodyA supertype for all SPICE ephemeris objects.
Interface
All subtypes must implement the following method.
SPICEBodies.naifcode(body)::Int
The type then has access to the following method implementations.
- body(epoch, ...) # full state vector: x, y, z, ẋ, ẏ, ż (KM, KM/S)
- gm(body) # scalar "GM" mass parameter (KM^3/S^2)
- radii(body) # radii vector x, y, z (KM)
SPICEBodies.KernelBody — Typestruct KernelBody <: SPICEBodies.AbstractKernelBodyAny celestial body, spacecraft, barycenter, or other ephemeris object which has an assigned NAIF ID within the local SPICE kernel pool.
SPICEBodies.KernelBody — MethodGiven 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))SPICEBodies.gm — Methodgm(body)
Return the mass parameter of the body (KM^3/S^2).
SPICEBodies.j2000s — FunctionReturn the number of seconds since J2000.
SPICEBodies.naifcode — FunctionGiven an ephemeris body, a NAIF ID code, or a body name, return the corresponding NAIF ID.
SPICEBodies.radii — Methodradii(body)
Return the radii vector of the body (KM).
SPICEBodies.radius — Methodradius(body)
Return the two-norm of the radius vector of the body (KM).
SPICEBodies.BodyLike — TypeA union type for all SPICEBodies.naifcode argument types.