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

Ground longitude/latitude under a satellite (cartesian coordinates) at a specfic epoch

The script I'm wanting to develop uses the cartesian coordinates (XYZ) from a satellite, and in conjunction with the range, elevation and azimuth from a location, I then take a satellite’s orbital information and get the ground longitude/latitude…
pymat
  • 1,090
  • 1
  • 23
  • 45
1
vote
1 answer

Ecliptic coordinates of an Observer in PyEphem

I would like to have the ecliptic coordinates of a point on Earth. I can set up an observer using Pyephem: station = ephem.Observer() station.lon = '14:18:40.7' station.lat = '48:19:14.0' station.pressure = 0 station.epoch =…
nixx
  • 31
  • 3
1
vote
1 answer

How to calculate refraction-corrected RA/DEC coordinates with pyephem?

I try to convert J2000 RA/DEC coordinates of an object to the "observed position", i.e. topocentric RA/DEC coordinates including refraction effects. Following the docs (http://rhodesmill.org/pyephem/radec.html#how-the-three-positions-differ) I did…
1
vote
1 answer

Python: Printing data only when number enters or leaves interval

Currently I'm making a script that, given a set of celestial coordinates, will tell you on the next days when that point will be visible for a specific telescope. The criteria is simple, in the Horizontal Coordinate system, altitude of the object…
1
vote
1 answer

When an object observed by a satellite will be obscured by the moon/sun

I have the satellite longitude, latitude and altitude. Then I have the Ra&Decl of and distant object. I need to know the angular distance between the object and the moon/sun at a given time. import ephem sun = ephem.Sun() scraft =…
Asen Christov
  • 848
  • 6
  • 21
1
vote
1 answer

consistency between attributes (ra,dec) and (hlon, hlat)

I just start learning astronomy. I use pyephem to understand different coordinate systems such as geocentric equtorial, geocentric ecliptic, heliocentric ecliptic. In phephem, planet body such as mars has attributes (ra,dec) in geocentric equtorial,…
hjyanghj
  • 306
  • 1
  • 2
  • 10
1
vote
1 answer

Pyephem: How to compute transits?

I know there's some kind of transit function, but I have no clue how to interface with it. Could someone talk me through it? Specifically I want to find out when the ISS will pass in front of the moon (want to see if my telescope can make out the…
J Murphy
  • 91
  • 6
1
vote
1 answer

Pyephem - Variables not assigning properly?

I'm trying to set up pyephem to take a right ascension and declination, then use that to calculate a body's altitude and azimuth. However, I'm having issues assigning these traits. Here's what I do: obj = ephem.FixedBody() print (x) #x was assigned…
J Murphy
  • 91
  • 6
1
vote
2 answers

Calculate the end of sunrise/start of sunset

In PyEphem, I can calculate sunrise time. No problems. What I want is: when does the bottom of the sun appear to separate from the horizon? One obvious, but incorrect, method is when the center of the sun is at 1/2 * (sun size in degrees). Due…
Jay Wen
  • 31
  • 4
1
vote
1 answer

Pyephem failing to install after "Cleanup" stage

I ran pip install pyephem, and all text is white, then I get a white "Cleaning up...", followed by red text that reads Cleaning up... Command /usr/bin/python -c "import setuptools,…
J Murphy
  • 91
  • 6
1
vote
1 answer

How is the planetary moons coordinate system oriented in PyEphem?

Meeus defines the coordinates such that x-axis coincides with the equator of the planet and y-axis with the planet's rotational axis. For the instant 1992 December 16 at 0h UT, Meeus finds the coordinates of the four Jovian mooon to be: X …
Nabigh
  • 91
  • 6
1
vote
1 answer

Basic pyephem code

I have a very simple code to get the longitude of the sun but when I compare the output to Astrolog and Astrodienst its incorrect, there is a 13 minute difference. I have not added Observer as I think default is midnight GMT (which is what I want).…
Albert
  • 70
  • 1
  • 1
  • 10
1
vote
1 answer

Using Pyephem to calculate ISS passes

I'm trying to calculate the passes of a number of space objects from CelesTrak TLE Elements starting with the ISS because I can test it against the values from Spot The Station. So I have start with setting up the observer: self.home =…
Byte Insight
  • 745
  • 1
  • 6
  • 17
1
vote
1 answer

Comparison of PyEphem with Swiss Ephemeris library

I'm about to start a project where I need calculation of planetary ephemeris. For a long time I was considering that Swiss Ephemeris library is practically the only serious solution before I've found out about PyEphem. Now I just wonder if someone…
gour
  • 967
  • 9
  • 22
1
vote
1 answer

PyEphem Body location in degrees

I am trying to figure out how to use pyephem to get the degrees (alt and az I think) of a body or satellite. I'm going to pass that information to a motor control, so I really would like the information in 360 degree from north if possible. Or more…
brian lee
  • 25
  • 2