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
ArgumentOfPeriapsis
[rad] Argument of periapsis of the orbit
public double ArgumentOfPeriapsis
Field Value
BStar
Drag term, Second derivative of Mean motion
public double BStar
Field Value
BallisticCoeff
First Derivative of Mean Motion/2 revs/day
public double BallisticCoeff
Field Value
Classification
Classification of Spacecraft ie U=nclassified
public string Classification
Field Value
Data
[-] The three line data from the TLE
public string Data
Field Value
Eccentricity
[-] Eccentricity of the orbit
public double Eccentricity
Field Value
ElementSetNumber
public int ElementSetNumber
Field Value
EphemerisType
Always Zero, only used in undistributed TLE data
public int EphemerisType
Field Value
EpochDay
Day of year and fractional portion of day
public double EpochDay
Field Value
EpochYear
Last Two Digits of Year
public double EpochYear
Field Value
Inclination
[rad] Inclination of the orbital plane
public double Inclination
Field Value
InternationDesignator
International Desigantor consisits of Launch Year, Launch Number and Piece ofLaunch
public string InternationDesignator
Field Value
MeanAnomaly
[rad] Mean Anomaly of orbit
public double MeanAnomaly
Field Value
MeanMotion
[rad/s] Revolution of orbit
public double MeanMotion
Field Value
OmegaAscension
[rad] Right ascension of the ascending node
public double OmegaAscension
Field Value
PositionMagnitude
[m] Magnitude of the position vector (OPTIONAL)
public double PositionMagnitude
Field Value
RadiusApoapsis
[m] Radius of apoapsis (OPTIONAL)
public double RadiusApoapsis
Field Value
RadiusPeriapsis
[m] Radius of periapsis (OPTIONAL)
public double RadiusPeriapsis
Field Value
RevolutionNumber
Number of revolutions at Epoch
public int RevolutionNumber
Field Value
ScCatalogNumber
Catalog Number of Space Craft
public long ScCatalogNumber
Field Value
ScName
Name of the SpaceCraft
public string ScName
Field Value
SemiMajorAxis
[m] The object's Semi-Major Axis
public double SemiMajorAxis
Field Value
TrueAnomaly
[rad] True anomaly of the orbit
public double TrueAnomaly
Field Value
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
stringThe 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
stringName of the TLE file in the directory
satNum
intDesired satelitie in the list Assuming multiple TLE's in the same file
Returns
Exceptions
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
stringLine one of the TLE
line2
stringLine two of the TLE
line3
stringLine 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
stringName of the TLE file in the directory
satNum
intDesired satellite in the list Assuming multiple TLE's in the same file
Returns
- string[]
The extracted TLE
Exceptions
TLEsInFile(string)
Extracts the number of TLEs from a file with multiple TLE's
public static int TLEsInFile(string path)
Parameters
path
stringName of the TLE file in the directory
Returns
- int
The number of TLEs in a file