The stars.dat file (the thread)
Posted: 26.10.2004, 14:59
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...)?
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...)?