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
2
votes
2 answers
Python Ephem sunset and sunrise
I am trying to calculate the exact amount of daylight hours for a given day and location. I have been looking at the python module "Ephem" for the sunrise and set calculation. Here is the code below:
import ephem
California_forest =…

Jason
- 181
- 2
- 14
2
votes
0 answers
Orbitron and Pyephem has different output (Lat and Long)
I tried to use the pyephem library to get the lat, long of a particular satellite. However, when I compare this to what was outputted by Orbitron, the latitude was different. Why is this different?
Output from my code:
Lat: -50.675605
Lon:…

overmind
- 467
- 1
- 8
- 17
2
votes
1 answer
Can pyephem look more than 360 degrees past a date
I want this code to output the date of every 30 degrees of a planets movement up until the date of today, but for some reason it stops at 360 degrees. Why is the code stopping here and not going through 390 degrees, 420, 450......etc.
from ephem…

Albert
- 70
- 1
- 1
- 10
2
votes
1 answer
Pyephem calculate current solar time
I am trying to calculate the local solar time based on UTC hour and longitude. I have looked through the ephem package but was not able to identify a direct method to do so. Similar questions on this matter either evoke the calculation of fixed…

Rami
- 540
- 4
- 8
2
votes
1 answer
How can I get Skyfield to agree with the Nautical Almanac for the Sun's Declination?
Here's a sample script that calculates the sun's declination on 2016/7/23 at 00:00:00 GMT using both PyEphem and Skyfield:
import ephem
sun1 = ephem.Sun('2016/7/23 00:00:00')
dec1 = sun1.dec
print 'PyEphem Declination:',…

JoshP
- 23
- 3
2
votes
2 answers
ephem: how to get tilt angle of Earth?
I am using python's package ephem.
I can not locate function to get tilt angle between ecliptic plane and equatorial plane.
Hope some one can help me.

hjyanghj
- 306
- 1
- 2
- 10
2
votes
0 answers
Angle between moon's north node and mars in PyEphem
I am curious how to compute the angle between the Moon's north node and Mars for any given day using PyEphem. For instance, in PyEphem, one can directly compute the angle between the moon and mars with the…

wangchun
- 21
- 1
2
votes
1 answer
Coordinates reduction python
How can I calculate position (ra, dec) of star for observer at some station (longitude, latitude) on specific date and time? I need full coordinates reduction with all elements included in calculation (proper motion of star, atmospheric pressure and…

Prefect
- 153
- 1
- 1
- 7
2
votes
0 answers
outputs not matching from sgp4 in C++, pyephem and Heavens Above
I am trying to predict calculate the positions and predict passes of a LEO satellite from a TLE file.
For convenience I just take the international space station.
What I did so far, is to download the spg4 libraries sgp4 libraries for C++ and…

Bloch
- 21
- 3
2
votes
2 answers
How to read RINEX files with Python?
I'm looking for a way to read GNSS RINEX files with Python.
Most importantly I would just need to get orbital information read from a RINEX navigation file elements so that I could use PyEphem for follow-up processing. Can anybody help?

Tulse Luper
- 21
- 1
- 4
2
votes
0 answers
PyEphem installation error
Any help with installing ephem?
With this as part of script
... install ephem Downloading/unpacking ephem Downloading
ephem-3.7.6.0.tar.gz (739kB): 739kB downloaded Running setup.py
(path:/tmp/pip-build-azhohn/ephem/setup.py) egg_info for…

neandr
- 209
- 1
- 3
- 13
2
votes
1 answer
PyEphem - calculate the next ISS transit on a full moon
How can I use PyEphem to calculate the next transit of ISS in front of the full moon? I'm absolutely clueless about that.
Thanks in advance!

LucasBr
- 461
- 1
- 7
- 19
2
votes
1 answer
Are pyephem's observer coordinates in Geocentric or Geodetic lattitude?
Sort of a reference to the following:
Is pyEphem 'sublat' and 'sublong' given in Geocentric or Geodetic?
I am using a simulation of a spherical earth to geolocate terrestrial transmitters by the doppler shifts recording by orbiting spacecraft.…

Nebarnix
- 23
- 4
2
votes
0 answers
Elevation angle using PyEphem
my question is somewhat generic but I'd like to know whether anyone has developed a script that calculates the elevation angle of the satellite using RINEX files using Python, and in particular with PyEphem? I'd like to probe to see what is already…

pymat
- 1,090
- 1
- 23
- 45
2
votes
1 answer
PyEphem reporting different latitude and longitude than input values
I have used Pyephem to calculate the latitude and longitude of the sun given date, latitude and longitude of an observer at sea level.
I get results I do not understand. The code I ran follows (on Ipython notebook in windows 7):
import…

gregory
- 413
- 4
- 12