Python Forum
How do I use a whl puython distribution?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I use a whl puython distribution?
#1
I just downloaded an orbit prediction package called orbit_predictor-1.15.0.py3-none-any.whl.
How do I go about converting this file into python files?

also, when I unpack this distribution, I am sure there are many python methods available. Is there a way to
easily list all of the available methods? Then of course I hope there are descriptions as to what the methods do.
Reply
#2
change directory to where wheel has been downloaded
then from terminal window: pip install wheelname
Reply
#3
There is no need to download and install wheel(.whl) manually.
When it's on PyPi you do this.
pip install orbit-predictor
Then it download and install all automatic.
Reply
#4
I am a bit confused.
I installed ...whl and executed and received the following..
*******************************************************************
C:\PythonFiles>pip install orbit_predictor-1.15.0-py3-none-any.whl
Processing c:\pythonfiles\orbit_predictor-1.15.0-py3-none-any.whl
Collecting sgp4>=2.5
Downloading sgp4-2.21-cp38-cp38-win32.whl (155 kB)
|████████████████████████████████| 155 kB 2.2 MB/s
Collecting requests
Downloading requests-2.28.1-py3-none-any.whl (62 kB)
|████████████████████████████████| 62 kB ...
Requirement already satisfied: numpy>=1.8.2 in c:\program files (x86)\python38-32\lib\site-packages (from orbit-predictor==1.15.0) (1.21.5)
Collecting idna<4,>=2.5
Downloading idna-3.3-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB ...
Collecting charset-normalizer<3,>=2
Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.11-py2.py3-none-any.whl (139 kB)
|████████████████████████████████| 139 kB 6.4 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
|████████████████████████████████| 160 kB 6.8 MB/s
Installing collected packages: urllib3, idna, charset-normalizer, certifi, sgp4, requests, orbit-predictor
Successfully installed certifi-2022.6.15 charset-normalizer-2.1.0 idna-3.3 orbit-predictor-1.15.0 requests-2.28.1 sgp4-2.21 urllib3-1.26.11
WARNING: You are using pip version 21.3.1; however, version 22.2.2 is available.
*********************************************************************************

so, where did the files go?? It looks like I should see somewhere??

"Successfully installed certifi-2022.6.15 charset-normalizer-2.1.0 idna-3.3 orbit-predictor-1.15.0 requests-2.28.1 sgp4-2.21 urllib3-1.26.11 "

I am looking to see how to use the downloaded modues and where they are???
Reply
#5
In windows python packages are installed in your python distribution. Let's say you installed your Python in c:\Python\Python3.9. Packages installed using pip would appear in: c:\Python\Python39\Lib\site_packages.
Reply
#6
(Aug-15-2022, 01:19 AM)barryjo Wrote: I am looking to see how to use the downloaded modues and where they are???
There is no need to look at installed files.
Look at orbit-predictor Use example
Type python from command line.
Then look at examples in link over and test that import works.
from orbit_predictor.sources import EtcTLESource
from orbit_predictor.locations import ARG
If you don't get any error when Enter in these line the orbit-predictot packag works.
Reply
#7
I found the files where you say.

If I run the following example below I would get an output in x,y,z format. How would I know the units and orientation of the coordinates?
It would be nice if there were some good documentation and better examples.

I would guess that the units are in meters, z is aligned with North, x points to Lat/Long 0/0 and y to 0/90 lat/long????

Of course I would have to calculate local Az/El based on my local Lat/Long and the position vector from SGP4.
Be nice if there were a module to do this.

***********************************************************

Simplified creation of predictor from TLE lines:

In [1]: import datetime

In [2]: from orbit_predictor.sources import get_predictor_from_tle_lines

In [3]: TLE_LINES = (
"1 43204U 18015K 18339.11168986 .00000941 00000-0 42148-4 0 9999",
"2 43204 97.3719 104.7825 0016180 271.1347 174.4597 15.23621941 46156")

In [4]: predictor = get_predictor_from_tle_lines(TLE_LINES)

In [5]: predictor.get_position(datetime.datetime(2019, 1, 1))
Out[5]: Position(when_utc=datetime.datetime(2019, 1, 1, 0, 0),
position_ecef=(-5280.795613274576, -3977.487633239489, -2061.43227648734),
velocity_ecef=(-2.4601788971676903, -0.47182217472755117, 7.167517631852518),
error_estimate=None)

***********************************************************************
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  distribution fit Glaucio 1 237 Apr-07-2024, 12:30 AM
Last Post: Larz60+
  Weight Distribution 11drk9 11 696 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
Information Best distribution method inovermyhead100 0 567 Jul-19-2023, 07:39 AM
Last Post: inovermyhead100
  Coin Toss - Distribution lasek723 6 3,124 Oct-04-2020, 01:36 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020