Script or DOS program to import comets

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Limax7
Posts: 78
Joined: 23.01.2010
Age: 39
With us: 9 years 4 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
Nikon D3200, Uniwersal 150/900, lorneta 20x80

Bialystok, Poland

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 17
With us: 17 years 2 months
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

Topic author
Limax7
Posts: 78
Joined: 23.01.2010
Age: 39
With us: 9 years 4 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
Nikon D3200, Uniwersal 150/900, lorneta 20x80

Bialystok, Poland

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 17
With us: 17 years 2 months
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”

Who is online

Users browsing this forum: 1 guest