Creating a xyz file.

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
drewpa13
Posts: 2
Joined: 09.07.2006
With us: 18 years 4 months

Creating a xyz file.

Post #1by drewpa13 » 09.07.2006, 22:47

Hello. I would like to know how to create an xyz file. For example, the orbit of a moon between Uranus and Pluto. I created a fictitious moon using the information below but I am not sure how to convert it to an xyz file. I accessed Horizons through telnet and I know how to receive existing coordinates.

Code: Select all

"Algernon" "Sol/Earth"
{
Class "moon"   
Texture "mars.*"
   BumpMap "marsbump.*"
   BumpHeight 3.5
   Radius   1737.53
   # Oblateness 0.002
RotationPeriod    1000.0

   InfoURL "http://www.nineplanets.org/luna.html"

   #SampledOrbit   "algernon.xyz"

   EllipticalOrbit {
      Period           27.321661
      SemiMajorAxis    9384400
      Eccentricity     0.054900
      Inclination      5.15
   }

   

   Albedo           0.12
}



Thank you.

RocketMan@JSC
Posts: 43
Joined: 29.01.2005
With us: 19 years 9 months

Post #2by RocketMan@JSC » 10.07.2006, 01:53

Generally xyz files are not used for planets or moons. Your best bet is to stick with the orbit definition.

Becaused you asked though, the xyz definition is the x,y, and z components of the bodies position vector in kilometers and is J2000 inertial relative to the body it orbits.

The format is:

julian date <spaces> x <spaces> y <spaces> z

Topic author
drewpa13
Posts: 2
Joined: 09.07.2006
With us: 18 years 4 months

Post #3by drewpa13 » 10.07.2006, 03:52

I see. Thank you very much.


Return to “Development”