tle_tuples_from_text#
- cysgp4.tle_tuples_from_text(unicode tle_text)#
Split a text containing TLE strings (including Name or ID, i.e., three lines per entry) into list of TLE tuples.
- Parameters:
- tle_text
str
Text containing TLE line strings.
- tle_text
- Returns:
Examples
An example text file with TLE strings is included in
cysgp4
and can be parsed like this:>>> import cysgp4 >>> tle_text = cysgp4.get_example_tles() >>> tle_tuples = cysgp4.tle_tuples_from_text(tle_text) >>> tle_tuples [('AKEBONO (EXOS-D) ', '1 19822U 89016A 19321.49921565 .00016421 94291-6 28704-3 0 9992', '2 19822 75.0304 327.7460 1766579 276.4058 63.9734 12.00957719 13956'), ('HST ', '1 20580U 90037B 19321.38711875 .00000471 00000-0 17700-4 0 9991', '2 20580 28.4699 288.8102 0002495 321.7771 171.5855 15.09299865423838'), ... ('ZHANGZHENG-1 (CSES) ', '1 43194U 18015C 19322.55091545 .00001006 00000-0 48427-4 0 9993', '2 43194 97.4135 85.6925 0016973 127.3937 1.4087 15.20935646 99453')]