orbitx.utils._tle.get_eccentricity

orbitx.utils._tle.get_eccentricity#

orbitx.utils._tle.get_eccentricity(line2: str) float[source]#

Finds the eccentricity from the second line of the TLE. The the right ascention corresponds to the characters 27 to 33 of the second line.

Parameters:

line2 (str) – The second line of the considered TLE

Returns:

The eccentricity

Return type:

float

Example

line2 = "2 25544  51.6416 247.4627 0006703 130.5360 325.0288 15.72125391563537"
eccentricity = get_eccentricity(line2)
print(eccentricity)
0.0006703