d13 Posted December 1, 2017 Share Posted December 1, 2017 Hi Everyone! Ok - crazy idea time! First of all, I discovered this: http://stars.chromeexperiments.com/ Pretty cool! I discovered that it's based on this CSV database of star positions: https://github.com/astronexus/HYG-Database I'm building a model of the solar system, so I now I thinking "wouldn't it be nice if instead of a skydome to surround my planets, I actually plot real stars as particles!" I'm just musing through this right now, by my guess is that I would need to extract the x/y/z position values of each star (with the Sun as 0/0/0) and then create particles for each one. Does that sound right? If so, my first step is to Decode the CSV file: https://raw.githubusercontent.com/astronexus/HYG-Database/master/hygfull.csv Here's the first line (with the headings for each data item) and the first entry: StarID,Hip,HD,HR,Gliese,BayerFlamsteed,ProperName,RA,Dec,Distance,Mag,AbsMag,Spectrum,ColorIndex 1,2,224690,,,,,0.00025315,-19.49883745,45.662100456621,9.27,5.97222057420059,K3V,0.999 All I need is the x/y/z coordinates - do any of you out there know which of those values refer to them? Thanks!! Quote Link to comment Share on other sites More sharing options...
Gijs Posted December 1, 2017 Share Posted December 1, 2017 How about hygxyz.csv? Quote Link to comment Share on other sites More sharing options...
d13 Posted December 1, 2017 Author Share Posted December 1, 2017 @GijsThanks, that's it! Quote Link to comment Share on other sites More sharing options...
Gijs Posted December 1, 2017 Share Posted December 1, 2017 I don't know what it means, but on further inspection, the RA and Dec from hygfull.csv are all you need. Looks like the Chrome experiment converts them to "Galactic latitude and longitude": http://stars.chromeexperiments.com/js/spacehelpers.js Quote Link to comment Share on other sites More sharing options...
d13 Posted December 1, 2017 Author Share Posted December 1, 2017 Here's a StackOverflow suggestion on how to do it - makes sense! https://stackoverflow.com/questions/47599242/extracting-x-y-z-values-from-a-csv-file Gijs 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 1, 2017 Share Posted December 1, 2017 2 hours ago, d13 said: http://stars.chromeexperiments.com/ Ohh my... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.