struct Predict::TLE

Overview

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

Defined in:

predict/tle.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.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.


[View source]

Class Method Detail

def self.checksum(string) #

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


[View source]
def self.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.


[View source]
def self.parse_two_line(tle : String, name : String) #

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


[View source]
def self.parse_two_line(lines : Indexable(String), name : String) #

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


[View source]

Instance Method Detail

def argument_of_perigee : Float64 #

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


[View source]
def catalog_number : Int32 #

The NORAD catalogue number of this satellite.


[View source]
def eccentricity : Float64 #

A value defining the shape of the orbit.


[View source]
def element_set_number : Int32 #

Element set number of this TLE.


[View source]
def epoch : Time #

The epoch time for this TLE in UTC.


[View source]
def inclination : Float64 #

Inclination between the equator and orbit in degrees.


[View source]
def international_designator : InternationalDesignator #

The InternationalDesignator of this satellite.


[View source]
def mean_anomaly : Float64 #

Mean anomaly in degrees.


[View source]
def mean_motion : Float64 #

Mean number of orbits per day the satellite completes.


[View source]
def mean_motion_1st_deriv : Float64 #

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


[View source]
def mean_motion_2nd_deriv : Float64 #

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


[View source]
def name : String #

The human-readable name of the satellite.


[View source]
def raan : Float64 #

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


[View source]
def radiation_pressure_coefficient : Float64 #

BSTAR coefficient, a term in the SGP4 predictor.


[View source]
def revolution_number : Int32 #

The orbit number of the satellite at the epoch.


[View source]