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).
Fields
Section titled “Fields”name: [Option<String>](https://doc.rust-lang.org/std/option/enum.Option.html)
Optional satellite name (from line 0).
satellite_number
Section titled “satellite_number”satellite_number: u32
NORAD catalog number.
epoch_year
Section titled “epoch_year”epoch_year: u32
4-digit epoch year.
epoch_day
Section titled “epoch_day”epoch_day: f64
Fractional day of year (1.0 = Jan 1 00:00 UTC).
inclination
Section titled “inclination”inclination: f64
Inclination [rad].
raan: f64
Right ascension of ascending node [rad].
eccentricity
Section titled “eccentricity”eccentricity: f64
Eccentricity (dimensionless).
argument_of_perigee
Section titled “argument_of_perigee”argument_of_perigee: f64
Argument of perigee [rad].
mean_anomaly
Section titled “mean_anomaly”mean_anomaly: f64
Mean anomaly [rad].
mean_motion
Section titled “mean_motion”mean_motion: f64
Mean motion [rad/s].
bstar: f64
B* drag term [1/R_e].
Methods
Section titled “Methods”parse()
Section titled “parse()”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
epoch()
Section titled “epoch()”fn epoch(&self) -> Epoch
Compute the TLE epoch as an Epoch (Julian Date).
semi_major_axis()
Section titled “semi_major_axis()”fn semi_major_axis(&self, mu: f64) -> f64
Compute semi-major axis from mean motion: a = (μ/n²)^(1/3).
to_keplerian_elements()
Section titled “to_keplerian_elements()”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.