# How to get star position from the Gaia data set?

I’m trying to recreate the Milky Way as a particle system inside Houdini, and I wanted to explore using the Gaia data as a starting point.

I’ve downloaded an example source file from the data set but I’m having difficulty figuring out how to translate the data into Cartesian coordinates inside my 3D software. It’s not immediately clear from all the descriptions of the headings in the CSV which pieces of data I could use for this - there doesn’t seem to be simply ‘position’ or anything like that. I understand that the stars positions must be relative to our own solar system. I see that there is data for galactic latitude and longitude, and from reading the Wikipedia page on that system, it seems I could combine those two values with a distance to create a position, but I can’t figure out which value represents the distance.

I’m not an astronomer and have never worked with astronomical data, so this is all new to me and may be extraordinarily simple and right under my nose, but would appreciate any help figuring this out!

• You want RA, Dec, and Parallax. Parallax can be converted to distance using this formula: celestialprogramming.com/snippets/parallax.html, after that, just convert the polar coordinates to rectangular coordinates. Jul 20 at 2:53

Astronomy uses typically an Earth-centered (or solar system barycentric) spherical coordinate system with right ascension (RA, $$\alpha$$) ranging from 0 to 360° and declination (DEC, $$\delta$$) from -90° to +90° and a distance usually measured in parsec or often directly given as inverse, the parallax angle (PARALLAX, $$\pi$$). In the Gaia catalogue these columns are named RA, DEC and PARALLAX. You can simply convert these spherical coordinates into cartesian:

$$x = \frac{1000}{\pi}\sin\alpha\cos\delta\\ y = \frac{1000}{\pi}\sin\alpha\sin\delta \\ z=\frac{1000}{\pi}\cos\alpha$$

I introduced the factor 1000 in the above formulae in order to convert the parallax angle $$\pi$$ from milli-arc seconds used in the Gaia data to arc seconds so that a distance in units of parsec is obtained.

You could use the rotated galactical coordinate system with longitude L and latitude B as angles - but that is directly derived from the RA and DEC values and is also Earth-centered with the same distance column, PARALLAX - and it makes little sense to use these derived coordinates when you want to convert the coordinates anyway to cartesian.

You might consider to make use of the XX_ERROR columns for the three coordinates you use, especially for the PARALLAX to give you a feeling how accurate the data are you use. In particular as the distance is the inverse of the parallax, the most likely distance is not the inverse if the relative error is large; you can check that directly with the value provided in the column PARALLAX_OVER_ERROR. A careful analysis in regard to stellar distances and a table thereof has been done by Bailer-Jones et al. (2021) (thx @ProfRob for the link). For further toying around with a 3D model you might have a look at the proper motion columns PM, PMRA and PMDEC to give you the movement of the stars in RA and DEC. Or use some of the photometric information and the distance to derive the absolute brightness of the sources.

• The best estimates of the distances (done "properly") are available as a separate catalogue. Bailer-Jones et al. (2021) ui.adsabs.harvard.edu/abs/2021yCat.1352....0B/abstract Jul 20 at 8:38
• @ProfRob thanks. With your permission I added that info to my answer Jul 20 at 8:58
• Thank you so much for this! Aug 1 at 19:19