Relative Planet Distances: Find Date/Start/Destination Distances

  • Context: High School 
  • Thread starter Thread starter iamsomeguy
  • Start date Start date
  • Tags Tags
    Orbital
Click For Summary

Discussion Overview

The discussion revolves around finding resources for calculating relative distances between planets in the solar system at specific times. Participants seek tools or methods to input a date and starting planet to determine the distance to another celestial body, including planets and moons.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant requests resources for calculating distances between planets for specific dates and locations.
  • Another participant suggests using an Excel macro package for planetary position calculations, providing a link to the resource.
  • A different method involves using the XEphem software for astrometric calculations, with a note on its compatibility with Unix and Windows systems.
  • Participants mention using JPL Horizons to obtain distances by sending an email with specific formatting instructions for data retrieval.
  • One participant shares a link to a program they created that simplifies the email process for JPL Horizons, allowing users to select from a list of solar system objects.
  • Concerns are raised about the functionality of the provided link to the program, with one participant unable to access it.
  • Participants discuss the formula for calculating 3D distances, confirming its correctness while clarifying how the data from Horizons relates to the calculation.
  • One participant notes that the spreadsheet resource lacks Earth, prompting a discussion about the completeness of the provided resources.

Areas of Agreement / Disagreement

Participants express appreciation for the resources shared, but there is no consensus on the accessibility of the links provided or the completeness of the data available. Multiple methods for calculating distances are discussed, indicating a variety of approaches without a definitive agreement on the best solution.

Contextual Notes

Some participants express uncertainty about their mathematical skills and the completeness of the resources mentioned. There are also mentions of potential issues with accessing online tools, which may affect the usability of the suggested methods.

Who May Find This Useful

This discussion may be useful for individuals interested in astronomy, particularly those looking to calculate distances between celestial bodies or seeking software tools for astrometric calculations.

iamsomeguy
Messages
5
Reaction score
0
Is there a resource showing relative distances between the planets charted for different times of the year?

Specifically, I'm looking for tables or software where I can type in a date, and a starting location, say Mars, and see the distance to a selected body in the solar system, say Jupiter.

For example:
I can select my starting location to be Venus, my date to be March 10, 2005 and my destination to be Saturn. Then it will give me the distance between the two.

Thank you.
 
Astronomy news on Phys.org
Welcome to PF, iamsomeguy.

I spent some time looking on the web, but couldn't find any sites that already do exactly what you're looking to do. Fortunately, it's really not all that complicated. The hard part is simply finding the data. First, I'll give you three different methods for finding such data:

1) Here's a nifty little Excel macro package that can calculate the positions of the planets. You just plug the macros into Excel, then use simple functions to perform the calculations. http://www.xylem.f2s.com/kepler/astrofnc.html

2) I use a wonderful little program called XEphem for astrometric calculations. XEphem produces decent star charts, but its real value is its flexibility in getting data into or out of it. It's free software, but the downside is that it's a Unix program. If you're using Windows, you can still use XEphem, but you'll need some technical savvy. You can first install the Cygwin package (which provides a Unix-like environment for Windows), then compile XEphem on top of Cygwin. http://www.clearskyinstitute.com/xephem/

If you're willing to pay money for a program, I believe two of the most popular packages, Starry Night Pro and TheSky, are both easily capable of making these calculations.

3) You can calculate the numbers yourself with a calculator or small computer program, using some of the algorithms detailed at these websites:

http://www.stjarnhimlen.se/comp/tutorial.html
http://www.stjarnhimlen.se/comp/ppcomp.html

You can use any of the three methods above to get three spherical coordinates for each planet: the heliocentric latitude, longitude, and distance. With these coordinates, it's a simple matter to calculate distances.

I don't know your level of math or computer skills, so let me know if you need additional help.

- Warren
 
Last edited by a moderator:
You can get the distances between any 2 solar system objects, including all planets, most moons, hundreds of thousands of asteroids & comets, and lots of spacecraft by sending an e-mail to JPL Horizons at the following address:
horizons@ssd.jpl.nasa.gov

put the word job in the subject line

and a modified version of this in the body:

!$$SOF
EMAIL_ADDR=''
START_TIME = '2029-Apr-01 00:00:00'
STOP_TIME = '2029-Apr-01 00:00:01'
TABLE_TYPE = 'Vector'
REF_PLANE = 'Ecliptic'
CENTER = '@010'
COMMAND='199'
!$$EOF


Change your start time and stop time to whatever you want. Notice that stop time is 1 second more than start time.

in Center =
you need the @ sign, then put in an object id

in Command =
you just need the object id

both need to be in single quotes

Object id list:

010: Sun
199: Mercury
299: Venus
399: Earth
etc,ect...
999: Pluto

301: Earth Moon
401 & 402: Mars moons
501-5xx: Jupiter Moons, etc

For a complete list, visit the JPL Horizons web page.

So in the above example, I asked for Mercury with respect to the Sun. Horizons automated system took less than 20 seconds to send me a reply e-mail that contained the following data:

*******************************************************************************
$$SOE
2462227.500000000 = A.D. 2029-Apr-01 00:00:00.0000 (CT)
3.983419164516005E+07 2.717340591298079E+07 -1.432368585167380E+06 -3.700246350807901E+01 4.235721524755920E+01 6.855282109693581E+00
1.609151534147640E+02 4.824114937165917E+07 -6.898523657281064E+00
$$EOE
*******************************************************************************


Notice the numbers I boldfaced. They are the x-component of the distance, the y-component of the distance, and the z-component of the distance expressed in kilometers. The next 3 numbers are velocity components.

from these numbers, you can come up with a distance
[tex]d=\sqrt {x^2+y^2+z^2}[/tex]
which equals 48241149.3716592 kilometers in the above example.
 
tony,

Excellent resource! Thank you!

- Warren
 
chroot said:
tony,

Excellent resource! Thank you!

- Warren
Thanks.

Here's a link to a program I wrote that creates the text of the e-mail for you. You can select from almost 200 solar system objects in the dropdown lists so you don't have to refer to things by their ID numbers.

Ignore page 2 of the calculator (unless you use Orbiter). It wants you to paste the reply e-mail into it, then it searches it for the data it needs to create output that can be used in the program Orbiter -- Space Flight Simulator to properly position the object.

But for this purpose, its still easier since it gives you lists, and computes the stop date for you.

orbitsimulator.com/orbiter/cfgData.exe
 
Thank you all for your help.

Tony, the link you provided (orbitsimulator.com/orbiter/cfgData.exe) doesn't seem to work. I am also unable to get to the site by it's IP (207.150.192.12). Is your server down?

It's been a long time since I did any real math. For 3d distances isn't it D=SQRT((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2)

Also, I noticed the spreadsheet, an excellent resources btw, doesn't have Earth on it :smile:
 
iamsomeguy said:
Thank you all for your help.

Tony, the link you provided (orbitsimulator.com/orbiter/cfgData.exe) doesn't seem to work. I am also unable to get to the site by it's IP (207.150.192.12). Is your server down?

It's been a long time since I did any real math. For 3d distances isn't it D=SQRT((x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2)

Also, I noticed the spreadsheet, an excellent resources btw, doesn't have Earth on it :smile:
Your formula is right, but the data from Horizons is actually giving you x1-x2, ie position x of the sun - position x of mercury, so that part is done for you. Or you could look at it like position x,y,z sun (or whatever object has the @ sign in front of its ID number) is always 0,0,0, so the position for mercury is 0- xyz positions for mercury. The - signs go away as you square them.

The link seemed to work for me. I just tried it. Try it again. Maybe the server was down at that moment or slow. Maybe your browser's security levels prevent you from downloading executables.
 
Thank you.

The resources provided are incredible and I'm grateful for all your help.

And, I give thanks for Excel :smile:
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 24 ·
Replies
24
Views
4K