Script or DOS program to import comets

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 44
With us: 14 years 3 months
Location: Poland, Bialystok

Script or DOS program to import comets

Post #1by Limax7 » 27.12.2012, 12:17

Hi.

Why Celestia can't import comets. Maby some script or simple DOS program can do that.
Here is database of now visible comets
http://www.minorplanetcenter.net/iau/Ep ... omets.html

Can anybody do that ?
Adam Hurcewicz
Bialystok, Poland

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 1 month
Location: Hamburg, Germany

Re: Script or DOS program to import comets

Post #2by t00fri » 27.12.2012, 16:49

Limax7 wrote:Hi.

Why Celestia can't import comets.
Because this is a simple and standard scripting task.

The best bet would be to use Perl scripting which exists in all OS and is easy to learn.

By means of Perl scripts, I have imported into the standard Celestia distribution all the scientific data for binary systems (visualbins.stc, spectbins.stc) , for 10000+ galaxies ( galaxies.dsc) and for globular clusters (globulars.dsc). So if you want more comets, spent 1 day of learning Perl and write the corresponding import script. It's really not difficult and you may take my Perl scripts as guides.
Can anybody do that ?
Of course I can do that, but I have no spare time working hard on celestia.Sci.

Anyway, I think it would be an interesting project. Perhaps, one day, I'll do it for celestia.Sci.

Fridger
Image

Avatar
Topic author
Limax7
Posts: 98
Joined: 23.01.2010
Age: 44
With us: 14 years 3 months
Location: Poland, Bialystok

Re: Script or DOS program to import comets

Post #3by Limax7 » 27.12.2012, 17:01

t00fri wrote:So if you want more comets, spent 1 day of learning Perl and write the corresponding import script. It's really not difficult and you may take my Perl scripts as guides.

Some days ago I post this :
viewtopic.php?f=6&t=15719

but make final ssc file take me to much time. So I think there is some other way to do that.

Adam
Adam Hurcewicz
Bialystok, Poland

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 1 month
Location: Hamburg, Germany

Re: Script or DOS program to import comets

Post #4by t00fri » 27.12.2012, 17:41

Limax7 wrote:
t00fri wrote:So if you want more comets, spent 1 day of learning Perl and write the corresponding import script. It's really not difficult and you may take my Perl scripts as guides.

Some days ago I post this :
viewtopic.php?f=6&t=15719

but make final ssc file take me to much time. So I think there is some other way to do that.

Adam

Yes, since the scripting program is supposed to write out the .ssc or .stc or .dsc files which just takes a few seconds.

Fridger
Image


Return to “Scripting”