Table of Contents

Class TwoLineElements

Namespace
NominalSystems.Universe
Assembly
NominalSystems.Universe.dll

This class handles all necessary functions required to to import a Two Line Element set (TLE) to the simulation. A standard TLE will also include a first line with the name of the object, with the second and third lines being the actual TLE data, following the international standard.

public class TwoLineElements
Inheritance
TwoLineElements

Constructors

TwoLineElements()

public TwoLineElements()

Fields

Alpha

[-] Inverted semi-major axis (OPTIONAL)

public double Alpha

Field Value

double

ArgumentOfPeriapsis

[rad] Argument of periapsis of the orbit

public double ArgumentOfPeriapsis

Field Value

double

BStar

Drag term, Second derivative of Mean motion

public double BStar

Field Value

double

BallisticCoeff

First Derivative of Mean Motion/2 revs/day

public double BallisticCoeff

Field Value

double

Classification

Classification of Spacecraft ie U=nclassified

public string Classification

Field Value

string

Data

[-] The three line data from the TLE

public string Data

Field Value

string

Eccentricity

[-] Eccentricity of the orbit

public double Eccentricity

Field Value

double

ElementSetNumber

public int ElementSetNumber

Field Value

int

EphemerisType

Always Zero, only used in undistributed TLE data

public int EphemerisType

Field Value

int

EpochDay

Day of year and fractional portion of day

public double EpochDay

Field Value

double

EpochYear

Last Two Digits of Year

public double EpochYear

Field Value

double

Inclination

[rad] Inclination of the orbital plane

public double Inclination

Field Value

double

InternationDesignator

International Desigantor consisits of Launch Year, Launch Number and Piece ofLaunch

public string InternationDesignator

Field Value

string

MeanAnomaly

[rad] Mean Anomaly of orbit

public double MeanAnomaly

Field Value

double

MeanMotion

[rad/s] Revolution of orbit

public double MeanMotion

Field Value

double

OmegaAscension

[rad] Right ascension of the ascending node

public double OmegaAscension

Field Value

double

PositionMagnitude

[m] Magnitude of the position vector (OPTIONAL)

public double PositionMagnitude

Field Value

double

RadiusApoapsis

[m] Radius of apoapsis (OPTIONAL)

public double RadiusApoapsis

Field Value

double

RadiusPeriapsis

[m] Radius of periapsis (OPTIONAL)

public double RadiusPeriapsis

Field Value

double

RevolutionNumber

Number of revolutions at Epoch

public int RevolutionNumber

Field Value

int

ScCatalogNumber

Catalog Number of Space Craft

public long ScCatalogNumber

Field Value

long

ScName

Name of the SpaceCraft

public string ScName

Field Value

string

SemiMajorAxis

[m] The object's Semi-Major Axis

public double SemiMajorAxis

Field Value

double

TrueAnomaly

[rad] True anomaly of the orbit

public double TrueAnomaly

Field Value

double

Methods

EpochTLE2DateTime(string)

Generates a DateTime from the Epoch included in the TLE. If the TLE Line is invalid, the current UTC Now DateTime is returned

public static NsDateTime EpochTLE2DateTime(string TLELine2)

Parameters

TLELine2 string

The TLE Line with the Epoch Information

Returns

NsDateTime

The extracted Epoch as a DateTime. Returns the current UTC Now DateTime if the function is misconfigured

Read(string, int)

Reads and creates a TLE to the simulation from a file with multiple TLE's

public bool Read(string path, int satNum)

Parameters

path string

Name of the TLE file in the directory

satNum int

Desired satelitie in the list Assuming multiple TLE's in the same file

Returns

bool

Exceptions

Exception

Read(string, string, string)

Reads Generates a TLE within the simulation using strings of each line of the TLE

public void Read(string line1, string line2, string line3)

Parameters

line1 string

Line one of the TLE

line2 string

Line two of the TLE

line3 string

Line three of the TLE

ReadTLEFromFile(string, int)

Extracts a generic TLE from a file with multiple TLE's

public static string[] ReadTLEFromFile(string path, int satNum)

Parameters

path string

Name of the TLE file in the directory

satNum int

Desired satellite in the list Assuming multiple TLE's in the same file

Returns

string[]

The extracted TLE

Exceptions

Exception

TLEsInFile(string)

Extracts the number of TLEs from a file with multiple TLE's

public static int TLEsInFile(string path)

Parameters

path string

Name of the TLE file in the directory

Returns

int

The number of TLEs in a file

Exceptions

Exception