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 - does the right ascension calculation for the sun account for the Equation of Time

I am looking to calculate the highest precision lat lon for the subsolar point, in a particular datetime moment, as is reasonably possible using pyephem, with the help of some other library(s) if they are needed. Relevant context: Anyone who has…
1
vote
1 answer

How do I parse timestamps for skyfield?

Given a UTC timestamp (e.g. the string '2006-03-01 11:18:15.500000+11:00'), how should I convert it to a Time object in skyfield (successor of pyEphem)? For example, can skyfield use standard python datetime objects?
benjimin
  • 4,043
  • 29
  • 48
1
vote
0 answers

Calculate when a satellite horizon is overlapping target area on ground

I’m trying to write some python code to work out when the Horizon of the International Space Station is overlapping with a target area on ground. In my case I’ve chosen China. I’ve got some code that works but I am not sure if I am mathematically…
David Honess
  • 21
  • 1
  • 4
1
vote
1 answer

python and ephem install

I am new to python. Have installed python ver 3.7.3, visual studio and build tools. Have executed the command 'python -m pip install -U pip setuptools' before installing the ephem. The following message is displayed and ephem install fails: error:…
Ranjit
  • 21
  • 2
1
vote
1 answer

Ephem sunrise-1minute

I’m trying to make code run a minute before sunrise, but since updating the code (via another question) as I’ve changed time zones from GMT, I’m having trouble getting the syntax right when removing one minute. sunriselessonemin =…
Lmm Cams
  • 21
  • 2
1
vote
1 answer

Pyephem localtime issue

I have a time lapse python script that works fine in the uk, it now I live in France it’s still calculating on standard GMT time. How can I change the code so it represents my actual location? import sys import os import time import ephem #find…
Lmm Cams
  • 21
  • 2
1
vote
2 answers

Pyephem 15 minutes discrepancy when manually computing equinoxes and solstices

the code below tries to compute manually the first equinox of 2019. It returns ('d1=', 2019/3/20 21:43:48) ('d2=', 2019/3/20 21:43:49) 2019/3/20 21:58:31 that is, a discrepancy of 15 minutes with the real equinox. Is this normal? Did I forget…
Dennis
  • 11
  • 2
1
vote
1 answer

What is the ephem TLE data for the moon?

I am trying to track the position of the moon with ephem TLE data and then store it in data.csv files. However, I can't find it! The code below is an example on what I am trying to do, this is for the ISS, its the TLE numbers in "line 1" and "line…
Bakkom
  • 57
  • 2
  • 9
1
vote
0 answers

Pyephem RA & DEC to GHA & DEC

In Pyephem is there a way to list Greenwich Siderial Time GST so that I can convert Right Ascension RA to Greenwich Hour Angle GHA? >>>import ephem >>>j=ephem.Sun() …
J.Clark
  • 11
  • 1
1
vote
1 answer

PyEphem: RA and Separation questions

I am experimenting with the PyEphem library for astronomy, and trying to recreate/understand some of the basic calculations there. There is a function called separation that, given two planets and a date/time, it calculates the separation (angle)…
Luis Miguel
  • 5,057
  • 8
  • 42
  • 75
1
vote
1 answer

Does celestial body locations reported by PyEphem report apparent or actual positions?

I've been using PyEphem for a couple of things, and I was wondering if the location of celestial bodies are reported as actual or apparent positions. That is to say, does the locations factor in the time delay for information to reach us? Thanks,
Curiously
  • 25
  • 6
1
vote
1 answer

Pyephem and pypredict/gpredict differences

I am trying to use pyephem to predict satellite passes for a ground station. However, the results I get are quite different from the ones I get with pypredict and gpredict. Here is the code I wrote. import ephem import predict import datetime as…
1
vote
1 answer

In python ephem I am unable to get position's of certain constellations

import ephem date = '2018/9/20' sun = ephem.Sun() sun.compute(date) print 'Sun in', list(ephem.constellation(sun))[1] moon = ephem.Moon() moon.compute(date) print 'Moon in', list(ephem.constellation(moon))[1] mars =…
1
vote
3 answers

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, Horizons, etc.) but there are not good comparison…
SDBrown
  • 11
  • 1
1
vote
1 answer

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 Declination, while Right Ascension appears…
Curiously
  • 25
  • 6