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
0
votes
1 answer
Data Source for PyEphem?
I am trying to reference the use of PyEphem in my code. Their website shows that data sources are listed below "Documentation", but isn't there anymore. Does anyone know where they take their data from?
Thanks
0
votes
1 answer
Python ephem calculates sunrise and sunset one hour to early
Ephem is around one hour too early for the sunrise and sunset. Here is my code, the google prediction (which is verified myself) and the ephem prediction. It is almost around one hour different. The datetime function is working correctly, so I do…

stupidstudent
- 678
- 4
- 13
0
votes
1 answer
How to fix 'NameError: name 'imgpath' is not defined' error in Python3 and tkinter to show a picture
I want to show the current moon phase in tkinter for today or a specific date. When I run the code I get the Error: "NameError: name 'imgpath' is not defined". I understand that I have to press the button first. How can I set the variable "imgpath"…

WILWeather25
- 1
- 1
0
votes
1 answer
Is there a replacement for "readtle" in skyfield to pull each entry from TLE files?
I would like to pull and parse the data for individual satellites from the TLE files at celestrak.com using Python. I found code to do so with pyephem using "readtle" but this does not work in skyfield. How can I pull the data from the tle files…

spacelaw
- 1
- 2
0
votes
0 answers
Why can't import ephem though it has been installed (Mac)?
I have installed ephem on my computer. But I face a problem when I try to import it into my project.
x-MacBook-Pro:~ dkfloza$ pip install ephem
Requirement already satisfied: ephem in…

Danial Kosarifar
- 47
- 6
0
votes
1 answer
Difference in sun-earth distance with compute(date) and compute(observer)
In the code below, computing the earth-sun distance with pyephem agrees well with the one compute from skyfield when using sun.compute(date), but not when doing sun.compute(obs) with obs an observer on earth at the same date.
Is this because in the…

Seb
- 1,765
- 9
- 23
0
votes
1 answer
Flatlib use current date and time
Can someone help with me this?
I am using Flatlib to compute planet positions, but the code for entering the date and time for computation is fixed, so you have to update it each time.
Is there a way to using datetime.now() [or another way] to…

Will Pollard
- 39
- 6
0
votes
2 answers
pyephem to iterate through dates
m = ephem.Moon()
m.compute('2007/01/11')
j = ephem.Date('2007/01/11')
for add in range(1, 10):
print (ephem.date(j + add)), m.dec[j]
This errors out, but I was looking for suggestions.
Is there a way to iterate through dates using Pyephem? I am…
0
votes
2 answers
pyephem sun apparent-diameter
I am using PyEphem to compute Right ascension and declinaison of the sun in order to determine the astronomic azomut of a target with a theodolite.
As I cannot aim at the center aof the sun with my theodolite, I need to correct the azimut of the…
0
votes
1 answer
Position of the sun in the sky of mars or the moon
I'm interested in designing a device that will track the position of the sun from the surface of the moon or mars.
Is there a way to compute this information within the pyephem package, or a way to derive it?

theNaturalist
- 51
- 4
0
votes
1 answer
PyEphem Ephemeride Calculation Uncertainties
I'm using PyEphem to calculate the future position of the Moon to high accuracy and am interested in quantifying the uncertainties and returning them as part of my script. Is there functionality within PyEphem to return uncertainties for body…

Tatsu_Monkman
- 1
- 1
0
votes
1 answer
How do I pickle pyEphem objects for multiprocessing?
I am trying to calculate some values of satellites, the data-generation takes quite long so I want to implement this using multiprocessing.
The problem is that I get this error from pyEphem, TypeError: can't pickle ephem.EarthSatellite objects. The…

ptrck
- 79
- 2
- 8
0
votes
2 answers
Planet tilts and rotations.
We are building an Astronomical clock that tracks the planet and moon locations in the Galilain solar system ( planets out to Saturn And moons do earth and 4 moons of Jupiter. Think if an orrery that acuately tracks time.
The clock can move to…
0
votes
1 answer
Struggling to install pyephem with pip3 on a Amazon EC2 instance
I can't seem to get pyephem Python framework installed using pip3 on my EC2 instance. This is the message I get:
https://pastebin.com/erL7VhYV
I tried to install various dependencies I could find by running
yum search astro
But it didn't help. What…

eichan
- 95
- 13
0
votes
1 answer
Position of observer (lat/lon)
I'm playing around with pyephem and jplephem and I can't seem to figure out how to track the path of an observer (or given lat/lon/date) in time with these package. What I would like to do is record the position (x,y,x) over time of a supplied…

Cooper
- 13
- 1