pyorbital cruft, wont work
parent
f59617bc77
commit
72fdf7b902
19
README.md
19
README.md
|
@ -149,6 +149,9 @@ sudo apt update
|
|||
sudo apt install python3-pip
|
||||
# Many ways to do python setup, here is one:
|
||||
pip3 install --upgrade --user pip
|
||||
# Make sure your path includes `~/.local/bin`, if not, add it.
|
||||
which pip
|
||||
# Should be ~/.local/bin/pip
|
||||
pip install --user -r requirements.txt
|
||||
```
|
||||
|
||||
|
@ -169,6 +172,22 @@ Crufty bad way to do it, example:
|
|||
sudo cp -a extras/galileo-gnss/ /usr/share/celestia/extras-standard/
|
||||
```
|
||||
|
||||
# Issues
|
||||
`pyorbital` doesn't support geostationary orbits.
|
||||
It gives the error:
|
||||
`Deep space calculations not supported`
|
||||
|
||||
I thought that was what `pyorbital` was for. It is mentioned in a
|
||||
bug report, but not in the docs. Hmm.
|
||||
|
||||
See issue:
|
||||
|
||||
* https://github.com/pytroll/pyorbital/issues/71
|
||||
|
||||
```
|
||||
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.
|
||||
```
|
||||
|
||||
# License / Copyright
|
||||
Upstream sources under their respective copyrights.
|
||||
|
|
30
tle2ssc
30
tle2ssc
|
@ -7,4 +7,32 @@
|
|||
# Example:
|
||||
# tle2ssc foo-tle.txt
|
||||
|
||||
import pyorbital
|
||||
import os
|
||||
os.environ['PPP_CONFIG_DIR'] = './config/'
|
||||
|
||||
from pyorbital import tlefile
|
||||
from pyorbital import orbital
|
||||
from pyorbital.orbital import Orbital
|
||||
from datetime import datetime
|
||||
|
||||
now = datetime.utcnow()
|
||||
|
||||
tle = tlefile.read('GSAT0206', 'extras/galileo-gnss/galileo.txt')
|
||||
|
||||
#print(pyorbital.tlefile.SATELLITES)
|
||||
#print(orbital.Orbital.get_position)
|
||||
|
||||
satname=tle.platform
|
||||
satline1=tle.line1
|
||||
satline2=tle.line2
|
||||
satinclination=tle.inclination
|
||||
|
||||
orb = Orbital(satname)
|
||||
|
||||
print('Satellite name: ', satname)
|
||||
print('Line one of TLE:')
|
||||
print(satline1)
|
||||
print('Line two of TLE:')
|
||||
print(satline2)
|
||||
print('Inclination: ', satinclination)
|
||||
|
||||
|
|
Loading…
Reference in New Issue