Questions tagged [pyephem]

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.

272 questions
1
vote
1 answer

Pyephem elevation seems to be wrong

I'm trying to compute satellite positions using pyephem. For most cases it seems to provide valid data. But for ~10% space-track's TLEs its results are wrong. For example: tlelines = [ '0 SCOUT X-4 DEB', '1 00722U 63053C 18107.73853716 …
Nik
  • 420
  • 4
  • 16
1
vote
2 answers

Calculating zenith and elevation angles for satellite as seen from the ground

I have the latitude, longitude, and height for a satellite and for a ground observer. I am trying to calculate the satellite zenith angle and satellite azimuth angle, for the satellite, as seen from the ground. I'm currently trying to solve this…
gerrit
  • 24,025
  • 17
  • 97
  • 170
1
vote
1 answer

Calculate RA DEC/AZ EL of Lagrange Points seen from a location on earth

I would like to calculate the position of the five Lagrange points in the sky (L1 - L5) as RA/DEC or AZ/EL when provided with a UTC timestamp and a Lat/Lon/Alt observer location on earth. I was looking at pyephem, pyorbital and skyfield but as far…
Nils
  • 97
  • 2
  • 12
1
vote
1 answer

Is elevation (in pyephem body.compute) the geodetic height? or geocentric height?

Please clarify if elevation (in pyephem body.compute as pertaining to artificial satellites) is the geodetic height? or geocentric height? Also, are sublat and sublong geocentric or geodetic? It is not explicitly stated in the documentation. Is…
1
vote
1 answer

PyEphem: Best way to set observer time to Midnight local time from current UTC

I struggling to find an elegant way to set the ephem observer time to midnight local time. That is convert from midnight local time to ephem's UTC. ephem uses next_rising to find the next sunrise time. Problem is if the local time is already past…
mdh
  • 21
  • 4
1
vote
1 answer

pyephemeris geocentric degrees

I'm using pdf of swiss ephemeris to read helio and geo longitude of a planet: ex today venus is on 66'28 (6'28 gemini) helio. I've used this basic code: import ephem venus=ephem.Venus() venus.compute('2017/08/24') degrees=venus.hlon print ('Venere…
stefano
  • 11
  • 4
1
vote
1 answer

Instantiate a pyephem EarthSatellite from positional coordinates without a TLE

I have the position of a satellite at a given time, in altitude/latitude/longitude coordinates. I'd like to calculate the azimuth/elevation from an observer on earth (given in lat/long) to this satellite at that position. The ephem.EarthSatellite…
Chandler
  • 1,019
  • 14
  • 23
1
vote
1 answer

ephem Sidereal Time Python

The example given in Ephem works fine, what the problem is using the observers exact longitude which is not shown in the examples. Instead of using a general location of a city, I need to use the exact longitude of the observer. import ephem madrid…
1
vote
1 answer

PyEphem: what should I set the time in an object's date attribute when finding sunrise/sunset time?

The attribute: .date, so for example >>> gatech.date = '1984/5/30 16:22:56' # 12:22:56 EDT Looking at the documentation, it appears that due to astronomical changes, the location of various objects with respect to the observer changes with time…
1
vote
1 answer

how accurate are PyEphem rise and set calculations over several hundred years?

Calculating daily hours of sunlight (sunset-sunrise) and finding the maximum for each year (generally on the solstice but not always), an interesting pattern emerges. About 5 seconds of sunlight are lost each century. Is this an error factor…
rtphokie
  • 609
  • 1
  • 6
  • 14
1
vote
0 answers

Tracking sky coordinates using Python

I'm having trouble calculating the position of an object, given its current RA and DEC. I'm trying to use PyEphem to accomplish this task, but the RA and DEC I calculate are not what I expect. It seems to me that if I've set the epoch to…
Dean Shaff
  • 125
  • 2
  • 7
1
vote
1 answer

Ephem not updating real time

I have a program with a map on a canvas. When I scroll over the map it displays on the screen the longitude and latitude of where the mouse pointer is located, updated realtime. As well, when I move the mouse it show the sunrise, sunset, moonrise,…
confused
  • 1,283
  • 6
  • 21
  • 37
1
vote
2 answers

Extracting data from pyephem date string in Python

I want to extract the sunrise hour and if I do the following sun = ephem.Sun() r1 = home.next_rising(sun) print ("Visual sunrise %s" % r1) risehr = r1[10:12] print ("Rise Hour = %s" % risehr) I got the error >>'ephem.Date' object has no attribute…
Geo
  • 11
  • 3
1
vote
1 answer

Calculate ECEF satellite position from TLE

I'm calculating the position of satellities using mi location (in latitude-longitude), I want to know what satellities can I see (my receptor) from my position. For this I'm using the help of this blog, I'm using Pyphem, the library for python, and…
mikesneider
  • 772
  • 2
  • 10
  • 28
1
vote
2 answers

Why won't PyEphem calculate the elevation of manually generated objects?

I have been using PyEphem for quite a while, but since a few days (maybe weeks?) ago, one of my scripts won't work anymore. The script calculates among other things the rise and set times of asteroids, which I create from orbital elements using…
mommermi
  • 982
  • 10
  • 18