More comets for Celestia

The home for finished/released addons.
Avatar
Topic author
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 1 month
Location: Paris France

More comets for Celestia

Post #1by jogad » 11.03.2013, 18:21

Hello,

Here is a ssc file which brings 227 additionnal comets to Celestia.

The data come from the IAU Minor Planet Center
http://www.minorplanetcenter.net

The limited goal of this file is to provide the position of each comet.
I have no information about the size or the rotation of each comet.
So the size is arbitrarily fixed at a radius of 5 km and no rotation occurs.


The image above shows a view of the solar system whith the comets magnified with the magnification tool of the Lua Plugins.

You can see and reach all the comets but apparently a bug in Celestia prevents to view the labels and the orbits of the comets with hyperbolic orbits. :(

As the data source is updated on a daily basis, it is interesting to updade the ssc from time to time. :idea:

The attached file containt the ssc file + a perl script to rebuild the ssc file from the source file that you can find here:
http://www.minorplanetcenter.net/iau/Ep ... t00Cmt.txt

The source file must be downloaded in the same directory an renamed as "comets.txt"
Last edited by jogad on 23.03.2013, 15:25, edited 1 time in total.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: More comets for Celestia

Post #2by Fenerit » 12.03.2013, 02:09

Hi Jo?l: how do you feel with Perl? :D At least sleep and goto works there; in LUA are a pain...
Never at rest.
Massimo

Avatar
Topic author
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 1 month
Location: Paris France

Re: More comets for Celestia

Post #3by jogad » 15.03.2013, 22:33

Hi,

Fenerit wrote:Hi Jo?l: how do you feel with Perl? :D
I don't like it too much but it is sometime useful. :?


By the way, I have attache to this post a second version of the script. :wink:

I found another file with plenty of comets here.
http://www.celestiamotherlode.net/catal ... don_id=646
the file is "DIRL_comets_v3.02.ssc" and contains 161 comets.

:arrow: This version of the script allows to make a new ssc file with the data from the Minor Planet Center site without creating dupicates with the other files already in use.

If a comet already exists, if makes an entry with "Modify" and the existing name to update only the orbit elements of the comet.
This preserves the other elements as the radius, the texture, the model etc. of the existing comets.

But the "Modify" directive works only if the new "morecomets.ssc" is loaded after the other ssc files containing comets.
To solve this issue, my solution is to put the other ssc comets files in the celestia/data directory and to active them by writing these file in the SolarSystemCatalogs section of the celestia.cfg file.

The perl script, the source file "comets.txt" and the resulting "morecomets.ssc" file must reside in a subdirectory of the "extras" directory (e.g. celestia/extras/morecomets )

The script takes care not to make NEW duplicates in the "morecomets.ssc" file. If there is duplicates among the other ssc file they will remain and only one will be updated.

At this time, the sript is designed to test the files
- comets.ssc
- DIRL_comets_v3.02.ssc
(these files must be in the celestia/data directory)

If you have other comets ssc files you can add the files at the beginning of the Perl script.
If the naming is different you may also have to add some code to it.

Avatar
Topic author
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 1 month
Location: Paris France

Re: More comets for Celestia

Post #4by jogad » 23.03.2013, 15:29

Hi,

I realize that there were another thread that I had totally forgotten here
COMETS (ssc from MPEC updates)

I stop here this thread and join the existing one for further developments.
I have removed the attachments of the previous posts which are now out of date.


Return to “Add-on releases”