Ultimate space simulation software

 
User avatar
evildrganymede
Space Pilot
Space Pilot
Topic Author
Posts: 128
Joined: 17 Jan 2018 12:43

Script to find distances between one world and others?

08 Aug 2020 16:32

is there any way to make a script in SE that shows (or better still, outputs) the distance between planets in a system at a certain time (e.g. the date the in-game clock is currently set at)? e.g. if I want to know how far Jupiter is from Sol, Earth, Saturn, Uranus and Neptune on a specific date? Currently I have to go to each world and then click on every other body to get the distances which is rather tedious.
 
User avatar
Mosfet
Star Engineer
Star Engineer
Posts: 1832
Joined: 24 Oct 2016 11:34
Location: Italy
Contact:

Script to find distances between one world and others?

08 Aug 2020 17:16

Outputs, not at the moment.
Are you using the Universe Map (F1)? Set the clock. Select Jupiter and center (c). zoom out until you see the planets you want. with jupiter always at the center, click on Sol, read the distance on screen, select Earth, read the distance, and so on. At least this is how I would do it.
"Time is illusion. Lunchtime doubly so". Douglas N. Adams
| My mods: http://forum.spaceengine.org/viewtopic.php?f=3&t=80 | My specs: Asus x555ub - cpu i5-6200u, ram 12gb, gpu nvidia geforce 940m 2gb vram |
 
User avatar
evildrganymede
Space Pilot
Space Pilot
Topic Author
Posts: 128
Joined: 17 Jan 2018 12:43

Script to find distances between one world and others?

08 Aug 2020 18:35

OK thanks - that seems a bit too fiddly for me though (the view is harder to control and it's full of asteroids). So far I'm just going to the object I want distances from and bringing up the solar system display at the top and clicking on each planet there and writing down the distances. I was just hoping there was some kind of automated way to do it (even to just display the distances on the screen all at once or something).
 
User avatar
JackDole
Star Engineer
Star Engineer
Posts: 1874
Joined: 02 Nov 2016 18:18
Location: Terra

Script to find distances between one world and others?

08 Aug 2020 22:57

I would go straight to Jupiter and use the 'Solar system browser' or the 'Find object' tool to select the objects.
scr01119.jpg
You can enter a desired date directly in the console with these commands: Date "2017.02.08 17:29:34.65" or Date "2017.02.08" or Date "2017"
JackDole's Universe 0.990: http://forum.spaceengine.org/viewtopic.php?f=3&t=546
JackDole's Archive: http://forum.spaceengine.org/viewtopic.php?f=3&t=419
JackDole: Mega structures ... http://old.spaceengine.org/forum/17-3252-1 (Old forum)
 
User avatar
evildrganymede
Space Pilot
Space Pilot
Topic Author
Posts: 128
Joined: 17 Jan 2018 12:43

Script to find distances between one world and others?

09 Aug 2020 16:05

yeah i'm basically doing that. I want to get the distances of all the planets relative to eachother on certain dates, and clicking them all or typing names in is too tedious! I was just hoping there was a way for a script to just display the distances for all of them at once directly on the screen at least.

So I could click on jupiter, run the script and it would list them all, then I could write them down and move to the next planet and do the same thing, etc. (then I only do it 10-12 times per date, not 100-120 times...)

This is a table of distances I made earlier, this is what I'm trying to get - unless someone knows of a better way to get it (is there a website or python script or something I could use?):
01-Jan-55    Sun    Mercury    Venus    Earth    Mars    Ceres    Jupiter   Saturn   Uranus 
Sun        0.00     0.36       0.73     0.98     1.57     2.56     5.31     9.56      18.33 
Mercury    0.36     0.00       0.47     1.11     1.63     2.84     5.38     9.2       18.68 
Venus      0.73     0.47       0.00     1.58     2.09     3.28     5.08     8.94      18.85 
Earth      0.98     1.11       1.58     0.00     0.61     1.9      6.23     9.83      18.37 
Mars       1.57     1.63       2.09     0.61     0.00     1.86     6.85     9.85      18.62 
Ceres      2.56     2.84       3.28     1.9      1.86     0.00     6.95    11.57      16.92 
Jupiter    5.31     5.38       5.08     6.23     6.85     6.95     0.00    11.55      17.04 
Saturn     9.56     9.2        8.94     9.83     9.85    11.57    11.55     0.00      27.69 
Chariklo  15.04    15.11      15.54    14.07    13.49    13.13    20.04    19.52      24.04 
Uranus    18.33    18.68      18.85    18.37    18.62    16.92    17.04    27.69       0.00 
Neptune   29.83    29.69      29.95    29.02    28.43    29.18    35.02    27.87      43.1  
Pluto     42.57    42.23      41.89    42.99    43.08    44.88    42.53    33.53      46.05 
Haumea    46.05    46.2       45.97    46.79    47.32    46.62    41.4     50.22      39.29 
Make-Make 52.39    52.67      52.63    52.83    53.25    51.88    48.76    59.64      38.27 
Eris      92.15    91.85      91.84    91.79    91.4     92.94    95.83    94.49     109.46 
Sedna     77.47    77.42      77.76    76.56    75.96    76.23    82.7     77.09      85.39 
 
User avatar
JackDole
Star Engineer
Star Engineer
Posts: 1874
Joined: 02 Nov 2016 18:18
Location: Terra

Script to find distances between one world and others?

10 Aug 2020 09:50

You can use WolframAlpha and enter a question like this: 'Distance from Jupiter to Saturn at 2030.08.01'
WA1.jpg
You can try to get WolframAlpha to make something like a list, but I haven't figured out how to get WolframAlpha to make a list relative to a planet other than Earth. I don't know if that's even possible.
WA2.jpg
JackDole's Universe 0.990: http://forum.spaceengine.org/viewtopic.php?f=3&t=546
JackDole's Archive: http://forum.spaceengine.org/viewtopic.php?f=3&t=419
JackDole: Mega structures ... http://old.spaceengine.org/forum/17-3252-1 (Old forum)
 
User avatar
evildrganymede
Space Pilot
Space Pilot
Topic Author
Posts: 128
Joined: 17 Jan 2018 12:43

Script to find distances between one world and others?

10 Aug 2020 10:20

At least that first option agrees with what Space Engine says so that's good. But yeah unfortunately without a list that's no use to me.

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 1 guest