orbitx.utils._tle.get_mean_anomaly

orbitx.utils._tle.get_mean_anomaly#

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

Finds the mean anomaly in degrees from the second line of the TLE. The the mean anomaly corresponds to the characters 44 to 51 of the second line.

Parameters:

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

Returns:

The mean anomaly

Return type:

float

Example

line2 = "2 25544  51.6416 247.4627 0006703 130.5360 325.0288 15.72125391563537"
mean_anomaly = get_mean_anomaly(line2)
print(mean_anomaly)
325.0288