Near Earth Objects tracking script - beta

All about writing scripts for Celestia in Lua and the .cel system
Topic author
amaury
Posts: 32
Joined: 05.03.2006
With us: 18 years 8 months
Location: paris

Near Earth Objects tracking script - beta

Post #1by amaury » 05.03.2006, 04:05

Hello to all
i'd like to improve this script before i release it on the motherlode.
Beta testing and suggestions welcomed :)

http://asolignac.free.fr/celestia/NWSv1beta.celx

NB : the script will ask you for systemaccess() permission as it outputs results to an html file and a few jpg screenshots. Everything will be created under the celestia root folder. The script needs to be ended properly (escape key) for the html file to be read back.


For better fun, be sure to use these two files or similar ones :

Dirl's comets
http://www.celestiamotherlode.net/catalog/show_addon_details.php?addon_id=788
Arlene's asteroids
http://www.celestiamotherlode.net/catalog/show_addon_details.php?addon_id=646


A small disclaimer : although this script uses "real (outdated) data", it may NOT help you foretell the fate of our planet or species. It is intended to be a toy / demonstration / educational tool. Also, keep in mind that a top view deprives the observer from a 3 dimensional perception.

Enjoy!

Topic author
amaury
Posts: 32
Joined: 05.03.2006
With us: 18 years 8 months
Location: paris

Post #2by amaury » 05.03.2006, 04:08

oh and by the way, the script outputs the closest approach to Earth, compared to all previous ones recorded by the script.

So as the script goes, you will have to wait longer and longer to get a closer approach...

Ranges and timescales can be specified in the script.

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

Post #3by selden » 05.03.2006, 11:30

You left out one detail:

What is this script supposed to do?
Selden

Topic author
amaury
Posts: 32
Joined: 05.03.2006
With us: 18 years 8 months
Location: paris

Post #4by amaury » 05.03.2006, 12:40

Fair enough...
i guess the night has been too long ;)

so, the script will use the available asteroid / comet data to record the closest approach to Earth during the simulation, marking objects with small triangles if they enter a defined range, and bigger triangles if they enter a closer range.
Whenever an object comes closer to Earth than ANY before him, its name, distance, etc will be output to an html file, and a screenshhot will be taken.

The number of screenshots should not be more than a dozen if you run the script for a couple hours...

Topic author
amaury
Posts: 32
Joined: 05.03.2006
With us: 18 years 8 months
Location: paris

Post #5by amaury » 05.03.2006, 14:27

The idea was originally to see how the NEO impact risk would show up in a closed-loop simulation of the solar system.

Now, i know the simulation and the NEO data are very approximative. It is more a demonstrative tool, to figure out distance and time scales (frequency of approaches). It also shows how objects can make "redundant" approaches after decades.

cheers
amaury

Topic author
amaury
Posts: 32
Joined: 05.03.2006
With us: 18 years 8 months
Location: paris

Post #6by amaury » 11.03.2006, 23:36

One feature i realize would be necessary is a calibration test, to adjust the timescales on slow computers... otherwise the mainloop of the script may not run a sufficient number of times per second.

This is particularly true with big asteroids.ssc files...


Return to “Scripting”