File: tlelines

package info (click to toggle)
orbit-predictor 1.15.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: python: 1,616; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python3

import datetime

from orbit_predictor.sources import get_predictor_from_tle_lines

TLE_LINES = (
    "1 43204U 18015K   18339.11168986  .00000941  00000-0  42148-4 0  9999",
    "2 43204  97.3719 104.7825 0016180 271.1347 174.4597 15.23621941 46156")

predictor = get_predictor_from_tle_lines(TLE_LINES)

predictor.get_position(datetime.datetime(2019, 1, 1))