Struct nyx_space::celestia::Cosm[][src]

pub struct Cosm {
    pub xb: Xb,
    pub frame_root: FrameTree,
    // some fields omitted
}

Fields

xb: Xbframe_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.

Return the provided state in the provided frame, or panics

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.