I've been fiddling with the said file and some questions cropped up.
As it sais in the readme.txt:
the first 4 bytes are an integer value of the number of stars in the database
Following are:
1) 4 byte int - catalogue number
2) 4 byte float - right ascension
3) 4 byte float - declination
4) 4 byte float - parallax
5) 2 byte int - apparent magnitude
6) 2 byte int - stellar class
7) 1 byte - parallax error
Now the first time I plugged in the numbers I received plausible numbers for star number and the catalogue number of the first star, from then on bogus informations. After a few frustrating moments I decided to skip a few bytes here and there. Apparently, there is another 4 byte segment between 1) and 2).
Questions:
What comes between 1) and 2) ?
What are the specific units of measurement of the variables (RA, DEC, PARALLAX...)?
The stars.dat file (the thread)
Aphex_Twin,
You might want to consider registering so you can edit and/or delete your posts. No personal information is required.
What do you want to do with stars.dat?
If you're just interested in the information that it contains, you probably should download the text version of the file, which is available at http://cvs.sourceforge.net/viewcvs.py/celestia/celestia/data/stars.txt?rev=1.1&view=log.
The format of the binary file is quite different in the next version of Celestia.
You might want to consider registering so you can edit and/or delete your posts. No personal information is required.
What do you want to do with stars.dat?
If you're just interested in the information that it contains, you probably should download the text version of the file, which is available at http://cvs.sourceforge.net/viewcvs.py/celestia/celestia/data/stars.txt?rev=1.1&view=log.
The format of the binary file is quite different in the next version of Celestia.
Selden
CVS stars.dat
celestia.exe ERROR
http://cvs.sourceforge.net/viewcvs.py/c ... /stars.dat
error
mais stars.dat !!
celestia.exe ERROR
http://cvs.sourceforge.net/viewcvs.py/c ... /stars.dat
error
mais stars.dat !!
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
symaski62,
As you've been told several times, the most recent versions of stars.dat (v1.19 - v1.21) are in the new format. Right now you need to rebuild Celestia from the CVS source code archive in order to be able to use it. The text file corresponding to v1.21 is available from SourceForge's CVS server. Hopefully a Windows PreRelease of the next version of Celestia (using the new file) will be available in the not too distant future.
stars.dat v1.18 is in the old format. The old format is what is used by Celestia v1.3.2 and previous versions. Unfortunately, the text file corresponding to v1.18 is not available from SourceForge's CVS server.
Aphex,
You might want to investigate MostlyHarmless. It's a variant of Celestia which includes SQL. See http://mostlyharmless.sourceforge.net/index.htm
As you've been told several times, the most recent versions of stars.dat (v1.19 - v1.21) are in the new format. Right now you need to rebuild Celestia from the CVS source code archive in order to be able to use it. The text file corresponding to v1.21 is available from SourceForge's CVS server. Hopefully a Windows PreRelease of the next version of Celestia (using the new file) will be available in the not too distant future.
stars.dat v1.18 is in the old format. The old format is what is used by Celestia v1.3.2 and previous versions. Unfortunately, the text file corresponding to v1.18 is not available from SourceForge's CVS server.
Aphex,
You might want to investigate MostlyHarmless. It's a variant of Celestia which includes SQL. See http://mostlyharmless.sourceforge.net/index.htm
Selden
CVS...
stars.dat V1.18 granthutchison => 2.74Mo
stars.dat V1.19 cjlaurel ERROR => 2.14Mo
stars.dat V1.20 cjlaurel ERROR => 2.14Mo
stars.dat V1.21 granthutchison ERROR => 2.14Mo
http://mostlyharmless.sourceforge.net/index.htm
downloads ?????
stars.dat V1.18 granthutchison => 2.74Mo
stars.dat V1.19 cjlaurel ERROR => 2.14Mo
stars.dat V1.20 cjlaurel ERROR => 2.14Mo
stars.dat V1.21 granthutchison ERROR => 2.14Mo
http://mostlyharmless.sourceforge.net/index.htm
downloads ?????
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
selden wrote:Je r?p?te:
stars.dat v1.18 est pour Celestia v1.3.2
Il n'est pas pour v1.4.0
stars.dat v1.21 est pour Celestia v1.4.0
Il n'est pas pour v1.3.2
Que ne comprenez-vous pas ?
http://www.celestiaproject.net/forum/viewtopic ... 4466#44466
je fait !! merci
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.
Hi Celestians!
As an old programmer I would have suggested (but I always fogot ) to rename the file stars.dat for the new version of Celestia.
This is a rule of thumb when , during the development of a program, it happens that ancillary files need a thorough revision, making old versions inconsistent with the new one: the easiest thing to do is to rename the file and/or its extention, without bothering about version numbers .
BTW files with ".dat" extension in my PC are related to M$ Multimedia Player!
Personally I don't like ".dat" extension: in my >20 years old computer carreer I encountered tons of different files with such an extention: obviously no one was correlated to the others .
Some of them were binary, others were textual, and other were mixed binary-textual: I don't bother knowing about Multimedia Player files .
Thanks for your attention
Pierluigi
As an old programmer I would have suggested (but I always fogot ) to rename the file stars.dat for the new version of Celestia.
This is a rule of thumb when , during the development of a program, it happens that ancillary files need a thorough revision, making old versions inconsistent with the new one: the easiest thing to do is to rename the file and/or its extention, without bothering about version numbers .
BTW files with ".dat" extension in my PC are related to M$ Multimedia Player!
Personally I don't like ".dat" extension: in my >20 years old computer carreer I encountered tons of different files with such an extention: obviously no one was correlated to the others .
Some of them were binary, others were textual, and other were mixed binary-textual: I don't bother knowing about Multimedia Player files .
Thanks for your attention
Pierluigi
Aphex,
You'll have to peruse the code.
The sourcecode for the program which creates the binary database file is at http://cvs.sourceforge.net/viewcvs.py/celestia/celestia/src/tools/stardb/makestardb.cpp?rev=1.6&view=log
Briefly, here's the code fragment which writes an entry:
You'll have to peruse the code.
The sourcecode for the program which creates the binary database file is at http://cvs.sourceforge.net/viewcvs.py/celestia/celestia/src/tools/stardb/makestardb.cpp?rev=1.6&view=log
Briefly, here's the code fragment which writes an entry:
Code: Select all
writeUint(out, catalogNumber);
writeFloat(out, x);
writeFloat(out, y);
writeFloat(out, z);
writeShort(out, (int16) (absMag * 256.0f));
writeUshort(out, sc.pack());
Selden