struct

Predict::TLE

Inherits Struct / Value / Object

Represents the orbital elements contained in a two-line element set in a normalised form.

Constructors

new(name : String, catalog_number : Int32, international_designator : Predict::InternationalDesignator, epoch : Time, element_set_number : Int32, revolution_number : Int32, mean_motion : Float64, mean_motion_1st_deriv : Float64, mean_motion_2nd_deriv : Float64, radiation_pressure_coefficient : Float64, inclination : Float64, raan : Float64, eccentricity : Float64, argument_of_perigee : Float64, mean_anomaly : Float64)
Source
parse_three_line(string : String, *, detect_zero_index = true) : TLE

Parses a three line TLE (name, line1, line2). TLEs are sometimes supplied with a leading zero on the name line, which this library will strip unless detect_zero_index is set to false.

Source

Class methods

checksum(string)

Runs the checksum algorithm used by TLEs on the given string.

Source
parse_three_line(io : IO, *, detect_zero_index = true) : TLE | Nil

Reads a single three line TLE from IO. Returns nil if there's no TLE to read. TLEs are sometimes supplied with a leading zero on the name line, which this library will strip unless detect_zero_index is set to false.

Source
parse_two_line(tle : String, name : String)

Parses a two-line TLE given a tle string and a human-readable name.

Source
parse_two_line(lines : Indexable(String), name : String)

Parses a two-line TLE given an array of two lines and a human-readable name.

Source

Instance methods

argument_of_perigee

The angle between the ascending node and the orbit's perigee in degrees.

Source
catalog_number

The NORAD catalogue number of this satellite.

Source
eccentricity

A value defining the shape of the orbit.

Source
element_set_number

Element set number of this TLE.

Source
epoch

The epoch time for this TLE in UTC.

Source
inclination

Inclination between the equator and orbit in degrees.

Source
international_designator

The InternationalDesignator of this satellite.

Source
mean_anomaly

Mean anomaly in degrees.

Source
mean_motion

Mean number of orbits per day the satellite completes.

Source
mean_motion_1st_deriv

First derivative of mean motion with respect to time (in days).

Source
mean_motion_2nd_deriv

Second derivative of mean motion with nrespect to time (in days).

Source
name

The human-readable name of the satellite.

Source
raan

The angle between the vernal equinox and the point where the orbit crosses the equatorial plane going north in degrees.

Source
radiation_pressure_coefficient

BSTAR coefficient, a term in the SGP4 predictor.

Source
revolution_number

The orbit number of the satellite at the epoch.

Source