Closed Engineero closed 6 years ago
It is expected that the link return "You must be logged in to complete this action" when I visit it?
Yes, you need to create an account to view their data. The account is free if you want to check it out, but as an example, if you save the following two TLEs to a file and try to load it as shown, you will get that error:
1 29273U 06033B 18081.29838594 -.00000056 +00000-0 +00000-0 0 9993
2 29273 000.0189 154.5198 0004980 202.4902 284.9321 01.00271755042548
1 29274U 06033C 18081.39999693 +.00002637 +00000-0 +10299-2 0 9992
2 29274 005.9144 244.7152 6177908 248.3941 037.5897 03.74556424124616
Thank you, that sample file will be perfect! I'll see what I can do.
In the meantime, note that you can loop across the lines yourself and create Earth satellite objects with:
EarthSatellite(line1, line2)
In case that gets you moving again and not waiting for the next release!
Thank you. I did get this direct implementation of the class constructor working for me, and just fed it the satellite ID for the name
keyword argument. I would love to get the API solution working with 2-line and 3-line element sets though. I haven't had a chance to look at it yet, but I will try to look through the code and see if I can send you a pull request.
See pull request #177
Thanks, I'll go take a look at that pull request!
(Fixed by #177.)
When using
load.tle()
, it would be nice to add a check to either grab the first line as the satellite name (if three lines are provided per TLE), or just parse out the satellite ID and use that as the name if the list is only TLEs. For instance, if I download the latest TLE list from space-track.org (two-line elements, not three), to'satcat.txt'
and try toload.tle('./satcat.txt')
, I get the following traceback:I know you can get the three-line elements from space-track.org, but sometimes I am working with TLE files that I have no control over and only use two lines per satellite (no ID).
If I have time I will try to implement this check and submit a pull request. Otherwise if somebody else gets to it first, I think it would be a nice improvement.