I am trying to calculate the flux of various stars in Python. I am using the information from a database containing all stars in Hipparcos, Yale Bright Star, and Gliese catalogs (almost 120,000 stars).

This is the database. The original source is here and it is also hosted on GitHub.

The formula I am using to calculate the flux is $F=L/(4\pi d^2)$ where L is the luminosity and D is the distance. In the database, the distance is provided in the 'dist' column and the luminosity is provided in the 'lum' column.

This is the code I used to calculate the flux data:


And this is the output I received:

0     1.587863e-05
1     1.357072e-05
2     1.572559e-04
3     4.137163e-05
4     2.635442e-05
5     8.254667e-07
6     9.653330e-06
7     1.662834e-05
8     2.539475e-05
9     2.540078e-05

My question is:

  • What is the unit of luminosity provided in the database?
  • Are the calculated flux values correct in terms of units, or does it require a unit conversion?
  • 2
    $\begingroup$ Where did you get that database from? Otherwise you're just asking people to download a random file off Google Drive. $\endgroup$
    – user24157
    May 11, 2020 at 19:44
  • $\begingroup$ What are the units for each of these? Add the link requested above and check it for units. $\endgroup$
    – uhoh
    May 12, 2020 at 23:41
  • 1
    $\begingroup$ @uhoh sorry for my late response. I got the database from this website: astronexus.com/hyg. It is the HYG 3.0 database from the website. $\endgroup$
    – user30617
    May 16, 2020 at 14:01
  • 4
    $\begingroup$ Have you read the catalogue information that tells you what each column is (and the units)? github.com/astronexus/HYG-Database $\endgroup$
    – ProfRob
    May 16, 2020 at 18:51
  • 1
    $\begingroup$ Looking at the Readme , I wonder how the table can be unclear... And how any answer here could give more info $\endgroup$ May 17, 2020 at 23:22


You must log in to answer this question.