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.

pyephem
Filter by
Sorted by
Tagged with
1 vote
3 answers
432 views

Confusion with using dec/ra to compute sub-lunar location

I have a need to compute the apparent azimuth and elevation angles as well as the sub-lunar lat/lon for a given date/time. The az/el angles I get generally agree with other sources (MoonCalc.org, ...
SDBrown's user avatar
  • 11
1 vote
1 answer
393 views

PyEphem: Problem converting negative angles by parsing the string representation

I've been using PyEphem to play around with the motion of planets relative to a certain position on Earth. However, I notice sometimes that the results I get from PyEphem appear non-continuous for ...
Curiously's user avatar
0 votes
1 answer
444 views

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 ...
Will Pollard's user avatar
1 vote
1 answer
198 views

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 ...
Nik's user avatar
  • 430
1 vote
2 answers
3k views

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 ...
gerrit's user avatar
  • 25.2k
0 votes
2 answers
106 views

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 ...
Juantanamo's user avatar
2 votes
0 answers
901 views

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 ...
Will Pollard's user avatar
-1 votes
1 answer
1k views

PyEphem - illuminated fraction of the Moon calculation

How can I calculate the illuminated fraction of the Moon using Python3 ? Date = datetime.date.today()
TawnyOwl's user avatar
0 votes
2 answers
53 views

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 ...
Jacques Beilin's user avatar
0 votes
1 answer
46 views

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 ...
theNaturalist's user avatar
1 vote
1 answer
716 views

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 ...
Nils's user avatar
  • 97
0 votes
1 answer
67 views

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 ...
Tatsu_Monkman's user avatar
3 votes
1 answer
75 views

How can I track the Tesla Roadster in Pyephem?

As you may be aware, SpaceX launched a Tesla Roadster into space, and it is now orbiting the sun. https://en.wikipedia.org/wiki/Elon_Musk%27s_Tesla_Roadster How can I track this in Pyephem? You can ...
J Murphy's user avatar
1 vote
1 answer
219 views

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 ...
user9723864's user avatar
5 votes
1 answer
2k views

Efficient way to propagate satellite catalog over time

Problem statement I need to propagate the entire catalog of recent TLEs (need a free account to view) from space-track.org using skyfield or similar. There are typically 15k-16k TLEs in the list. I ...
Engineero's user avatar
  • 12.6k
0 votes
1 answer
193 views

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, ...
ptrck's user avatar
  • 79
1 vote
1 answer
771 views

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 ...
mdh's user avatar
  • 21
0 votes
2 answers
107 views

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 ...
Don Elledge's user avatar
0 votes
1 answer
141 views

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 ...
eichan's user avatar
  • 95
0 votes
1 answer
366 views

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 ...
Cooper's user avatar
  • 13
2 votes
0 answers
123 views

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:...
astroland's user avatar
0 votes
1 answer
1k views

Longitude of lunar nodes using Skyfield

I am trying to find out the longitude of ascending/descending moon nodes using Skyfield but unable to find any reference in documentation. Is it possible? Also do any of the JPL Files provide this ...
Prabhash's user avatar
1 vote
1 answer
175 views

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(...
stefano's user avatar
  • 11
0 votes
1 answer
274 views

Uncertainty of sun-earth distance in Pyephem

I wonder if anybody ever has assessed the uncertainty of the sun-earth distance calculations of pyephem? Since it might be used as an input to other calculations, this would be of relevance for ...
Staty's user avatar
  • 13
0 votes
0 answers
3k views

Downloading, Installing, Importing libraries in Spyder for Windows 10

I am trying to run PyEphem on Spyder. I am extremely new to Python and libraries in general. Currently it just says that I'm running Spyder in Python 2.7. 1) I would like to run the most up to ...
a_here_and_now's user avatar
2 votes
1 answer
1k views

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 : ...
Clément F's user avatar
  • 3,765
1 vote
1 answer
231 views

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 ...
Chandler's user avatar
  • 1,070
-2 votes
1 answer
296 views

PyEphem: Time mismatch when calculating angle from time of the sun and then time from angle

This script is supposed to get the transit time, get the angle of the transit time, and then get the time when the angle is reached. The two print statements I gave should give equivalent outputs. ...
JobHunter69's user avatar
  • 1,989
1 vote
1 answer
2k views

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 ...
Ray Roberts's user avatar
3 votes
1 answer
411 views

PyEphem: How do I calculate the lowest altitude of the sun (largest angle the sun will reach below the horizon)?

Depending on the seasons, it looks like the sun will never go lower than a certain angle with respect to the horizon at some areas. Is there a way in PyEphem to calculate the lowest possible angle at ...
not_this_website's user avatar
0 votes
1 answer
571 views

PyEphem: AlwaysUpError for the Sun occurs in a location where this shouldn't happen

import ephem rwth = ephem.Observer() rwth.lat = '50.8' rwth.long = '6.1' rwth.horizon = '-18' rwth.next_setting(ephem.Sun()) This will result in an error Traceback (most recent call last): File "...
not_this_website's user avatar
1 vote
1 answer
108 views

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 ...
not_this_website's user avatar
1 vote
1 answer
250 views

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 ...
rtphokie's user avatar
  • 647
2 votes
1 answer
62 views

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 ...
not_this_website's user avatar
1 vote
0 answers
111 views

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 ...
Dean Shaff's user avatar
1 vote
1 answer
142 views

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 ...
confused's user avatar
  • 1,291
2 votes
1 answer
1k views

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 ...
confused's user avatar
  • 1,291
1 vote
2 answers
1k views

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 ...
Geo's user avatar
  • 11
2 votes
1 answer
363 views

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 ...
Gert Gottschalk's user avatar
0 votes
1 answer
798 views

how can i calculate distances with pyephem?

hi i need a little help if any of you know how to calculate the distance of a coordinates and a satellite projection, i mean, when i predict the path of the satellite i need to know what is the ...
Gring's user avatar
  • 1
2 votes
2 answers
110 views

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 ...
mikesneider's user avatar
3 votes
0 answers
160 views

Problems installing Pyephem on Synology DSM

I'm trying to install Pyephem onto my Synology Box, which is running DSM6, and have run into some problems concerning wheel. I have installed pip etc so have: Installing collected packages: pip, ...
Byte Insight's user avatar
1 vote
1 answer
5k views

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 ...
mikesneider's user avatar
0 votes
1 answer
490 views

PyEphem: How to test if an object is above the horizon?

I am writing a Python script that gives basic data for all the planets, the Sun and the Moon. My first function divides the planets between those that are above the horizon, and those that are not ...
eichan's user avatar
  • 95
2 votes
0 answers
116 views

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 ...
ludwig's user avatar
  • 39
0 votes
1 answer
426 views

PySolar issues without timezone

I am trying to find the solar zenith angle for data sets throughout the United States. The issue I am having is that my data set timestamp does not give me the time zone it is located in. Here is an ...
Jason's user avatar
  • 181
2 votes
2 answers
1k views

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: ...
Jason's user avatar
  • 181
2 votes
0 answers
84 views

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? ...
overmind's user avatar
  • 467
1 vote
2 answers
188 views

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,...
mommermi's user avatar
  • 1,022
2 votes
1 answer
62 views

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 ...
Albert's user avatar
  • 70