stars.dat to stars.txt converter and vice versa

General discussion about Celestia that doesn't fit into other forums.
Topic author
Flying Xicken
Posts: 1
Joined: 02.11.2007
With us: 17 years

stars.dat to stars.txt converter and vice versa

Post #1by Flying Xicken » 02.11.2007, 15:22

Hi!

I was navigating with the purpose of finding a converter of stars.dat/stars.txt files. However, in the forum, I have only found 2 aplications. And I can't find those aplications anywhere.

The 2 aplications I'm referring to are:
cstarsconv.exe and makestardb.exe

I believe the "www.spacegear.org" had one of them, but it no longer exists.

Can someone help me and tell where I can find the converter? Or can someone send me a link to download it?

Thanks for your time and patience.

phoenix
Posts: 214
Joined: 18.06.2002
With us: 22 years 5 months
Location: Germany - Berlin

Post #2by phoenix » 02.11.2007, 15:45

most recent celestia win32-SVN-build - use at your own risk (copy over existing 1.5.1 release)

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

Post #3by selden » 02.11.2007, 15:47

The source code (stars.txt) and the programs used to create it from the Hipparcos database and to convert it into stars.dat are all available on SourceForge.

http://celestia.cvs.sourceforge.net/celestia/celestia/

stars.txt is in / celestia / data

the convesion programs are in / celestia / src / tools / stardb
Selden

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Post #4by Reiko » 09.11.2007, 01:54

How do you use the startextdump?

I'm trying to open stars.dat (the extended version found on motherload HERE) so I can get at the coordinates. Whenever I open it with startextdump it just flashes through it at warp speed. :(

Avatar
LordFerret M
Posts: 737
Joined: 24.08.2006
Age: 68
With us: 18 years 3 months
Location: NJ USA

Post #5by LordFerret » 09.11.2007, 05:34

Reiko wrote:How do you use the startextdump?

I'm trying to open stars.dat (the extended version found on motherload HERE) so I can get at the coordinates. Whenever I open it with startextdump it just flashes through it at warp speed. :(

Oh the woes of having a nice fast computer. :roll: :lol: :wink:

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Post #6by Reiko » 09.11.2007, 21:17

But how do you make it stop scrolling so fast so you can read it? Or convert it to a separate text file so you can open it and look through it?

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

Post #7by selden » 09.11.2007, 21:48

Reiko,

If you are looking at the output in a command or terminal window (sometimes called a DOS window), you can use the "more" command to page through the program's output.

startextdump | more

The vertical bar character redirects the output from startextdump into the program named "more". Then you can type a "space" to see the next page or Ctrl-C to exit.

help more
will tell you how to use it in detail.
Selden

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Post #8by Reiko » 09.11.2007, 22:53

selden wrote:Reiko,

If you are looking at the output in a command or terminal window (sometimes called a DOS window), you can use the "more" command to page through the program's output.

startextdump | more

The vertical bar character redirects the output from startextdump into the program named "more". Then you can type a "space" to see the next page or Ctrl-C to exit.

help more
will tell you how to use it in detail.


The way I use it is I drag the stars.dat onto the the startextdump.exe
The output does show in a terminal window but it does not allow me to type in any commands or do anything.
If I try to run starstextdump it just flashes open for less than a second before closing.

:?:

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

Post #9by selden » 09.11.2007, 23:12

The easiest way to open a command window is to use the Run menu.

(This is the U.S. English version. Hopefully something similar will work on your computer.)

Click on the Start icon
Select Run (in the lower right corner)
In the Open: box, type
cmd
then type a [return] or click on OK.
Image

A Command terminal window will popup.

Type the command
cd
followed on the same line with the name of the folder where you put the program, perhaps

cd "Program Files\Celestia"
(quotes are needed because of the space between Program and Files)

Then you can type the name of the program you want to run. In the example below, I used the program "type" to look at one of Celestia's files since I don't have the program that you're using.

Image
Selden

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Post #10by Reiko » 09.11.2007, 23:48

That did the trick. Thank you much for the help! :)


Return to “Celestia Users”