nsat / pypredict

Spire port of predict open-source tracking library
GNU General Public License v2.0
64 stars 17 forks source link

Locate Satellite at the time of TLE #32

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi, I was wondering about the way how can I get the location of a satellite at the time of it's TLE? (i.e. I am not interested in modelling the orbital trajectory, rather just the location when the TLE was recorded. Thanks.

ghost commented 5 years ago

Hi Eric,

I tried to run the examples on that repository but I could not.

BR,

H


Mohammad (Hooman) Tavassolian, BASc MASc Candidate and Researcher at MENRVA Biomedical Research Lab. (+1) 236 889 2118 Simon Fraser University mtavasso@sfu.ca | menrva.ensc.sfu.ca | https://www.linkedin.com/in/mohammad-tavassolian-40787888/


From: Eric Boucher notifications@github.com Sent: Monday, November 26, 2018 9:35:40 AM To: nsat/pypredict Cc: Hooman Tavassolian; Mention Subject: Re: [nsat/pypredict] Locate Satellite at the time of TLE (#32)

Hi @MomoTavashttps://github.com/MomoTavas have you tried existing solutions such as https://github.com/pytroll/pyorbital ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/nsat/pypredict/issues/32#issuecomment-441727981, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZFpcxoXS0F_jxtD1GrDJcIT_BIC7dWWks5uzCZsgaJpZM4YxxvZ.

tinvaan commented 1 year ago

Poking this thread for the benefit of future readers. Can someone correct me if I'm wrong?

I understand this can be achieved by just passing in a timestamp to the observe() method. If this is supported as shown below, can we close this issue?

>>> qth = (37.771034, 122.413815, 7)
>>> tle = """
      ISS (ZARYA)
      1 25544U 98067A   19249.04864348  .00001909  00000-0  40858-4 0  9990
      2 25544  51.6464 320.1755 0007999  10.9066  53.2893 15.50437522187805
   """

>>> sat = predict.observe(tle.strip(), qth, 1488873372.0)
>>> print(sat.get('latitude'), sat.get('longitude'))
(-16.690541322246986, 60.823185873788056)