Struct nyx_space::md::ui::Cosm [−][src]
Fields
xb: Xb
frame_root: FrameTree
Implementations
Builds a Cosm from the *XB files. Path should not contain file extension. Panics if the files could not be loaded.
Tries to load a subset of the DE438 XB from the embedded files, bounded between 01 Jan 2000 and 31 Dec 2050 TDB.
Load a subset of the DE438 XB from the embedded files, bounded between 01 Jan 2000 and 31 Dec 2050 TAI.
Load a subset of the DE438 XB from the embedded files, bounded between 01 Jan 2000 and 31 Dec 2050 TAI.
Load a subset of the DE438 XB from the embedded files, bounded between 01 Jan 2000 and 31 Dec 2050 TAI.
Attempts to build a Cosm from the XB files and the embedded IAU frames
Load the IAU Frames as defined in Celest Mech Dyn Astr (2018) 130:22 (https://doi.org/10.1007/s10569-017-9805-5)
Returns the machine path of the ephemeris whose orientation is requested
Append Cosm with the contents of this TOML (must not be the filename)
Fetch the frame associated with this ephemeris name This is slow, so avoid using it.
Provided an ephemeris path and an optional frame name, returns the Frame of that ephemeris. For example, if [3, 1] is provided (Moon in J2000 in the DE file), return Moon J2000 If no frame name is provided, then the storage frame is returned. Otherwise, the correct frame is returned.
Provided a frame path returns the Frame.
Returns all of the frames defined in this Cosm
Returns the geoid from the loaded XB, if it is in there, else panics!
Mutates the GM value for the provided geoid id. Panics if ID not found.
Returns the celestial state as computed from a de4xx.{FXB,XB} file in the original frame
Attempts to return the state of the celestial object at the provided time
The light time correction is based on SPICE’s implementation: https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkezr_c.html . Aberration computation is a conversion of the stelab function in SPICE, available here https://github.com/ChristopherRabotin/cspice/blob/26c72936fb7ff6f366803a1419b7cc3c61e0b6e5/src/cspice/stelab.c#L255
Returns the state of the celestial object (target ephem) as seen in the requested frame at the provided time
Return the position DCM (3x3) to go from the from
frame to the to
frame
Return the position and velocity DCM (6x6) to go from the from
frame to the to
frame
Attempts to only perform a translation without rotation between two frames.
You really shouldn’t be using this unless you know exactly what you’re doing.
Typically, you want to use try_frame_chg
.
WARNING: This will update the Frame of the Orbit to the requested one EVEN IF it doesn’t rotate it.
Attempts to return the provided state in the provided frame.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Cosm
impl !UnwindSafe for Cosm
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V