question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Finding current angle between earth and other planet

See original GitHub issue

Its been a while since i used skyfield, earlier i tried to get oppositions and conjunctions using the link https://rhodesmill.org/skyfield/almanac.html#opposition-and-conjunction, is there a way to find the current angle between 2 planets or even better would be to get results for custom angles along with opposition and conjunction which is usually 0 or 180.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 20, 2020

I might be misunderstanding here completely, but I think this might be a request for a generic geometric event finder like CSPICE has:

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/gfevnt_c.html

described as “Determine time intervals when a specified geometric quantity satisfies a specified mathematical condition.”

My guess is there are other Python libraries to solve this problem and that you might even be using them to implement some of Skyfield’s other functions.

Not sure if you want to add a “here’s how to ‘goalseek’ with skyfield” section to the documentation and/or implement a skyfield-specific version of a generic Python goalseek function

0reactions
brandon-rhodescommented, Jun 6, 2020

That sounds like a good idea! Feel free to post further comments here, either with or without re-opening the issue, and I can answer questions about the behavior of your code once you’ve put some together. Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to calculate the angle formed between 2 planets?
The first step is called calculating an ephemeris. The details are beyond the scope of this answer, but NASA have a good ephemeris...
Read more >
Computing planetary positions - Stjarnhimlen.se
The phase angle tells us the phase: if it's zero the planet appears "full", if it's 90 degrees it appears "half", and if...
Read more >
Interplanetary Hohmann Transfer - A.I. Solutions
To do this, we will need to calculate two things: the current phase angle, and the phase angular velocity (the rate at which...
Read more >
Axial tilt - Wikipedia
In astronomy, axial tilt, also known as obliquity, is the angle between an object's rotational axis and its orbital axis, which is the...
Read more >
How to Estimate the Distance to the Outer Planets Yourself
But there's no maximum angle for Mars, Jupiter, or the other far planets. These planets are further out than Earth and can even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found