What program do I use to open the "stars.dat"?
I tried Notepad, It comes out in a whole bunch of symbols and squares.
I also tried Wordpad and MS Works Word Processor. Same thing happens.
Can anyone help me?
Sorry if I repeated this question.
Thanks.
How to access the "stars.dat" file
-
Topic authorRocket Man
- Posts: 87
- Joined: 06.01.2005
- With us: 19 years 10 months
- Location: Marysville, Ohio
How to access the "stars.dat" file
"Knowledge is truth of reality, Wisdom is the reality of the truth."
-Rocket Man
-Rocket Man
Provided you are using a version of Celestia before 1.4.0, (i.e. stars.dat version 1.18 or below) then the file format is as follows:
4 byte integer - number of stars
followed by records of the form:
4 byte int : HIP catalog number
4 byte int : HD catalog number (this is missing in the README file)
4 byte float : right ascension
4 byte float : declination
4 byte float : parallax
2 byte int : apparent magnitude
2 byte int : stellar class
1 byte : parallax error
After the coordinate systems change, this format no longer applies. I haven't seen any documentation of the new stars.dat file format.
However, there is also the file stars.txt, available at the SourceForge site, from which stars.dat is generated. This file consists of the number of stars, followed by a series of records, one per line.
The format of each record is HIP number, coordinates, the apparent magnitude as seen from Earth and spectral type. I believe the coordinates are Cartesian (x,y,z) in light years, however I do not know the orientation of the axes in real space.
4 byte integer - number of stars
followed by records of the form:
4 byte int : HIP catalog number
4 byte int : HD catalog number (this is missing in the README file)
4 byte float : right ascension
4 byte float : declination
4 byte float : parallax
2 byte int : apparent magnitude
2 byte int : stellar class
1 byte : parallax error
After the coordinate systems change, this format no longer applies. I haven't seen any documentation of the new stars.dat file format.
However, there is also the file stars.txt, available at the SourceForge site, from which stars.dat is generated. This file consists of the number of stars, followed by a series of records, one per line.
The format of each record is HIP number, coordinates, the apparent magnitude as seen from Earth and spectral type. I believe the coordinates are Cartesian (x,y,z) in light years, however I do not know the orientation of the axes in real space.
-
Topic authorRocket Man
- Posts: 87
- Joined: 06.01.2005
- With us: 19 years 10 months
- Location: Marysville, Ohio
It's best to get the official values for whatever stars you want to work on. Sometimes there are errors in Celestia's database.
Simbad is the easiest source:
http://simbad.u-strasbg.fr/sim-fid.pll
Simbad is the easiest source:
http://simbad.u-strasbg.fr/sim-fid.pll
Selden
-
Topic authorRocket Man
- Posts: 87
- Joined: 06.01.2005
- With us: 19 years 10 months
- Location: Marysville, Ohio