The REAL stars.dat
Posted: 05.10.2003, 21:16
From experimenting in VB.net, I have discovered the following. Note that this may be incorrect, if so please feel free to correct me.
The format given in the helpfile for the stars.dat file is incorrect.
Two catalog numbers are stored, the format of the record is:
4-byte int: Hipparcos catalog number
4-byte int: Henry Draper catalog number (this was omitted in the description)
4-byte float: Right Ascension
4-byte float: Declination
4-byte float: Parallax
2-byte int: Apparent magnitude multiplied by 256
2-byte int: Stellar class
1-byte: Parallax error
-----
Stellar class is apparently divided up into sections of four bits:
bits 0-3: Luminosity code:
1 = Ia
2 = Ib
3 = II
4 = III
5 = IV
6 = V
7 = VI
bits 4-7: Spectral subdivision (the "2" in G2V)
0 = 0
1 = 1
...
9 = 9
bits 8-11:
0 = O
1 = B
2 = A
3 = F
4 = G
5 = K
6 = M
(I'm not good on spectra below M, the following are really just guesses)
7 = R
8 = S
9 = N
-----
What I don't know is how Wolf-Rayet stars, white dwarfs and neutron stars would be specified under this scheme.
Oh yes, and the distance for Achird (Eta Cassiopeiae) is wildly out - over 1400 light years???
The format given in the helpfile for the stars.dat file is incorrect.
Two catalog numbers are stored, the format of the record is:
4-byte int: Hipparcos catalog number
4-byte int: Henry Draper catalog number (this was omitted in the description)
4-byte float: Right Ascension
4-byte float: Declination
4-byte float: Parallax
2-byte int: Apparent magnitude multiplied by 256
2-byte int: Stellar class
1-byte: Parallax error
-----
Stellar class is apparently divided up into sections of four bits:
bits 0-3: Luminosity code:
1 = Ia
2 = Ib
3 = II
4 = III
5 = IV
6 = V
7 = VI
bits 4-7: Spectral subdivision (the "2" in G2V)
0 = 0
1 = 1
...
9 = 9
bits 8-11:
0 = O
1 = B
2 = A
3 = F
4 = G
5 = K
6 = M
(I'm not good on spectra below M, the following are really just guesses)
7 = R
8 = S
9 = N
-----
What I don't know is how Wolf-Rayet stars, white dwarfs and neutron stars would be specified under this scheme.
Oh yes, and the distance for Achird (Eta Cassiopeiae) is wildly out - over 1400 light years???