ISS not found in get_observer_look
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 262
- Forks
- 80
- Avg merge
- 8h 34m
- Merged PRs (30d)
- 3
Description
Code Sample, a minimal, complete, and verifiable piece of code
# Your code here
tz = datetime.timezone(datetime.timedelta(seconds=7200))
now = datetime.datetime.now(tz).isoformat(timespec='minutes')
(lon, lat, ele) = (61.XXXXXX, 24.XXXXXX, 0.093)
orb = Orbital("ISS")
az1, alt1 = orb.get_observer_look(now,lon,lat,ele)
print("")
print("Elevation: ", alt1)
print("Azimuth: ", az1)
Problem description
ISS (International Space Station) as Orbital class(*) name is not recognized: I tried a lot of variation like ISS, ISS - ZVEZDA, only ZVEZDA, 25544 but none of the listed are working. I would like to get Elevation and Azimuth values for tracking ISS for HAM-APRS communication. Or should I just make a TLS file only containing ISS?
For example the SENTINEL-1A as Orbital class designation is working fine.
I am not using any .TLE file I assume pyorbital is trying to get current data online with Orbital.
pyorbital is awesome thank you for creating/maintaining it!
(*)Class for orbital computations.
The satellite parameter is the name of the satellite to work on and is used to retrieve the right TLE data for internet or from tle_file in case it is provided.
Expected Output
Elevation and Aziuth for ISS (or one of its specific module if that granularity makes sense)as it is in the TLE file from Celestrak.com
Actual Result, Traceback if applicable
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/main.py", line 39, in
cli.main()
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file
runpy.run_path(target, run_name="main")
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/linuxlite/.vscode/extensions/ms-python.python-2022.20.1/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "/home/linuxlite/.local/lib/python3.10/site-packages/pyorbital/from math import degrees.py", line 18, in
orb = Orbital("ISS")
File "/home/linuxlite/.local/lib/python3.10/site-packages/pyorbital/orbital.py", line 156, in init
self.tle = tlefile.read(satellite, tle_file=tle_file,
File "/home/linuxlite/.local/lib/python3.10/site-packages/pyorbital/tlefile.py", line 113, in read
return Tle(platform, tle_file=tle_file, line1=line1, line2=line2)
File "/home/linuxlite/.local/lib/python3.10/site-packages/pyorbital/tlefile.py", line 159, in init
self._read_tle()
File "/home/linuxlite/.local/lib/python3.10/site-packages/pyorbital/tlefile.py", line 200, in _read_tle
raise KeyError("Found no TLE entry for '%s'" % self._platform)
KeyError: "Found no TLE entry for 'ISS'"
Versions of Python, package at hand and relevant dependencies
Python 3.10.6
pyorbital 1.7.3
Thank you for reporting an issue !
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with pyorbital/orbital.py and the tlefile.read and Tle entry points shown in the traceback; inspect how the Orbital satellite name is matched to TLE data. Confirm the expected ISS identifier and data source, then verify that Orbital("ISS") can resolve it and that get_observer_look returns elevation and azimuth.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100