2

I've downloaded Pandas and I'm fine with Skyfield planets. I want to find the hipparcos location numbers of stars. Rhodes Mill tutorial only has one example listing the Barnard Star. How does python/ skyfield access these star locations? e.g How do I get the location of Sirius?

from skyfield.api import Star, load
from skyfield.data import hipparcos

with load.open(hipparcos.URL) as f:
    df = hipparcos.load_dataframe(f)

barnards_star = Star.from_dataframe(df.loc[87937])
Brandon Rhodes
  • 83,755
  • 16
  • 106
  • 147
sybe
  • 21
  • 2

1 Answers1

2

(This might be a more appropriate question for https://astronomy.stackexchange.com/ since it’s not specifically a question about programming, but I’ll go ahead and answer it here since I’m never quite sure of which way the votes will go on a particular question.)

There are several online search services for the Hipparcos catalog. A Google search shows this to be a popular source, for example:

https://vizier.u-strasbg.fr/viz-bin/VizieR?-source=1239/hip_main

Entering "Sirius" into the text field, it returns a record with HIP number 32349, which I believe is the number you can use with Skyfield.

HIP numbers are important enough that they also tend to be mentioned in other reference works. For example, the Wikipedia page for Sirius also lists it as “HIP 32349” — it’s a little hard to find, so I use Ctrl+F in my browser to search for “HIP”, but it’s down near the very bottom of the big reference sidebar:

https://en.wikipedia.org/wiki/Sirius

Brandon Rhodes
  • 83,755
  • 16
  • 106
  • 147
  • I'm glad it was helpful! (If the advice works, remember to mark the answer as accepted by clicking the green check mark, so that other folks who read this later will know that the answer worked and that they don't need to try writing up new answers.) – Brandon Rhodes Apr 08 '21 at 13:29