How to create cross-index files from data?

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
LukeCEL
Posts: 194
Joined: 26.09.2017
With us: 2 years

How to create cross-index files from data?

Post #1by LukeCEL » 04.01.2018, 15:42

A long time ago, when I downloaded Grant Hutchinson and Pascal Hartmann's Star Database, I noticed that there was no HD index or SAO index, so all the new stars had none of those designations to go along with them. SourceForge has some tools but I have little to no successful experience with using the tools. So, I created a slower, STC-based one, which I put below.

I have two questions:

1. How does one convert an existing cross index to a human-readable format?

2. How does one convert a human-readable cross index, like the one I put in the attachment below, to a DAT file? (i.e. what I should type into Terminal)

Thanks in advance.
Attachments
tyc_hdindex.zip
(2.58 MiB) Downloaded 55 times

Avatar
John Van Vliet
Posts: 2710
Joined: 28.08.2002
With us: 17 years 1 month

Post #2by John Van Vliet » 04.01.2018, 16:45

have you looked in the source code ?
/src/tools/stardb/
read the README file

Janus
Posts: 417
Joined: 13.08.2016
With us: 3 years 2 months

Post #3by Janus » 04.01.2018, 16:59

Before going to lots of trouble like this will be, you should contact Art Blos about the Celestia-Origin project.
I believe they already include all of the information in that collection.
Their stars.dat is the same size the one you reference above.


Janus.

Avatar
Topic author
LukeCEL
Posts: 194
Joined: 26.09.2017
With us: 2 years

Post #4by LukeCEL » 04.01.2018, 17:29

John Van Vliet, I have looked at the source code and the README file. But, when it says this:

Code: Select all

The command line is:

makexindex [<input file> [<output file>]]


I don't know what to type, and where to type it.

Janus, am I just extremely dense, or is there no hdindex.dat or saoindex.dat in the Celestia Origin project?

Janus
Posts: 417
Joined: 13.08.2016
With us: 3 years 2 months

Post #5by Janus » 04.01.2018, 18:15

@LukeCel

Those files are present, though mine at least has a zero byte starnames.dat file.

If you are looking for a ready to run, you can grab it from my downloads.

http://celestia.simulatorlabbs.com/Downloads/

Look in Celestia-Origin for

Celestia_Origin_2017_12_30.zip

Or you can grab the 7z or zip files if you prefer.
Entirely up to you.

Janus.


Return to “Add-on development”

Who is online

Users browsing this forum: 9 guests