Asteroid request: Version 1.4.1

General discussion about Celestia that doesn't fit into other forums.
Topic author
srosenow_98
Posts: 18
Joined: 18.07.2007
With us: 17 years 4 months
Location: Shelton, Washington

Asteroid request: Version 1.4.1

Post #1by srosenow_98 » 18.07.2007, 06:19

Hello,

This is my first post, and I hope I've placed it in the right forum.

I was downloading some add-on files for Celestia today and decided I'd enrich the emptiness inbetween Mars and Jupiter with the asteroid field available from the Motherlode. After downloading it, I followed the unzip and install directions and immediately ran into a problem.

When the splash screen would load at the beginning, Celestia would freeze and become unresponsive when trying to load the *SSC file for the asteroid field I'd just installed.

I have a pretty stout system and Celestia just stalls when it tries to load that file.

Is there a way, possibly, to break up that single file into a bunch of smaller ones? I've tried doing that using Microsoft Word and it freezes trying to process 8,000+ pages.

Any help would be appreciated. :)

-Steve

Avatar
piellepi M
Posts: 124
Joined: 25.09.2003
Age: 69
With us: 21 years 2 months
Location: Rome, Italy

Post #2by piellepi » 18.07.2007, 07:24

Hi!
I think that the first option to follow is NOT to use Word for simple text files like .ssc ones.
I suggest you to use Write at first and then one of the simple editing programs you can find for free in internet.
Word manipulates heavily text files and it's impossible to handle them.
Ciao
Pierluigi

Topic author
srosenow_98
Posts: 18
Joined: 18.07.2007
With us: 17 years 4 months
Location: Shelton, Washington

Post #3by srosenow_98 » 18.07.2007, 08:07

I even tried Notepad and WordPad to split it up, and it wouldn't work. Wordpad froze totally, and Notepad gives me a warning saying that the file is too large to open.

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Re: Asteroid request: Version 1.4.1

Post #4by ANDREA » 18.07.2007, 09:12

srosenow_98 wrote:Hello, I've tried doing that using Microsoft Word and it freezes trying to process 8,000+ pages. Any help would be appreciated. :) -Steve

Hello Steve, I hed the same problem years ago, and someone gave me the solution.
He suggested me a freeware named Wed-9, able to open any size of plain text files. 8O
I just made a search in the Web, uselessly, so I provided to upload it for you here (it's very small, about 1.2 Mb):
http://ftp.tiscali.it/andrea_celestia/Wed-9.zip
Enjoy!
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

mjoubert
Posts: 58
Joined: 02.04.2007
With us: 17 years 7 months

Post #5by mjoubert » 18.07.2007, 09:21

Steve,

I just warn you about SSC files size : even the biggest one shouldn't freeze notepad, so be sure you're trying to open that kind of file.

And please give a link to this add-on.

Mathieu

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

Post #6by selden » 18.07.2007, 09:53

Mathieu,

It isn't that Notepad or Word or Wordpad freeze permanently, it's just that they take far longer than anyone is willing to wait.

I use emacs: it loads large files quickly. It's free, opensource Gnu software, but may be more complicated than you want.

[edit]The large asteroid Addon is available on the Motherlode at http://celestiamotherlode.net/catalog/asteroids.php
[/edit]
Selden

mjoubert
Posts: 58
Joined: 02.04.2007
With us: 17 years 7 months

Post #7by mjoubert » 18.07.2007, 10:30

Selden,

I was thinkink that ssc file were quite small and I just discovered the 5M lines long ssc file containing asteroids.

So please forget what I said...

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

Post #8by t00fri » 18.07.2007, 10:54

My God.... ;-)

This is a 1 line job for PERL (that should be installed on EVERY computer, irrespective of its operating system! ).

In case of asteroids, one just would tag the magnitude line or the size or the albedo, whatever is convenient. Then one only retains asteroids where the tagged variable exceeds a certain threshold.

For large text files one would always use a "streaming editor", like the standard UNIX tools: sed ='streaming editor', awk/gawk and of course PERL. Streaming editors edit the file while it streams line-by-line through it's filter. PERL is by far the most versatile such tool and of course exists in any operating system. Programming PERL is REALLY easy.

An equivalent approach would be exploiting the ability of certain editors to do replacements based on socalled "regular expressions". Xemacs is a well-known example. Just 1 statement. Not more.

If someone shows me the specific format for one asteroid, I can certainly produce the required 1 line PERL script in no time...;-)

Actually, one should always use the LATEST data from the well-known scientific asteroid data base, since the orbit elements change with time...


Bye Fridger
Image


Return to “Celestia Users”