PyEphem provides the Python language with routines for computing the location of celestial objects like the sun, moon, and planets, as well as for any asteroids, comets, and earth satellites for which the caller can provide orbital elements. Rise, set, and transit times can be computed for any object, and basic coordinate computations are also supported.
Questions tagged [pyephem]
272 questions
3
votes
1 answer
Is this how to compute Greenwich Hour Angle with PyEphem under Python 3?
I have been using python3 and pyephem to study celestial navigation
mostly working through some calculations that would have to be done by
hand in any case.
For the sight reduction part I am trying to have pyephem output data
comparable to the…

user1867570
- 31
- 1
3
votes
0 answers
Error trapping ephem.Body.compute() for earth satellite objects
When trying to compute the following TLE, the compute results are incomplete:
FENGYUN 1C DEB
1 31034U 99025BEC 12293.69998868 .02147743 29582-2 52063-2 0 1666
2 31034 099.0270 256.6567 0044344 106.5074 254.5558 15.95183245303888
This TLE is…

AlphaPony
- 31
- 5
2
votes
1 answer
Cannot import ephem
I'm having a problem importing ephem under windows. I think it is a 32/64 bit problem.
Z:\>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more…

OddZon
- 133
- 7
2
votes
1 answer
Calculate position of star with PyEphem
How to calculate postion of stars with PyEphem on particulary date.
I writed code but it calculate only today
obs = ephem.Observer()
obs.date = "2010/12/10"
Sirrah = ephem.star("Sirrah")
Sirrah.compute(obs) …

useris
- 59
- 1
- 4
2
votes
0 answers
pyephem : mismatch position of planets with other sources
i am trying to calculate the exact degree of planets on the zodiac by pyephem but i faced with some problems. i need to extract the amounts with high accuracy . i made it better by changing Epoch value to now , but there are diffrents in…

thetan arena
- 21
- 1
2
votes
1 answer
Why the results differ between pyephem sublat and STK LLA?
import ephem
line1 = "WorldView 4"
line2 = '1 41848U 16067A 20074.82580014 -.00000094 00000-0 00000+0 0 9999'
line3 = "2 41848 97.8435 176.0145 0008992 126.7749 233.3766 15.40359612182266"
iss = ephem.readtle(line1, line2,…

andylau
- 23
- 3
2
votes
2 answers
Calculating satellite apparent magnitude
I'm trying to make an application that calculates ISS flyovers.
I figured out how to actually get the flyover, but I am struggling with figuring out how to calculate the apparent magnitude of the space station during those flyovers. I've looked at…

Nick Brown
- 41
- 5
2
votes
0 answers
Pyephem - Degree position of planets
Done some searching and can't find a direct answer (well, one that i can understand!)
I want to compute the degree (out of 360 degrees) that the planets (Sun through to Pluto) are at a given time and location. I have the below code. I want to…

Will Pollard
- 39
- 6
2
votes
0 answers
Comet magnitude calculated by PyEphem different than other resources
I'm experimenting a bit with PyEphem and I found out that the magnitudes of comets calculated with PyEphem are a bit off when you compare them with other (online) resources.
Here's the code I'm using:
import ephem
comet = ephem.readdb("C/2017 O1…

astroland
- 21
- 3
2
votes
1 answer
installing ephem with conda on python 3.6
I'm using Python 3.6 on Anaconda, and I need to use the ephem package. I used the command :
conda install -c anaconda ephem
It returns an error, saying that epecifications were found in conflict : ephem requires Python 2.6.
Is there a way I can…

Clément F
- 3,535
- 6
- 18
- 26
2
votes
1 answer
PyEphem: mag function not returning right magnitude for the Sun at specific places on Earth?
I am trying to get the apparent magnitude of the Sun at various locations on Earth using PyEphem. When I change different locations on Earth or even change the time the apparent magnitude of the Sun remains the same. This doesn't make any sense…

not_this_website
- 69
- 4
2
votes
1 answer
Install ephem on linux
Trying to install ephem on linux, python 3.4.3.
I'm trying pip install ephem and I keep getting the following error.
extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory
I tried install libastro with the software manager…

confused
- 1,283
- 6
- 21
- 37
2
votes
1 answer
Determine coordinates at conjunction times
The inferior conjunction of Venus today (while still being observable due to the northerly offset from the Sun) inspired the following research in pyEphem.
Determine the date when Venus has an inferior conjunction with the Sun. Is there a search…

Gert Gottschalk
- 1,658
- 3
- 25
- 37
2
votes
2 answers
How to verify results of Pyephem
I want to see "in my sky" how many satellites I can see.
I'm using this code:
sat_alt, sat_az, sat_name = [], [], []
observer = ephem.Observer()
observer.long = Longitude
observer.lat = Latitude
observer.date = TimeNow
HowMany = 0
print "TIME: ",…

mikesneider
- 772
- 2
- 10
- 28
2
votes
0 answers
Pyephem: calculate Chinese Solar Terms
The Chinese Solar Terms 节气 are defined by the Earth angle to the Sun, beginning with Spring Equinox defined as 0°, Summer Solstice as 90° etc. The days for some of these terms can be easily computed using the pyephem provided functions.
But there…

ludwig
- 39
- 2