Closed robbo4 closed 5 years ago
Hi @robbo4, thanks for your interest in orbit-predictor? Could you please tell us what's the issue you're finding?
The issue is that EtcTLESource
just reads the first 3 lines for a TLE, as it is meant to be used on board to know what the current TLE is. To support mutltiple satellites in one file please use NoradTLESource
.
I will close the issue now, re open it if it does not work.
Ahh yes. You are correct. Thank you.
Can anyone give me an example of how NoradTLESource
can be used? I'm currently not sure what 'content' is.
Thanks
Try using one of the two constructor class methods:
NoradTLESource.from_url(url)
or NoradTLESource.from_file(filename)
You can see from the code that content
is a list of lines(strings) of a norad like tle file.
Ahhh. Perfect, thanks.
Hiya,
I'm trying to write some code to see what satellites are overhead. So the idea is to have a large TLE file with multiple spacecraft in. Then get the next aos and los of each one, checking to see if the current time is within the aos and los. However, I seem to have an issue when trying to look at anything other than the first spacecraft in the TLE file.
Example code:
Any ideas if this is something I'm doing wrong or an issue?
Thanks
(Edit: Code formatting)