How to get .xyz/.xyzv files for Celestia

All tutorials about Celestia go in here. For Celestia itself, add-ons, textures, scripting, etc.
Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 5 months
Location: Germany

How to get .xyz/.xyzv files for Celestia

Post #1by EarthMoon » 20.09.2022, 17:12

This is a small tutorial on how to get .xyz/.xyzv files for Celestia.

Get XYZ XYZV files for Celestia.zip
Download tutorial
(1.56 MiB) Downloaded 267 times
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #2by SevenSpheres » 20.09.2022, 17:55

Why don't you post the tutorial here, instead of making people have to download it? It's just text and images.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 5 months
Location: Germany

Tutorial

Post #3by EarthMoon » 21.09.2022, 11:38

SevenSpheres wrote:Why don't you post the tutorial here, instead of making people have to download it? It's just text and images.

Good idea, I will post it here.



A tutorial to get .xyz/.xyzv files for Celestia



• 1. Go to https://ssd.jpl.nasa.gov/horizons/app.html
• 2. Set "Ephemeris Type" to "Vector Table".
1.png

• 3. Select the Target Body. I will use the Moon for example.
2.png

• 4. Choose the Coordinate Center (the reference body), for example the Earth.
3.png

• 5. Set the time span and time step size.
4.png

• 6. Set the "Table Settings" like this:
• 6.1 Set "Output Quantities" either to "1. Position components {x,y,z} only   [.xyz file]" or to "2. State vector {x,y,z,Vx,Vy,Vz}   [.xyzv file]"
• 6.2 Set the other parameters to this:
5.png

• 7. Click "Generate Ephemeris".
• 8. The result should look like this:
6.png

• 9. Save the ephemeris.
• 10. Open the generated horizons_results.txt file in any text editor.
• 11. Delete everything before and the (first) "$$SOE" line:
7.png

• 12. Delete everything after and the (second) "$$SOE" line (near the ending of the file):
8.png

• 13. Delete all the " = A.D. ####-###-## ##:##:##.#### TDB":
9.png

• 14. The file should now look like this:
10.png

• 15. Rename the file to ###.xyz or ###.xyzv (see 6.1)
• 16. The file is now ready for use with Celestia!
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)


Return to “Tutorials”