Adding a comet

General discussion about Celestia that doesn't fit into other forums.
Topic author
Kostko

Adding a comet

Post #1by Kostko » 09.11.2003, 14:08

I would like to add a comet to Celestia. It is C/1748 H1 and I have the following data for it:

Code: Select all

C/1748 H1
T 1748 Apr. 29.309 TT                   Maraldi, Mem. Acad. Paris 1748, 232

q   0.84067              (2000.0)            P               Q
                   Peri.   17.828       -0.547236       +0.106836
                   Node   236.381       -0.836441       -0.105337
e   1.0            Incl.   94.535       -0.029983       +0.988681
From 20 observations 1748 May 10-June 30.


but i don't know how to add it :P

Topic author
Kostko

Post #2by Kostko » 10.11.2003, 13:53

so nobody knows ? :(

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #3by selden » 10.11.2003, 15:05

The problem is doing the right thing for parabolic orbits.
If you're willing to "fake it" with an eccentricity of 0.9999, you might take a look at the (incomplete) Web page http://www.lns.cornell.edu/~seb/celestia/transforming_ephemeris.html

Does this help?
Selden

Topic author
Kostko

Post #4by Kostko » 10.11.2003, 15:46

well, by faking (e = 0.9999) i have generated the folowing file:

Code: Select all

"C/1748 H1 Hallerstein" "Sol"
{
        Class "comet"
        Texture "asteroid.jpg"
        Mesh "asteroid.cms"
        Radius 20

        EllipticalOrbit
        {
                Period 770793.998
                PericenterDistance 0.84067
                Eccentricity 0.9999
                Inclination 94.535
                AscendingNode 236.381
                ArgOfPericenter 17.828
                MeanAnomaly 0.0
                Epoch 2359622.8
        }
}


is this correct ? because now if i select the "Celestian browser" the comet is in the list but if i right-click it i get an empty popup menu ??? :roll:

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #5by granthutchison » 10.11.2003, 16:48

It seems to work fine for me - I just pick the comet out of the Solar System Browser and go to it.
The plotted orbit is horrible (too extreme for Celestia's usual line segments) but the comet itself behaves nicely.

Grant

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #6by selden » 10.11.2003, 16:55

"It works fine for me."

I did a cut-and-paste of your orbital element code into a file named
COMET.SSC and was able to use the solar system browser to goto it. The right-click mouse menu has all of the usual items listed:

Code: Select all

C/1748 H1 Hallerstein
___________________________
GoTo
Follow
SyncOrbit
Info
Mark


"Info" doesn't work because nineplanets.org doesn't have a Web page for this comet. The other menu items work for me, though.
Selden

Topic author
Kostko

Post #7by Kostko » 10.11.2003, 19:16

well, i have the 1.3.0 version with Qt/KDE interface emerged via gentoo portage... and i don't see anything in the popup menu -- might this be a bug ? :P

Topic author
Kostko

Post #8by Kostko » 10.11.2003, 19:26

oh, i can see the menus if i right click the sun and select Planets -> C/1748 H1 Hallerstein :)

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #9by selden » 10.11.2003, 19:31

That's why it's best to say what operating system and version you are using.
I'm using Windows XP Pro, sp1. Its user interface is very different from the Linux user interface.
Selden

Topic author
Kostko

Post #10by Kostko » 10.11.2003, 19:36

the only thing that still bothers me is the comet's orbit (as granthutchison mentioned before) - it looks really wierd :P is it any better in the 1.3.1 version ?

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #11by granthutchison » 10.11.2003, 20:08

Kostko wrote:the only thing that still bothers me is the comet's orbit (as granthutchison mentioned before) - it looks really wierd :P is it any better in the 1.3.1 version ?
No, I'm using 1.3.1pre11. The line segments Celestia constructs the orbit from seem to be based on the distance travelled in some fraction of the orbital period, since the aphelion end is well drawn, whereas the perihelion is horrible.

Grant

Topic author
Kostko

Post #12by Kostko » 11.11.2003, 16:25

granthutchison wrote:No, I'm using 1.3.1pre11. The line segments Celestia constructs the orbit from seem to be based on the distance travelled in some fraction of the orbital period, since the aphelion end is well drawn, whereas the perihelion is horrible.

Grant


will this be fixed in the future versions of Celestia? also, there could be support for parabolic orbits... :roll:

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #13by JackHiggins » 11.11.2003, 21:05

Just a thought- but wouldn't you be better off with an xyz file for hyper/parabolic orbits? Since it's only passing through the Solar system once you don't need the actual orbit data...? That's what i'd do if I wanted orbit data for that type of object anyways...
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #14by granthutchison » 11.11.2003, 21:45

JackHiggins wrote:Just a thought- but wouldn't you be better off with an xyz file for hyper/parabolic orbits?
Seems a hell of a lot of work to derive an xyz that isn't particularly informative to look at, when you could make a simple orbit definition.
The hyperbolic approximation for the above comet (which I prefer because it doesn't create a closed orbit) is:

Code: Select all

"C/1748 H1 Hallerstein" "Sol"
{
        Class "comet"
        Texture "asteroid.jpg"
        Mesh "asteroid.cms"
        Radius 20

        EllipticalOrbit
        {
                Period 770793998               # [q/(e-1)]^1.5
                PericenterDistance 0.84067
                Eccentricity 1.000001
                Inclination 94.535
                AscendingNode 236.381
                ArgOfPericenter 17.828
                MeanAnomaly 0.0
                Epoch 2359622.8
        }
}
Isn't that more compact, informative, and easier to derive from the original parameters?

Admittedly, the concept of a "Period" for a hyperbolic orbit is distinctly dodgy - what you have to substitute is the inverse of the mean motion. It would make more sense if Celestia accepted a MeanMotion parameter as an alternative to the Period (just as it accepts a PericenterDistance instead of a SemiMajorAxis). This would also solve the problem with parabolic orbits - you can't enter an infinite Period, but you could set MeanMotion equal to zero.

Grant

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #15by selden » 11.11.2003, 22:16

Grant,

So how does one actually determine the "Mean Motion" for a hyperbolic orbit?

I haven't been able to find any definitions which make any sense for a hyperbola. i.e. they assume a closed orbit.
Selden

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #16by granthutchison » 11.11.2003, 22:32

selden wrote:So how does one actually determine the "Mean Motion" for a hyperbolic orbit?
The calculation is symmetrical with the mean motion for an ellipse, which (as you know) goes:

n = sqrt(G[M+m]/a^3) ... elliptical mean motion

where n is in radians per second if the other constants and parameters are in SI units. The semimajor axis for a hyperbola is a negative quantity, however, since it's calculated from the same equation as for an ellipse:

a = q/(1-e)

So for a hyperbola another minus sign intrudes to protect us from the horrors of the square root of a negative number:

n = sqrt(-G[M+m]/a^3) ... hyperbolic mean motion


Here is a nice brief reference document on the topic.

Grant

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #17by selden » 11.11.2003, 22:57

Selden

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #18by granthutchison » 11.11.2003, 23:37

Do you think it's worth mentioning (on your page) that n is in radians for the equations given? Since Celestia works in degrees, this might cause confusion if not explained.

Grant

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #19by JackHiggins » 12.11.2003, 00:14

granthutchinson wrote:Seems a hell of a lot of work to derive an xyz that isn't particularly informative to look at,
I could go into Horizons Telnet, set up the xyz, ftp download it, convert it to celestia format & upload it to my site in 15 minutes, if I needed to!

Isn't that more compact, informative, and easier to derive from the original parameters?

I suppose it is yeah really- but I guess it's just that I myself prefer xyz's rather than ssc's for this type of thing... :) I'm more interested in what the trajectory "looks like" rather than the elements you know? Obviously if it's an asteroid or moon i'd use an ssc though.
- Jack Higgins

Jack's Celestia Add-ons

And visit my Celestia Gallery too!

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #20by granthutchison » 12.11.2003, 00:23

JackHiggins wrote:I could go into Horizons Telnet, set up the xyz, ftp download it, convert it to celestia format & upload it to my site in 15 minutes, if I needed to!
Still seems like a hell of a lot of work ... I can copy the elements straight into an ssc in under two minutes. Leaves me time to boil a kettle and have my feet up with a cuppa while you're still surging around the place. :wink:

Grant


Return to “Celestia Users”