That file does not contain the information you are looking for.
It is the result of formulaic conversion of polar coords {Ra, Dec, Dist} into rectangular {x,y,z} then output into a binary format.
If you are looking for the polar coords, here.
Grab the file below, hip2.dat.gz, then extract hip2.dat from it.
Load it into a speadsheet or import it into a database if you like.
Parse using the following guide. {Taken from stardb.pl in the source tree.}
The first column is the HIP#, the rest as follows.
Code: Select all
my %star = (
'RArad' => substr($curLine, 15, 13),
'DErad' => substr($curLine, 29, 13),
'Plx' => substr($curLine, 43, 7),
'e_RArad' => substr($curLine, 69, 6),
'e_DErad' => substr($curLine, 76, 6),
'e_Plx' => substr($curLine, 83, 6),
'Hpmag' => substr($curLine, 129, 7),
'B-V' => substr($curLine, 152, 6)
);
Note: 15+13 = 28, 29+13 = 42, just to clarify how substr works in perl.
And you will have a list of polar coords.
Warning, parallax is computed by LY = 3.26156 * (1/Plx) if you want direct distance.
Merge with the dump you already have using HIP# as the common key, and you have it all in one place.
I hope that gives you what you need.
Sorry about short reply, but still getting the spherical projection coded to compile with VS2015.
Needed a break from a frustrating job, and now it is getting frustrating as well.
Janus.