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
0 answers
Range rate for doppler calculation and atmospheric refraction compensation
This question is perhaps related to this one: Wrong Range Rate with Pyephem
I've just started experimenting with pyephem for the purpose of making satellite pass predictions and doppler shift calculations for radio links. I'm so new at this that I…

g0hww
- 21
- 2
2
votes
1 answer
PyEphem: What is the epoch attribute for EarthSatellite
I am using PyEphem to predict satellite passage over a point in a constellation design project.
I would answer my question by it is orbit epoch but I would like to be sure. Here is an example that rose the question at first:
What works
Here is the…

Curly
- 31
- 4
2
votes
2 answers
Swiss Ephemeris Sideral Mode with Lahiri Ayanamsha gives wrong values
I'm trying to generate the longitudes of planets. I've used the swiss ephemeris dll to do all my hard work. However to my misfortune the values generated by swiss ephemeris for the sidereal mode Lahiri Ayanamsha is way off (by around 25 minutes,…

noob Mama
- 267
- 8
- 28
2
votes
1 answer
Pyephem - Time difference between datetime.datetime and ephem.Date
Trying to convert between standard python datetime routine datetime.datetime and Pyphem routine ephem.Date sometimes there are (except the expected truncation) peculiar differences in the range of one second.
Try the example code:
#!/usr/bin/env…

Foehn
- 21
- 3
2
votes
1 answer
separation() returns huge angle
I am writing a program which goes through FITS files with photometry and looks for stars given in a .dat file.
One of the steps is computing distances between two given stars using ephem.separation()
It works well. However, from time to time…

user3018591
- 97
- 1
- 7
2
votes
0 answers
pyephem "DeprecationWarning" while setting latitude from string
I am trying to run the following (creating an observer and setting its position):
import ephem
vlt = ephem.Observer()
vlt.lat = '-24:37:38'
I get:
DeprecationWarning: PyOS_ascii_strtod and PyOS_ascii_atof are deprecated. Use PyOS_string_to_double…

Amer
- 21
- 2
2
votes
1 answer
Python satellite tracking with Orbitron, pyephem- positions not matching
In reading TLE and calculating the orbit of satellites, does PyEphem regard the earth as the sphere or as the ellipse ?

user2946944
- 41
- 2
2
votes
1 answer
How to get distance from earth center?
e = ephem.readtle(...)
e.compute('2012/02/04 07:55:00')
As far as I can see there's only e.elevation as a measure of distance which is relative to the sea level. At the moment I'm using a.elevation/1000 + 6371 to estimate the distance from the…

letmaik
- 3,348
- 1
- 36
- 43
2
votes
0 answers
How to determine parallactic angle using pyephem
How can I determine the parallactic angle of a target in pyEphem given a fixed object and an observer?
I am trying to use pyEphem to create an instrument simulator and I need to determine the rate at which the instrument rotator will be turning to…

Josh
- 56
- 3
2
votes
3 answers
How to find the angle between North and horizon for given altaz coords using pyephem?
I've got a set of many astrophotos taken with the camera on a tripod. Used a bubble level to make sure that the long side of the frame is parallel to the horizon, and I know the alt/az (and equatorial) coordinates of the center of each photo.
Now…

gerlos
- 490
- 5
- 13
2
votes
2 answers
How to calculate correct longitude and constellation of planets using PyEphem
i tried to calculate sun lat and long using PyEphem what i dont understand is when i calculate suns longitude and constellation
>>> sun = ephem.Sun()
>>> sun.compute('2011/05/04')
>>> print ephem.Ecliptic(sun).lon
43:02:58.8
so 43:02:58.8 is 13.02…

nagarajan010
- 23
- 1
- 4
2
votes
3 answers
Any chance of extending pyephem.Jupiter() to include cmlIII?
Any astronomers out there know what it would take to extend the pyephem library to enable it to calculate CMLIII for Jupiter? As of the current version it only calculates CMLI and CMLII
Thanks

Steve Berl
- 21
- 1
2
votes
2 answers
pyephem FixedObject() for given RA/Dec
I'm looking to determine the alt/az of (un-famous) stars at given RA/Dec at specific times from Mauna Kea. I'm trying to compute these parameters using pyephem, but the resulting alt/az don't agree with other sources. Here's the calculation for…

Brett Morris
- 791
- 1
- 4
- 13
2
votes
1 answer
definition of horizon in alt, az coordinate system
I have a problem in which the observer can be far above sea level. Given RA and Dec, I am trying to determine altitude and azimuth for this observer and this target. I am using Observer() for the observer, and FixedBody() for the target.
Is the…

user1813693
- 21
- 2
2
votes
1 answer
next setting is not tomorrow
trying to compute the time for Sun's next setting time, I obtain a value for tomorrow - but I'm computing while the Sun is surely above of the horizon!
m is my observing site; that's what I got on terminal:
>>> ephem.now()
2012/10/16 16:02:00
>>>…

giambro x
- 21
- 1