sun eclipse script: what am I doing wrong?

All about writing scripts for Celestia in Lua and the .cel system
Topic author
hermans
Posts: 3
Joined: 28.03.2005
With us: 19 years 7 months
Location: Gent (Belgium)

sun eclipse script: what am I doing wrong?

Post #1by hermans » 15.04.2005, 13:10

I want to simulate the total sun eclipse of 1999 Aug 11th, as seen in the north of France. I wrote a script, but if I set the starting time a rather long time before the eclipse starts, the simulation doesn't give a total eclipse. If I set the starting time later, the simulation seems to be correct.
Both cel-scripts can be found on
http://users.pandora.be/herman.serras/celestia/
Thanks.
Herman

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

Post #2by symaski62 » 15.04.2005, 16:47

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.

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Post #3by cpotting » 17.04.2005, 15:36

Herman,

It appears that the cause of your problem is that, after arriving at the desired lat/long. the scripts then use follow{} to stay near Earth. follow{} keeps the observer in the same location over Earth relative to the universe, but the Earth still turns beneath the observer.

The first scripts start at a time close to the eclipse, so that by the time that totality is to be seen, the Earth has not rotated much and the observer is still near the the desired location, close enough to see totality.

The second script starts at a much earlier time, and by the proper time, Metz has rotated well away from where the observer is and so totatility is missed.

Try the following, replace the follow { } after the the gotolonglat{} with synchronous { } (which keeps the observer rotating with the Earth), and add track { object "Sol" } after the center{} command. This should do the trick.
Clive Pottinger
Victoria, BC Canada

Topic author
hermans
Posts: 3
Joined: 28.03.2005
With us: 19 years 7 months
Location: Gent (Belgium)

Post #4by hermans » 19.04.2005, 07:45

Hallo Clive,
Thans for your help. You gave me the solution to a problem I struggled with for a long time.
Herman

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Re: sun eclipse script: what am I doing wrong?

Post #5by Adirondack » 19.04.2005, 10:52

hermans wrote:I want to simulate the total sun eclipse of 1999 Aug 11th, as seen in the north of France.
Why don't you simply use this:
http://www.celestiamotherlode.net/catalog/show_addon_details.php?addon_id=90?
You could have spared yourself a lot of work. :wink:

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)


Return to “Scripting”