pub struct Eclipse {
pub kind: EclipseKind,
pub eclipse_type: EclipseType,
pub greatest_eclipse: Instant,
pub magnitude: f64,
pub gamma: f64,
pub saros_series: u32,
pub eclipsed_longitude: Longitude,
pub near_node: Node,
pub greatest_eclipse_location: Option<GeoLocation>,
}Expand description
A single global/geocentric eclipse and its computed circumstances.
All quantities are geocentric except the solar magnitude and type, which follow the NASA canon’s topocentric-at-greatest-eclipse convention. No per-observer (local) circumstances are provided.
Fields§
§kind: EclipseKindSolar or lunar.
eclipse_type: EclipseTypeThe classified eclipse type (matches kind).
greatest_eclipse: InstantInstant of greatest eclipse, in the TDB time scale.
magnitude: f64Eclipse magnitude (fraction of the eclipsed body’s diameter covered at greatest eclipse): topocentric for solar, umbral/penumbral for lunar.
gamma: f64Gamma: least distance of the shadow axis from Earth’s center, in equatorial Earth radii (signed; sign follows the Moon’s latitude).
saros_series: u32Saros series number this eclipse belongs to.
eclipsed_longitude: LongitudeEcliptic longitude of the eclipsed body at greatest eclipse (apparent tropical ecliptic of date, no ayanamsa): the Sun for solar eclipses, the Moon (Sun + 180°) for lunar eclipses.
near_node: NodeThe lunar node (ascending/descending) the eclipse occurs near.
greatest_eclipse_location: Option<GeoLocation>Sub-shadow point of greatest eclipse for solar eclipses; always None
for lunar eclipses (which have no single surface location).