コンテンツにスキップ

Tle

このコンテンツはまだ日本語訳がありません。

Defined in: tle.rs:42

pub struct Tle {
pub name: Option<String>,
pub satellite_number: u32,
pub epoch_year: u32,
pub epoch_day: f64,
pub inclination: f64,
pub raan: f64,
pub eccentricity: f64,
pub argument_of_perigee: f64,
pub mean_anomaly: f64,
pub mean_motion: f64,
pub bstar: f64,
}

Parsed Two-Line Element set (TLE).

name: [Option<String>](https://doc.rust-lang.org/std/option/enum.Option.html)

Optional satellite name (from line 0).


satellite_number: u32

NORAD catalog number.


epoch_year: u32

4-digit epoch year.


epoch_day: f64

Fractional day of year (1.0 = Jan 1 00:00 UTC).


inclination: f64

Inclination [rad].


raan: f64

Right ascension of ascending node [rad].


eccentricity: f64

Eccentricity (dimensionless).


argument_of_perigee: f64

Argument of perigee [rad].


mean_anomaly: f64

Mean anomaly [rad].


mean_motion: f64

Mean motion [rad/s].


bstar: f64

B* drag term [1/R_e].


fn parse(text: &str) -> [Result<Self, TleParseError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Parse a TLE from text (2-line or 3-line format).

Accepts:

  • 2 lines: line 1 + line 2
  • 3 lines: name + line 1 + line 2

fn epoch(&self) -> Epoch

Compute the TLE epoch as an Epoch (Julian Date).


fn semi_major_axis(&self, mu: f64) -> f64

Compute semi-major axis from mean motion: a = (μ/n²)^(1/3).


fn to_keplerian_elements(&self, mu: f64) -> KeplerianElements

Convert TLE to classical Keplerian elements.

Converts mean anomaly → true anomaly using Kepler’s equation solver, and computes semi-major axis from mean motion.