Moving the Sun

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Moving the Sun

Post #1by chris » 25.09.2006, 16:28

For those people who are always complaining that the Sun isn't at the origin in Celestia, this is for you . . .

Well, the Sun still won't be at the origin--the origin is the solar system barycenter, which usually lies outside of the Sun. There's a new custom orbit for the Sun relative to the Solar System barycenter.

I didn't yet make the modifications to nearstars.stc that will set the
solar system barycenter as the origin. Here's are the definitions you should use for the Sun in nearstars.stc:

Barycenter "Solar System Barycenter:SSB"
{
RA 0
Dec 0
Distance 0
}

0 "Sol:Sun"
{
OrbitBarycenter "Solar System Barycenter"
CustomOrbit "vsop87-sun"

SpectralType "G2V"
AbsMag 4.83

RotationPeriod 609.12 # 25.38 days
Obliquity 7.25 # correct orientation relative to ecliptic
EquatorAscendingNode 75.77 #
RotationOffset 23.00 # standard meridian
}

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #2by Cham » 25.09.2006, 19:17

HHUUURRRRRAAAA ! :D

Was about time ! Finally, accuracy won !

Now old scripts creators, do your homework ! Hehehe !


Question : the planets are orbiting what ? The Sun, or the barycenter ! Hehehe !
Last edited by Cham on 25.09.2006, 19:18, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 2 months

Post #3by Malenfant » 25.09.2006, 19:18

Sounds good to me.

How was the previous origin set for Celestia, out of curiosity. Was is something completely arbitrary?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Re: Moving the Sun

Post #4by symaski62 » 25.09.2006, 21:15

chris wrote:For those people who are always complaining that the Sun isn't at the origin in Celestia, this is for you . . .

Well, the Sun still won't be at the origin--the origin is the solar system barycenter, which usually lies outside of the Sun. There's a new custom orbit for the Sun relative to the Solar System barycenter.

I didn't yet make the modifications to nearstars.stc that will set the
solar system barycenter as the origin. Here's are the definitions you should use for the Sun in nearstars.stc:

Barycenter "Solar System Barycenter:SSB"
{
RA 0
Dec 0
Distance 0
}

0 "Sol:Sun"
{
OrbitBarycenter "Solar System Barycenter"
CustomOrbit "vsop87-sun"

SpectralType "G2V"
AbsMag 4.83

RotationPeriod 609.12 # 25.38 days
Obliquity 7.25 # correct orientation relative to ecliptic
EquatorAscendingNode 75.77 #
RotationOffset 23.00 # standard meridian
}


Solar System Barycenter <= 206.27AU Distance => sol

:wink:
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #5by chris » 25.09.2006, 21:42

Malenfant wrote:Sounds good to me.

How was the previous origin set for Celestia, out of curiosity. Was is something completely arbitrary?


Originally positions of stars had to be specified with by right ascension, declination, and parallax. Since distance is proportional to 1/parallax, positioning something at the origin requires an infinite parallax. I just worked around this by giving the Sun a very large parallax--one that put it near the origin, but not exactly on it.

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #6by Cham » 25.09.2006, 21:46

Eh ! What a "hack" that was !
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #7by chris » 25.09.2006, 21:52

Cham wrote:HHUUURRRRRAAAA ! :D

Was about time ! Finally, accuracy won !

Now old scripts creators, do your homework ! Hehehe !
Most scripts should still work fine . . . However, cel: URLs will need updating unless I implement some backward compatibility fix.

Question : the planets are orbiting what ? The Sun, or the barycenter !


The VSOP87 custom orbits for the planets are in heliocentric coordinates, so everything still orbits the Sun. But, it's possible to redefine them in barycentric coordinates if you want to use barycentric xyz or SPICE orbits.

I think the impact of the Sun not being at the origin was very much exaggerated. As far as I know, there were no real bugs attributed to the Sun being somewhere other than the origin. It would very slightly affect the positions of stars, but I don't believe any bugs were reported against this.

The main thing I like about this change is that I can observer the Sun move relative to the solar system barycenter. The dominant influence of Jupiter is clear: the center of the Sun is always displaced from the barycenter in roughly the direction of Jupiter. The displacement from the barycenter is noticeably larger when Jupiter and Saturn are aligned in the same direction. It will be a neat demonstration in educationally oriented Celestia activities.

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #8by Cham » 25.09.2006, 21:59

chris wrote:the center of the Sun is always displaced from the barycenter in roughly the direction of Jupiter.--Chris


You mean in the **opposite** direction of Jupiter ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 2 months

Post #9by Malenfant » 26.09.2006, 14:58

chris wrote:
Cham wrote:HHUUURRRRRAAAA ! :D

Was about time ! Finally, accuracy won !

Now old scripts creators, do your homework ! Hehehe !
Most scripts should still work fine . . . However, cel: URLs will need updating unless I implement some backward compatibility fix.


Is there going to be a simple way to fix the URLs? eg write a small conversion program that adds the relevant numbers to the right place in the url and then outputs the correct one?

I definitely prefer having a non-arbitrary origin, but if it can be done so that all the scripts and celURLs aren't broken then that's even better :)
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

SkyScraper
Posts: 34
Joined: 29.03.2006
With us: 18 years 7 months
Location: Romania, Bucharest

Post #10by SkyScraper » 16.10.2006, 07:39

For those people who are always complaining that the Sun isn't at the origin in Celestia, this is for you . . .

Well, the Sun still won't be at the origin--the origin is the solar system barycenter, which usually lies outside of the Sun. There's a new custom orbit for the Sun relative to the Solar System barycenter.


Whell that can be applied to other stars with planets


Return to “Ideas & News”