-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotImplementedError: Deep space calculations not supported - Just from running TLE file #71
Comments
After running some testing, it happens to be some aspect of specific satellites in the science celestral tle file. I began an 'x' count had the routine stop at 5 and it worked. I did the same for additional levels and eventually obtained an error at 829. I then had the routine skip 829 which it did. But, it stopped at 831. After a few more satellites, I wanted to see what line caused the issue and determined that it broke at the following line:
The satellites that do not work so far are: POLAR XMM-NEWTON CLUSTER II-FM7 (SAMBA) CLUSTER II-FM6 (SALSA) I noticed a pattern in field 11 for Drag Term: in that they all were 00000-0: |
So, I wrote this code rather than adding each specific satellite and it completed without issue:
|
@clmuddjr thanks for reporting this issue! I think the Deep space error comes when trying to use TLEs for computing geostationary or deep space orbits, with pyorbital doesn't support yet. For polar satellites, you shouldn't get this problem. What are the orbits of the satellites you are working on? |
If someone wants to dive into a PR for deep space computations: deep space initialisation (https://github.com/pytroll/pyorbital/blob/master/pyorbital/orbital.py#L779-L780) should follow page 85 of https://celestrak.com/publications/AIAA/2006-6753/AIAA-2006-6753-Rev3.pdf Some of the deep space test cases are already included in |
Dear people:
I want to run through a TLE file and calculate the coordinates of each satellite for a period of time (right now, datetime will only allow 60 seconds, but would like to run it longer).
At first, using Orbital from PyOrbital, I obtained an error that certain satellites could not be found in the TLE file I specified. Then, I realized that Orbital may have been pulling from the Internet (Celestrak) given I had not identified a tle_file. Then, after modifying Orbital, I obtained an error that "Deep space calculations not supported."
This is the code:
f.close()
Problem description
As mentioned above, I get an error for Deep space calculations not supported just from running the TLE file. And, unless I am missing something, I do not see how it happens to be a deep space calculation where I am just trying to calculate each satellites individual coordinates over 60 seconds.
Expected Output
It should just complete the calculations and provide me with two lists: filter_sat_coords and sat_sec_list. When I run it using a single user-selected satellite known to be in the tle file (HST), it works. This code works:
With the result:
As does:
With the result:
Actual Result, Traceback if applicable
However, when I run the code at the top using "line1" for the satname from the TLE file, it gives me the error.
Could it be something with this line of code and trying to do the iteration:
for line1,line2,line3 in itertools.zip_longest(*[r]*3):
and then using line1 for the satellite name?
For, when I change "line1" to "sat1" again the code, specifically:
orb2=Orbital(sat1, tle_file=satfilename)
it works.
Could it be the number of satellites or calculations?
Versions of Python, package at hand and relevant dependencies
3.8.6 | packaged by conda-forge | (default, Dec 22 2020, 10:15:24)
[Clang 11.0.0 ]
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered: