Expand description
Provides the solar system planets, and state and ephemerides management.
Re-exports§
pub use crate::cosmic::GuidanceMode;
pub use crate::cosmic::Spacecraft;
Modules§
- The eclipse module allows finding eclipses and (conversely) visibility between a state and another one (e.g. a planet or the Sun).
Structs§
- Represents the aberration correction options in ANISE.
- An Almanac contains all of the loaded SPICE and ANISE data. It is the context for all computations.
- Stores a B-Plane
- The drag configuration for a spacecraft
- Defines generally usable durations for nanosecond precision valid for 32,768 centuries in either direction, and only on 80 bits / 10 octets.
- Defines a nanosecond-precision Epoch.
- An object providing access to an open file on the filesystem.
- A Frame uniquely defined by its ephemeris center and orientation. Refer to FrameDetail for frames combined with parameters.
- A unique frame reference that only contains enough information to build the actual Frame object. It cannot be used for any computations, is it be used in any structure apart from error structures.
- A structure to set up an Almanac, with automatic downloading, local storage, checksum checking, and more.
- Orbit defines an orbital state
- A type which stores the partial of an element
- A spacecraft state, composed of its orbit, its dry and fuel (wet) masses (in kg), its SRP configuration, its drag configuration, its thruster configuration, and its guidance mode.
- The Solar Radiation Pressure configuration for a spacecraft
- An iterator of a sequence of evenly spaced Epochs.
Enums§
- An Enum to convert frequencies to their approximate duration, rounded to the closest nanosecond.
- Errors handles all oddities which may occur in this library.
- Defines the distance units supported by ANISE. This notably allows storing interpolation information from instruments to comets.
- Enum of the different time systems available
- An Enum to perform time unit conversions.
- An Enum to perform time unit conversions.
Constants§
- Astronomical unit, in kilometers, according to the IAU.
- BDT(BeiDou): 2005 Dec 31st Midnight BDT (BeiDou) reference epoch is 2005 December 31st UTC at midnight. This time scale is synchronized with UTC. |UTC - TAI| = XX Leap Seconds on that day.
DAYS_PER_CENTURY
corresponds to the number of days per century in the Julian calendar.DAYS_PER_YEAR
corresponds to the number of days per year in the Julian calendar.DAYS_PER_YEAR_NLD
corresponds to the number of days per year without leap days.- The Ephemeris Time epoch, in seconds
- GST (Galileo) reference epoch is 13 seconds before 1999 August 21 UTC at midnight. |UTC - TAI| = XX Leap Seconds on that day.
- The J1900 reference epoch (1900-01-01 at noon) TAI.
- The J2000 reference epoch (2000-01-01 at midnight) TAI. |UTC - TAI| = XX Leap Seconds on that day.
- Julian date for the J1900 epoch, as per NAIF SPICE.
- Julian date for the J2000 epoch, as per NAIF SPICE.
- Julian days between 01 Jan 1900 at midnight and the Modified Julian Day at 17 November 1858.
- Julian days between 01 Jan 2000 at noon and the Modified Julian Day at 17 November 1858.
- Modified Julian Date in seconds as defined here. MJD epoch is Modified Julian Day at 17 November 1858 at midnight.
- NAIF leap second kernel data for EB used to calculate the eccentric anomaly of the heliocentric orbit of the Earth-Moon barycenter.
- NAIF leap second kernel data used to calculate the difference between ET and TAI.
- NAIF leap second kernel data for M_0 used to calculate the mean anomaly of the heliocentric orbit of the Earth-Moon barycenter.
- NAIF leap second kernel data for M_1 used to calculate the mean anomaly of the heliocentric orbit of the Earth-Moon barycenter.
- QZSS and GPS share the same reference epoch.
SECONDS_PER_CENTURY
defines the number of seconds per century.SECONDS_PER_DAY
defines the number of seconds per day.SECONDS_PER_HOUR
defines the number of seconds per hour.SECONDS_PER_MINUTE
defines the number of seconds per minute.SECONDS_PER_SIDEREAL_YEAR
corresponds to the number of seconds per sidereal year from NIST.SECONDS_PER_TROPICAL_YEAR
corresponds to the number of seconds per tropical year from NAIF SPICE.SECONDS_PER_YEAR
corresponds to the number of seconds per julian year from NAIF SPICE.- Speed of light in kilometers per second (km/s)
- Speed of light in meters per second
- From NIST special publication 330, 2008 edition, in meters per second squared
- The UNIX reference epoch of 1970-01-01 in TAI duration, accounting only for IERS leap seconds.
Traits§
- A trait to automatically convert some primitives to an approximate frequency as a duration, rounded to the closest nanosecond Does not support more than 1 GHz (because max precision of a duration is 1 nanosecond)
- Parse a value from a string
- A trait for generate propagation and estimation state. The first parameter is the size of the state, the second is the size of the propagated state including STM and extra items.
- A trait allowing for something to have an epoch
- A trait to automatically convert some primitives to a duration
Functions§
- Returns true if the provided Gregorian date is valid. Leap second days may have 60 seconds.
- Returns the Delta V (in km/s) needed to achieve the B Plane specified by B dot R and B dot T. If no LTOF target is set, this method will fix VX, VY and VZ successively and use the minimum of those as a seed for the LTOF variation finding. If the 3x3 search is worse than any of the 2x2s, then a 2x2 will be returned. This uses the hyperdual formulation of the Jacobian and will also vary the linearize time of flight (LTOF).
Type Aliases§
- Binary Planetary Constant
- A helper type alias, but no assumptions are made on the underlying validity of the frame.
- Spacecraft Planetary Kernel